dakuohao / getdouyin Goto Github PK
View Code? Open in Web Editor NEW爬抖音,爬取别人的美好生活
爬抖音,爬取别人的美好生活
国内版抖音爬了几个视频後出错,
但国际版Tiktok,只建立了空白的文件夹。
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
F:\GetDouYin-master>python amemv-video-ripper.py
F:\GetDouYin-master\amemv-video-ripper.py:169: SyntaxWarning: invalid escape sequence '\d'
challenge = re.findall('share/challenge/(\d+)', url)
Traceback (most recent call last):
File "F:\GetDouYin-master\amemv-video-ripper.py", line 14, in
import requests
File "C:\Users\1001\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests_init_.py", line 43, in
import urllib3
File "C:\Users\1001\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3_init_.py", line 8, in
from .connectionpool import (
File "C:\Users\001\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\connectionpool.py", line 11, in
from .exceptions import (
File "C:\Users\001\AppData\Local\Programs\Python\Python312\Lib\site-packages\urllib3\exceptions.py", line 2, in
from .packages.six.moves.http_client import (
ModuleNotFoundError: No module named 'urllib3.packages.six.moves
有些短连接可以获取到下载视频的地址。如:短连接 http://v.douyin.com/9GEGSp/ 可以获取到视频并下载。但是用另外一个连接 https://v.douyin.com/CdC8kQ/ 就无法获取到视频
可以下载的短连接 http://v.douyin.com/9GEGSp/ 贴到浏览器后,地址显示如下
https://www.iesdouyin.com/share/user/73838190950?u_code=128dfi636&sec_uid=MS4wLjABAAAAHmQ4DqHKN8IdfWWd52sYaGS6zaZaOTghOZ4ysZ0z_YM×tamp=1571884619&utm_source=copy&utm_campaign=client_share&utm_medium=android&share_app_name=douyin
地址中有关键字 share/user
不可以下载的短连接 https://v.douyin.com/CdC8kQ/ 地址贴到浏览器后,地址显示如下
https://www.iesdouyin.com/share/video/6760586675262328072/?region=CN&mid=6758364479400266499&u_code=m9f2m5mg&titleType=title&utm_source=copy_link&utm_campaign=client_share&utm_medium=android&app=aweme
地址中有关键字 share/video
我运行工程之后,对应收藏喜欢的favorite 文件夹中没有视频文件。
大家可以加我qq 1570207752,我可以分享给大家
运行python amemv-video-ripper.py代码报错
share-url.txt写短网址的话,UnicodeDecodeError: 'utf-8' codec can't decode byte 0x98 in position 1: invalid start byte
写长网址的话:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 1: invalid continuation byte
新版的算法已经从 3xx 开头变成 4xx 开头了, device_register 也换成使用 EncryptUtil 来做了
我目前做了部分工作,如果大家有兴趣,可以共同探讨
看不懂代码哦。 还有tik tok 好像也不能下哦
你好,群主,我想进群和大家一起交流爬虫技术。望通过
IndexError: list index out of range这个怎么解决的
用短链接下载某用户的作品,只能下载到部分正确的视频,大部分是尺寸为0的视频。怀疑最近服务器升级了,目前请求导致失效,或者服务器对下载进行了访问频度限制。2019年9月18日发现此问题,以前是正常的
请赐教,十分感谢
有方法可以下载自己所有的喜欢列表吗?
可以爬海外版抖音吗?
The command '/bin/sh -c apt-get install python3 python3-pip curl git vim' returned a non-zero code: 1
return p.readlines()[0]
IndexError: list index out of range
运行代码报了这个错误,大家有没有出现,怎么解决?
1.HEADERS 中 KEY 值为 accept-encoding 需要注释, 否则在获取内容后转码过程中会报错.
2.get_dytk 貌似没什么用, 抖音上不用这个方法是没问题的,但是正则匹配 “dytk: '(.*)'” 是匹配不到内容的,因此相关 dytk 的判断注释后不影响. Tiktok没测不知道这个参数有没有用
3.在下载抖音视频 _join_download_queue 方法中, download_params 参数仅需保留 video_id, ratio,line 三个即可正常下载无水印视频,加上其他参数反而无法正常下载!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.