简体   繁体   English

如何在我的代理中设置国家/地区限制?

[英]How can I set a country limit in my proxy?

I do webscrapring with Scrapy, using Polipo as proxy, and Tor as network. 我使用Scrapy进行webscrapring,使用Polipo作为代理,使用Tor作为网络。 I know my proxy makes rotating IP, but the IP location is most of the time out of my country. 我知道我的代理转发IP,但IP位置大部分时间都在我的国家之外。 On the websites I scrape, it could have some blocking considering the location of the IP. 在我抓的网站上,考虑到IP的位置,它可能会有一些阻塞。 Then, how can I keep the rotating IP rule and to limit the location of the IP used? 那么,我如何保持旋转IP规则并限制所用IP的位置?

Scrapy version: 1.5.0, Python version: 2.7.9, Tor version: 0.3.4.8, Vidalia: 0.2.21 Scrapy版本:1.5.0,Python版本:2.7.9,Tor版本:0.3.4.8,Vidalia:0.2.21

Most probably you know this but the final ip which the website you are scraping it will see the ip of the exit node. 很可能你知道这个,但是你正在抓取它的网站的最终IP将看到退出节点的ip。 As such you can control the country of the exit node using configuration 因此,您可以使用配置控制出口节点的国家/地区

You can run multiple tor set up and mix and match or rotate tor service across your request set. 您可以在请求集中运行多个设置并混合和匹配或旋转服务。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM