Comments (16)
你好,作者。小白运行的时候遇到一个问题,找了半天也没找到类似的问题。 (venv) PS D:\Chengxu\TikTokDownload-main> f2 dy -u https://v.douyin.com/iYTLRvBp/ INFO App: douyin INFO 主配置路径:D:\Chengxu\TikTokDownload-main\venv\Lib\site-packages\f2\conf\app.yaml INFO 自定义配置路径:D:\Chengxu\TikTokDownload-main\venv\Lib\site-packages\f2\conf\app.yaml INFO Version 0.0.1.5 INFO 开始爬取作品:7359192648004996392 WARNING 没有找到符合条件的作品
DEBUG提示 ERROR 缺乏URL参数,详情看命令帮助
from tiktokdownload.
去任务管理器检查是否真正退出了浏览器进程
from tiktokdownload.
是否要使用命令行的参数更新配置文件?C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\f2\conf\app.yaml
[Y/n]: y
配置文件已更新!
INFO 主配置路径:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\f2\conf\app.yaml
INFO 自定义配置路径:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\f2\conf\app.ya
ml
ERROR 缺乏URL参数,详情看命令帮助
from tiktokdownload.
这算是成功了吗
然后
PS C:\Users\Administrator> f2 dy -u https://v.douyin.com/iYvDJbHH/
INFO App: douyin
INFO 主配置路径:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\f2\conf\app.yaml
INFO 自定义配置路径:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\f2\conf\app.ya
ml
INFO Version 0.0.1.5
ERROR 不存在该模式: None
不知道哪里有问题
from tiktokdownload.
from tiktokdownload.
Edge 浏览器在关闭窗口后也会有进程,要在任务管理器关闭。
from tiktokdownload.
我按照教程里生成一个文件在C:\Users\Administrator 那我现在是设置这个还是设置C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\f2\conf这里面的?
小白看不太懂那个教程的低频和什么的术语 麻烦指教了
from tiktokdownload.
个人配置
>本地配置
- 将低频率修改的配置放
本地配置
,将mode
或url
等会高频修改的参数放个人配置
- 可以创建多个
个人配置
来设置不同用户的主页
与模式
,只需在命令行切换-c
的参数就可以灵活下载不同配置文件从而减少cookie
等参数的复制
from tiktokdownload.
from tiktokdownload.
cover: null
desc: null
folderize: null
interval: all
languages: null
lyric: null
max_connections: 5
max_counts: 0
max_retries: 5
max_tasks: 10
mode: post
music: null
naming: {create}_{desc}
page_counts: 20
path: F:\xxz
timeout: 10
url: null
出现以下错误
PS C:\Users\Administrator> f2 dy -c C:\Users\Administrator\app.yaml -u https://www.douyin.com/user/MS4wLjABAAAAehyF8dX5pMerC2dUMR4Hu8YC5MLar9C01EnbyFCc8JZrBOxWqEAe6VP8rzqupgTK?vid=7356915618664156456
INFO App: douyin
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Scripts\f2.exe_main.py", line 7, in
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1688, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\core.py", line 783, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\f2\apps\douyin\cli.py", line 409, in douyin
custom_manager = ConfigManager(config)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\f2\utils\conf_manager.py", line 24, in init
self.config = self.load_config()
^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\f2\utils\conf_manager.py", line 32, in load_config
return yaml.safe_load(self.filepath.read_text(encoding="utf-8")) or {}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\yaml_init.py", line 125, in safe_load
return load(stream, SafeLoader)
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\yaml_init.py", line 81, in load
return loader.get_single_data()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\yaml\constructor.py", line 49, in get_single_data
node = self.get_single_node()
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\yaml\composer.py", line 36, in get_single_node
document = self.compose_document()
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\yaml\composer.py", line 55, in compose_document
node = self.compose_node(None, None)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\yaml\composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\yaml\composer.py", line 133, in compose_mapping_node
item_value = self.compose_node(node, item_key)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\yaml\composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\yaml\composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\yaml\parser.py", line 98, in check_event
self.current_event = self.state()
^^^^^^^^^^^^
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\yaml\parser.py", line 438, in parse_block_mapping_key
raise ParserError("while parsing a block mapping", self.marks[-1],
yaml.parser.ParserError: while parsing a block mapping
in "", line 2, column 3:
cookie: ttwid=1%7CQcE4NyJJf8WEMx ...
^
expected , but found ''
in "", line 15, column 19:
naming: {create}{desc}
from tiktokdownload.
百度yaml格式
from tiktokdownload.
from tiktokdownload.
可以了!!!!!!! 感谢 !!!!!!
from tiktokdownload.
还有最后一个问题 我下载tk 代理填写在conf.yaml的文件夹显示一串错误 然后直接用-P指令提示Error: Option '-P' requires 2 arguments.
我是用r2rayN的 端口是10808 我填写http://127.0.0.1:10808 好像不行 系统代理是10809
PS C:\Users\Administrator> f2 tk -c C:\Users\Administrator\tk.yaml -u https://www.tiktok.com/@yul__1222 -P http://127.0.0.1:10808 https://127.0.0.1:10810
INFO App: tiktok
INFO 主配置路径:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\f2\conf\app.yaml
INFO 自定义配置路径:C:\Users\Administrator\tk.yaml
INFO Version 0.0.1.5
请前往QA文档 https://johnserf-seed.github.io/f2/question-answer/qa.html 查看相关帮助
ERROR 请求端点失败,请检查当前网络环境。
链接:https://mssdk-sg.tiktok.com/web/common?msToken=1Ab-7YxR9lUHSem0PraI_XzdKmpHb6j50L8AaXLAd2aWTdoJCYLfX_67rV
QFE4UwwHVHmyG_NfIipqrlLT3kCXps-5PYlNAqtdwEg7TrDyTAfCKyBrOLmhMUjB55oW8SPZ4_EkNxNFUdV7MquA==,代理:{'http://':
None, 'https://': None},异常类名:TokenManager,异常详细信息:timed out
from tiktokdownload.
你好,作者。小白运行的时候遇到一个问题,找了半天也没找到类似的问题。
(venv) PS D:\Chengxu\TikTokDownload-main> f2 dy -u https://v.douyin.com/iYTLRvBp/
INFO App: douyin
INFO 主配置路径:D:\Chengxu\TikTokDownload-main\venv\Lib\site-packages\f2\conf\app.yaml
INFO 自定义配置路径:D:\Chengxu\TikTokDownload-main\venv\Lib\site-packages\f2\conf\app.yaml
INFO Version 0.0.1.5
INFO 开始爬取作品:7359192648004996392
WARNING 没有找到符合条件的作品
DEBUG提示 ERROR 缺乏URL参数,详情看命令帮助
from tiktokdownload.
还有最后一个问题 我下载tk 代理填写在conf.yaml的文件夹显示一串错误 然后直接用-P指令提示Error: Option '-P' requires 2 arguments. 我是用r2rayN的 端口是10808 我填写http://127.0.0.1:10808 好像不行 系统代理是10809 PS C:\Users\Administrator> f2 tk -c C:\Users\Administrator\tk.yaml -u https://www.tiktok.com/@yul__1222 -P http://127.0.0.1:10808 https://127.0.0.1:10810 INFO App: tiktok INFO 主配置路径:C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\f2\conf\app.yaml INFO 自定义配置路径:C:\Users\Administrator\tk.yaml INFO Version 0.0.1.5 请前往QA文档 https://johnserf-seed.github.io/f2/question-answer/qa.html 查看相关帮助 ERROR 请求端点失败,请检查当前网络环境。 链接:https://mssdk-sg.tiktok.com/web/common?msToken=1Ab-7YxR9lUHSem0PraI_XzdKmpHb6j50L8AaXLAd2aWTdoJCYLfX_67rV QFE4UwwHVHmyG_NfIipqrlLT3kCXps-5PYlNAqtdwEg7TrDyTAfCKyBrOLmhMUjB55oW8SPZ4_EkNxNFUdV7MquA==,代理:{'http://': None, 'https://': None},异常类名:TokenManager,异常详细信息:timed out
你应该使用这样的命令,代理的https
配置在低版本的urllib3
库中是不支持的这和python
版本有关,所以只能都设为http
而出现代理不可用的情况就是你本地代理的设置了,需参考操作系统设置中的代理服务器来填
希望可以解决你遇到的问题
from tiktokdownload.
Related Issues (20)
- WARNING 第 N 次响应内容为空 HOT 3
- 是否可以支持发现页面地址直接解析下载? HOT 2
- 请教一下tk的代理要怎么设置 我是用v2rayn的 本地代理不知道去哪里设置 HOT 24
- 有打包的exe吗 HOT 2
- [BUG]请问下,Tiktok开发者接口中,下载单个视频的代码是怎么样的呢? HOT 1
- 配置了cookie且不改变的情况下,有时响应内容为空,状态码:200;有时候403,视频丢失,所有链接无法下载。只是tiktok,douyin能正常下载。 HOT 9
- 使用F2调用单作品下载出现WARNING,没有找到符合条件的作品[BUG]
- [BUG] HOT 5
- [FEATRUE / REQUEST]下载抖音用户名称含有特殊字符生成的文件夹是横线,造成多个用户在同一个文件夹里 HOT 1
- 搜索接口[FEATRUE / REQUEST] HOT 1
- [使用疑问]MAC上DB/Logs文件缓存目录的问题 HOT 1
- [BUG]一遇到筛选日期条件下载就变傻 HOT 2
- 解析接口JSON失败: Expecting property name enclosed in double quotes HOT 1
- [BUG] Error Downloading TikTok Posts Due to msToken API Error HOT 2
- 请问这是什么意思 HOT 1
- 1.5版本有少量MP3 MP4 jpg 不下载问题
- [BUG]
- x-bogus.js, file (optimized version)
- 最早的一条图文只下载了封面
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiktokdownload.