s045pd / DarkNet_ChineseTrading

🚇暗网中文网监控爬虫(DEEPMIX)
https://gcokedsa123.grafana.net/dashboard/snapshot/2OJ9OtmtitwiGcIqwIVhvzgmTKDBtTkF
MIT License
1.07k stars 302 forks source link

连接不上 #8

Closed j380322128 closed 5 years ago

j380322128 commented 5 years ago

SOCKSHTTPConnectionPool .(host='deepmixbf6xqt3m7kagmurdt4v43f2h3doc23h7hrkjlroovyjsvseqd.onion', port=80): 连接不上啊

s045pd commented 5 years ago

老哥首先确认下浏览器能不能打开,然后再是本地的代码走的代理是否能通。我这边这样测试是ok的

>>> import requests as r
>>> resp = r.get('http://deepmixbf6xqt3m7kagmurdt4v43f2h3doc23h7hrkjlroovyjsvseqd.onion',proxies={'http':'socks5h://127.0.0.1:9150'})
>>> resp.status_code
200
>>> resp.headers
{'Server': 'nginx/1.15.8', 'Date': 'Thu, 04 Apr 2019 02:48:55 GMT', 'Content-Type': 'text/html; charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Accept-Encoding', 'Set-Cookie': 'PHPSESSID=76hdhec2rvdlg5979ljdeirnkc; path=/', 'Expires': 'Thu, 19 Nov 1981 08:52:00 GMT', 'Cache-Control': 'no-store, no-cache, must-revalidate', 'Pragma': 'no-cache', 'Content-Encoding': 'gzip'}
>>> resp.text[:500]
'\r<html>\r<head>\r<meta name="renderer" content="webkit|ie-stand" />\r<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>\r<meta http-equiv="pragma" content="no-cache">\r<meta http-equiv="cache-control" content="no-cache">\r<meta name="viewport" content="initial-scale=1, maximum-scale=3, minimum-scale=1, user-scalable=no">\r<meta http-equiv="refresh" content="3;url=/ucp.php?mode=login&autim=64447146"> \r<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r<title>正在进入网站</title'
>>>
j380322128 commented 5 years ago

老铁,你说确认浏览器打开是用Tor browser打开吗. 我本地代理链接,不行,是不是代理的问题

s045pd commented 5 years ago

恩的,我担心或许是您的tor版本不是最新的导致的,本地不行那代理有问题

j380322128 commented 5 years ago

Tor version 0.3.5.8.

j380322128 commented 5 years ago

Tor browser我还没有下载,不过本地跑链接确实不行,估计就是代理问题了

s045pd commented 5 years ago

如果您是在国内的话需要有前置代理例如shadowsock

j380322128 commented 5 years ago

我本地已经挂了vpn用的ss,全局模式. 感觉理论机子走了全局,应该可以访问.但是实际不行,还是要设置代理

s045pd commented 5 years ago

我建议您可以下载tor浏览器来验证下是否能够接通