Giter Club home page Giter Club logo

Comments (6)

oGsLP avatar oGsLP commented on June 2, 2024

...

  • 你好,请问你是不是把exe放在桌面跑的

  • 写程序的时候用的是相对路径,本来下载图片应该是在当前目录的data文件夹下,但是windows在桌面跑的话会放在C:\Windows\System32\下而不是C:\User\lenovo\Desktop,而前者的目录下改写文件是需要管理员权限的,双击exe跑的话写文件没有权限会报错。刚才去测试了一下,在桌面跑是会闪退的,开管理员模式不会,但是文件保到前面的一个目录去了。

解决方法

  • 建议把exe放入一个非C盘的一个文件夹里,然后运行
  • 如果硬要在桌面运行
    • 右击exe选择以管理员身份运行
    • 或者win+r唤出cmd,cd Desktop, ks.exe两个命令运行

关于did

from kuaishou-crawler.

StarDream521 avatar StarDream521 commented on June 2, 2024

问题图片:
https://i.loli.net/2020/03/18/apfiDngVLbj7wGh.png
https://i.loli.net/2020/03/18/CgdrSpJVLDTiaHM.png

路径是E:\ks
已经以管理员 运行
但是还是显示闪退

from kuaishou-crawler.

oGsLP avatar oGsLP commented on June 2, 2024

刚才看了一下,好像是程序中根据数字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.

StarDream521 avatar StarDream521 commented on June 2, 2024

好的谢谢!

from kuaishou-crawler.

oGsLP avatar oGsLP commented on June 2, 2024
  • 修复了
  • 从id到eid这一步,牵涉到的是一个cookie的问题,如果要完全模拟那个cookie的获得还是挺烦的,暂时用的值为None的键userId顶替一下,我这里测试没问题,应该可以用。
  • 如果还是不好用的话,就麻烦手动打开主页查一下eid是啥吧0.0

from kuaishou-crawler.

StarDream521 avatar StarDream521 commented on June 2, 2024

from kuaishou-crawler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.