推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
zhangzixu
V2EX  ›  Python

scrapy 的 CrawlSpider 爬取全站,遇到干扰怎么破?

  •  
  •   zhangzixu · Jun 2, 2017 · 4437 views
    This topic created in 3458 days ago, the information mentioned may be changed or developed.

    比如我要爬取的网站是 https://xxx.com,在 log 信息中看到得到的网页有很多 https://xxx.com?mdtp=30&p=8+++++++++++++++++++ 而且+号是不断的增加的,网站返回的是同一个页面。使用 linkExtractor 去过滤吗?

    8 replies  •  2018-05-29 16:25:17 +08:00
    prasanta
    prasanta
    Jun 2, 2017
    1
    把它处理掉
    KeepPro
    KeepPro
    Jun 2, 2017 via Android
    2
    这说明人家并不想让你爬
    734506700qq
    734506700qq
    Jun 2, 2017❤️1
    3
    啥网站啊,这么溜,这个反爬虫机制真 low
    zhangzixu
    zhangzixu
    OP
    Jun 2, 2017
    4
    @734506700qq 高校的,哈哈
    cranelee13
    cranelee13
    Jun 2, 2017 via iPhone
    5
    用正则过滤链接吧,很好解决。
    bonfy
    bonfy
    Jun 2, 2017
    6
    又见 xxx.com ...
    zhangzixu
    zhangzixu
    OP
    Jun 2, 2017
    7
    @bonfy 真的有内容呀!
    luxux
    luxux
    May 29, 2018
    8
    上班打开 xxx.com,旁边连个妹子,让我情以何堪
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2862 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 10:16 · PVG 18:16 · LAX 02:16 · JFK 05:16
    ♥ Do have faith in what you're doing.