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