search

Home  >  Q&A  >  body text

python - 代理导致Scrapy无法访问网站?

大家讲道理大家讲道理2892 days ago375

reply all(3)I'll reply

  • 大家讲道理

    大家讲道理2017-04-18 09:38:37

    Turn off Lanten~

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-18 09:38:37

    Answer source address: CSDN blog: Scrapy usage problems

    At the end of the answer, it is mentioned that proxy problems cause some websites to be inaccessible. The solution is to modify it in settings.py:
    DOWNLOADER_MIDDLEWARES = {

    'scrapy.downloadermiddlewares.useragent.UserAgentMiddleware': None,

    }

    After testing and modification, the program can run

    reply
    0
  • PHP中文网

    PHP中文网2017-04-18 09:38:37

    It should be that Lanten has changed the system's proxy, causing your crawler to be forced to use this proxy IP to access

    reply
    0
  • Cancelreply