Comments (6)
...
-
你好,请问你是不是把exe放在桌面跑的
-
写程序的时候用的是相对路径,本来下载图片应该是在当前目录的data文件夹下,但是windows在桌面跑的话会放在
C:\Windows\System32\
下而不是C:\User\lenovo\Desktop
,而前者的目录下改写文件是需要管理员权限的,双击exe跑的话写文件没有权限会报错。刚才去测试了一下,在桌面跑是会闪退的,开管理员模式不会,但是文件保到前面的一个目录去了。
解决方法
- 建议把exe放入一个非C盘的一个文件夹里,然后运行
- 如果硬要在桌面运行
- 右击exe选择以管理员身份运行
- 或者win+r唤出cmd,
cd Desktop
,ks.exe
两个命令运行
关于did
-
你在网页版快手登录并打开一个用户的一个作品,地址栏的链接大概是这样的形式,你把
did=
后面的保存下来就行,例如我随便一个账号登录后打开giao哥第一个视频,地址栏链接:
`https://live.kuaishou.com/u/3x4tn6nm8gnh9xk/3xgdj9s4it7rtce?did=web_67063b98a***********172acfa -
要输入的就是
web_67063b98a***********172acfa
from kuaishou-crawler.
问题图片:
https://i.loli.net/2020/03/18/apfiDngVLbj7wGh.png
https://i.loli.net/2020/03/18/CgdrSpJVLDTiaHM.png
路径是E:\ks
已经以管理员 运行
但是还是显示闪退
from kuaishou-crawler.
刚才看了一下,好像是程序中根据数字id获取真实eid出现了问题,会尽快修改的。
快手号id、真实eid
- 这两个有什么区别呢,快手号id、真实eid都是系统分配给用户的一个初始值,id初始为一串数字,eid为字符串。用户一般可见的是id,可以修改的也是id,如果修改id,则会将eid也替换为id,此时id/eid是一样的。否则官方根据eid来标识用户。
- 爬虫程序也是根据eid来爬取的,不过之前加了一个自动将id转化为eid的功能,现在好形象不能正确使用了,会尽快修改
- id/eid:修改后的id必须是非纯数字的字符串,如giao哥快手号146634318,就是一个未修改的数字id
如何根据id获得真实eid
- 在程序修复之前不是不可用的,解决方法就是,如果用户的id为纯数字,那么在网页版的用户主页,地址栏(如giao哥
https://live.kuaishou.com/profile/3x4tn6nm8gnh9xk
),则3x4tn6nm8gnh9xk
为真实eid。在命令行id项输入此id代替数字id即可 - 当前可以先用这个方法爬取,会尽快修复程序的
from kuaishou-crawler.
好的谢谢!
from kuaishou-crawler.
- 修复了
- 从id到eid这一步,牵涉到的是一个cookie的问题,如果要完全模拟那个cookie的获得还是挺烦的,暂时用的值为None的键userId顶替一下,我这里测试没问题,应该可以用。
- 如果还是不好用的话,就麻烦手动打开主页查一下eid是啥吧0.0
from kuaishou-crawler.
from kuaishou-crawler.
Related Issues (20)
- 首先非常感谢分享这个软件,最近使用发现了两个问题。1.当用户作品数量超过1000时,软件只能显示并爬取到999。2.当爬取到后半阶段时,只能保存图片,而视频作品信息能显示出来,但是爬取不到,显示未找到视频。 HOT 4
- 自从v0.4.0版本之后无法下载视频 HOT 4
- 运行.exe输入完主页id后闪退了 HOT 4
- 抓取某一主题下的前一百位的用户信息,网页版有时候会跳出滑块验证码,请问有办法绕过吗? HOT 2
- 关于v0.5.0输入did和用户id之后闪退的问题 HOT 4
- 获取视频源的时候快手要求验证 HOT 1
- 爬取的内容似乎不正确了
- 运行ks.exe报错
- 运行报错AttributeError: 'NoneType' object has no attribute 'group'
- 运行报错:AttributeError: 'NoneType' object has no attribute 'group' HOT 2
- 建议web cookie did和 mobile cookie did分开
- 爬取出错 HOT 1
- 软件很不错!
- 亲测可用无水印,不过did是F12查到的,浏览器url没有did字段,方法如下:
- 一直显示list index out of range,重新设置cookies也没用 HOT 1
- ConnectionError: HTTPConnectionPool(host='tx2.a.yximgs.com', port=80): Max retries exceeded with url: /ufile/atlas/ODgyMDg0MjAzXzE4NTU0ODA0ODE4XzE1NzExNDM1ODMxOTE=_0.jpg (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x0000019CDE5F1D60>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) HOT 1
- 快手限制下载视频的数量 HOT 6
- 当快手号为纯数字的时候获取uid失败 HOT 6
- exe执行总是报错 HOT 1
- 图片只能下载,不能下载视频 HOT 1
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 kuaishou-crawler.