抓取TikTok视频
tiktok-scraper的Python项目详细描述
安装
要使用pip安装,请运行
pip3 install tiktok-scraper
简单用法
要使用默认设置,需要最新版本的Chrome。之后,你就可以跑了
^{pr2}$在本地下载到与用户名同名的文件夹
美国石油学会
usage: tiktok-scraper [-h] [--driver DRIVER] [--driver-type DRIVER_TYPE] [--show-browser] [--delay DELAY] [--location LOCATION] username positional arguments: username The TikTok username optional arguments: -h, --help show this help message and exit --driver DRIVER Driver location --driver-type DRIVER_TYPE Type of driver (i.e. Chrome) --show-browser Shows browser while scraping. Useful for debugging --delay DELAY Number of seconds to delay between video downloading --location LOCATION Location to store the files
选项
--driver Location of the driver (i.e. ./chromedriver). If not specified, it checks in `$PATH` first, and if it's not in there, a chromedriver is downloaded locally --driver-type Type of driver (i.e. Chrome, Firefox) --show-browser If set, the scraping is done with showing the browser. This is useful for debugging why sometime scraping may fail --delay The number of seconds to delay between video downloading. This may be important if there's a rate limit --location Location of where the videos are downloaded. If not specified, location is the same as the username
- 项目
标签: