3
在Ubuntu上,Scrapy Torproject
[[email protected] tmp]$ sudo /etc/init.d/tor status
tor is running
[[email protected] tmp]$ sudo /etc/init.d/polipo start
Starting polipo: /usr/bin/polipo already running -- doing nothing
polipo.
也:
$ python -c 'import urllib; print urllib.getproxies()'
{'ftp': 'ftp://127.0.0.1:8118/', 'all': 'socks://127.0.0.1:8118/',
'http': 'http://127.0.0.1:8118/', 'https': 'https://127.0.0.1:8118/',
'no': 'localhost,127.0.0.0/8,*.local'}
當運行scrapy我得到:
ERROR: Error downloading https://registration.example.com/login.fcc : [Failure instance: Traceback (failure with no frames): : [('SSL routines', 'SSL23_READ', 'ssl handshake failure')] ]
,而在同一時間FireFox的管理,以正確地獲取頁面 通過代理
任何幫助,將不勝感激, 謝謝, 蓋伊