Comments (3)
代码片段里就是直接从代码获取数据的方法,配置cookie就可以。直接检查配置文件是否有问题输入命令查看f2 -d DEBUG dy -c 配置文件路径
from tiktokdownload.
命令我不会用,所以我把配置文件里的
来回改了几次,貌似没什么变化。
所以应该是配置没生效。
我的配置文件为什么不生效啊?
我除了配置文件的路径,其他的都是从示例复制的,到底是哪的问题呢?
from tiktokdownload.
你可以像这样从配置文件生成kwargs
import asyncio
from f2.apps.douyin.handler import DouyinHandler
from f2.utils.conf_manager import ConfigManager
kwargs = {
"headers": {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36",
"Referer": "https://www.douyin.com/",
},
"proxies": {"http://": None, "https://": None},
"timeout": 10,
"cookie": "YOUR_COOKIE_HERE",
}
kwargs |= ConfigManager("你的自定义配置路径").get_config("douyin")
...
from tiktokdownload.
Related Issues (20)
- 是否可以支持发现页面地址直接解析下载? 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 3
- 请问这是什么意思 HOT 1
- 1.5版本有少量MP3 MP4 jpg 不下载问题
- [BUG]
- x-bogus.js, file (optimized version)
- 最早的一条图文只下载了封面
- 能下载到 还是有水印 HOT 7
- SSO登录出现WARNING怎么解决?
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.