Skip to content

关于无法爬取页面内容的修复办法 #112

Open
@hspmanbu

Description

研究了好几天,这个古老的项目终于又可以正常使用了,思路就是使用request全面替代aspider,需要设置一个看上去是正常浏览器的header(并不需要cookie登录),修改schedule.py 、bus _spider.py 、parser.py 三个文件,注意meta中的url以及tag_list中的tag_link都需要去除root_path
缺点就是爬取速度稍微慢了一些

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions