【问题标题】:How to configure IP address form France in Crawlera?如何在 Crawlera 中配置法国的 IP 地址?
【发布时间】:2016-07-13 12:49:27
【问题描述】:

我在我的 Scrapy-Selenium Crawler 中使用 Crawlera

但我只需要使用来自 法国 的 IP。

如何配置我的 crawlera 来做到这一点。

   custom_settings = {
        'DOWNLOADER_MIDDLEWARES' : {'scrapy_crawlera.CrawleraMiddleware': 600},
        'CRAWLERA_ENABLED' : True,
        'CRAWLERA_APIKEY' : //my appikey,
        'DOWNLOAD_DELAY' : 0,
        'COOKIES_ENABLED' : True,
    }

【问题讨论】:

    标签: selenium web-scraping scrapy web-crawler scrapinghub


    【解决方案1】:

    您必须转到http://app.scrapinghub.com 上的 Crawlera 仪表板并创建一个单独的用户,将“fr”设置为区域。然后,您在蜘蛛程序中使用新的 API 密钥。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-15
      • 2010-09-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-05
      • 2019-06-03
      相关资源
      最近更新 更多