Add requests[socks] to pipfile

master
trivernis 5 years ago
parent 3c6ef2a101
commit 82023cc89e

@ -6,7 +6,7 @@ verify_ssl = true
[dev-packages] [dev-packages]
[packages] [packages]
requests = "*" requests = {extras = ["socks"],version = "*"}
fake-useragent = "*" fake-useragent = "*"
stem = "*" stem = "*"

13
Pipfile.lock generated

@ -1,7 +1,7 @@
{ {
"_meta": { "_meta": {
"hash": { "hash": {
"sha256": "1b9a80175da06b66acee213480ffc51f4c7c2566c55ed79e717e786b4653e26b" "sha256": "edaed822c0dfc13d25cdd72f316cc666df071302bb62704bf64e66ebf3386745"
}, },
"pipfile-spec": 6, "pipfile-spec": 6,
"requires": { "requires": {
@ -44,7 +44,18 @@
], ],
"version": "==2.9" "version": "==2.9"
}, },
"pysocks": {
"hashes": [
"sha256:08e69f092cc6dbe92a0fdd16eeb9b9ffbc13cadfe5ca4c7bd92ffb078b293299",
"sha256:2725bd0a9925919b9b51739eea5f9e2bae91e83288108a9ad338b2e3a4435ee5",
"sha256:3f8804571ebe159c380ac6de37643bb4685970655d3bba243530d6558b799aa0"
],
"version": "==1.7.1"
},
"requests": { "requests": {
"extras": [
"socks"
],
"hashes": [ "hashes": [
"sha256:43999036bfa82904b6af1d99e4882b560e5e2c68e5c4b0aa03b655f3d7d73fee", "sha256:43999036bfa82904b6af1d99e4882b560e5e2c68e5c4b0aa03b655f3d7d73fee",
"sha256:b3f43d496c6daba4493e7c431722aeb7dbc6288f52a6e04e7b6023b0247817e6" "sha256:b3f43d496c6daba4493e7c431722aeb7dbc6288f52a6e04e7b6023b0247817e6"

@ -73,7 +73,7 @@ class TorClient(Client):
} }
def new_identity(self): def new_identity(self):
print('[ ] Requesting new ip adress') print('[ ] Requesting new ip adress')
self.ctrl.signal(stem.Signal.NEWNYM) self.ctrl.signal(stem.Signal.NEWNYM)
time.sleep(self.ctrl.get_newnym_wait()) time.sleep(self.ctrl.get_newnym_wait())
print("[+] Changed IP to %s: " % self.get(random.choice(self.ip_retrieval_sites)).text) print("[+] Changed IP to %s: " % self.get(random.choice(self.ip_retrieval_sites)).text)

Loading…
Cancel
Save