抓取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

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
当使用RequestDispatcher时,servlets Java最终没有被调用   java生成对具有可变参数数的方法的调用   java如何使用select子句中的参数化列映射iBATIS的查询?   java无法创建类型为org的插件。阿帕奇。登录中。log4j。果心阿佩德。元素RollingFile的RollingFileAppender   java当子实体和父实体之间存在OneTONE JPA关系时,是否可以将其与父实体一起持久化?   Android上的java Facebook集成fbconnect断开链接   获取方法调用方的java机制   从列表创建Oracle阵列时出现java问题   添加和检索元素的ArrayList的java ArrayList   在java中从字符串中删除无效的XML字符   java如何构建完整生成的maven模块   java如何准确地改变播放所有分辨率midi文件的速度?   shell javac:无效标志:/src/中位_度。ubuntu中的java   java使用从其他类的方法检索到的信息