We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bd84f5 commit 758151eCopy full SHA for 758151e
requirements.txt
@@ -10,7 +10,6 @@ certifi==14.05.14
10
cffi==0.8.6
11
cryptography==0.7.2
12
cssselect==0.9.1
13
-dirbot==1.0
14
django-debug-toolbar==1.2.2
15
django-haystack==2.3.1
16
enum34==1.0.4
tools/test_hidden_services.py
@@ -5,6 +5,7 @@
5
import socket
6
import urllib2
7
from urllib2 import Request
8
+import requests
9
import simplejson
import socks
@@ -147,7 +148,7 @@ def get2txt(url):
147
148
"""Read from URL."""
149
txt = ""
150
try:
- txt = urllib2.urlopen(url).read()
151
+ txt = requests.get(url, verify=False).text
152
return txt
153
except urllib2.HTTPError as error:
154
print error
0 commit comments