DataSploit / datasploit

An #OSINT Framework to perform various recon techniques on Companies, People, Phone Number, Bitcoin Addresses, etc., aggregate all the raw data, and give data in multiple formats.
GNU General Public License v3.0
3.02k stars 425 forks source link

Error in domain_censys.py #8

Closed ameygat closed 8 years ago

ameygat commented 8 years ago

Parsed and collected results from page 1 Traceback (most recent call last): File "domain_censys.py", line 70, in main() File "domain_censys.py", line 64, in main censys_search(domain) File "domain_censys.py", line 15, in censys_search res = requests.post("https://www.censys.io/api/v1/search/ipv4", json = params, auth = (cfg.censysio_id, cfg.censysio_secret)) File "/usr/lib/python2.7/dist-packages/requests/api.py", line 88, in post return request('post', url, data=data, _kwargs) File "/usr/lib/python2.7/dist-packages/requests/api.py", line 44, in request return session.request(method=method, url=url, _kwargs) TypeError: request() got an unexpected keyword argument 'json'

upgoingstar commented 8 years ago

Which request version are you using? I am using 2.9.1 which is supposed to handle json keyword in requests library. Can you upgrade?

import requests requests.version '2.9.1'

I will add this in requirements too. Thanks for pointing out :)

ameygat commented 8 years ago

Mine requests.version is 2.2.1 On 22-Jun-2016 3:06 PM, "Shubham mittal" notifications@github.com wrote:

Which request version are you using? I am using 2.9.1 which is supposed to handle json keyword in requests library. Can you upgrade?

import requests requests.version '2.9.1'

I will add this in requirements too. Thanks for pointing out :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/upgoingstar/datasploit/issues/8#issuecomment-227692712, or mute the thread https://github.com/notifications/unsubscribe/AJ9qYgrzulzpset5gFHdgIBftHRr-cfzks5qOQISgaJpZM4I7erp .

upgoingstar commented 8 years ago

ya, thats the reason i think. later versions of requests added support for json keyword. Please update and check if its working.