requests library?
Check data parameter
You have asked this days ago if args.virustotal is True: allurls_unlisted = args.url allurls = allurls_unlisted.split(',') for m in allurls: dataurl = m header = { 'x-apikey': vtapikey } datas = { 'url' : m } request = requests.post(f"https://www.virustotal.com/api/v3/urls/" , headers=header , data=datas) result = json.loads(request.text) response = json.dumps(result , sort_keys=True , indent=2) print(response) Here is the code piece
remove the / at the end of the url
trailing forward slash at the end of url
Обсуждают сегодня