Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

拿到图片的文件名,替换一下URL,可以获得高清大图的~ #2

Open
jjn0703 opened this issue Aug 2, 2019 · 2 comments

Comments

@jjn0703
Copy link

jjn0703 commented Aug 2, 2019

例如://wx2.sinaimg.cn/thumb180/006CIwoely1g2ol25wd69j30u00u0jy9.jpg
拿到文件名:006CIwoely1g2ol25wd69j30u00u0jy9.jpg,大概是md5编码过的,
然后拼接URL,得到:http://wx3.sinaimg.cn/large/006CIwoely1g2ol25wd69j30u00u0jy9.jpg
就是高清大图的链接~

@liuwenhaha
Copy link

例如://wx2.sinaimg.cn/thumb180/006CIwoely1g2ol25wd69j30u00u0jy9.jpg
拿到文件名:006CIwoely1g2ol25wd69j30u00u0jy9.jpg,大概是md5编码过的,
然后拼接URL,得到:http://wx3.sinaimg.cn/large/006CIwoely1g2ol25wd69j30u00u0jy9.jpg
就是高清大图的链接~

你好啊,我运行到21页就报错了
weibo_comment.py的104行
max_id_json = html.xpath('//div[@node-type="comment_loading"]/@action-data')[0]
在爬到第21页时报错:IndexError: list index out of range
你运行有问题吗

@python3xxx
Copy link
Owner

多谢你的建议~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants