我正在尝试使用python的virustotalapi来检查url。代码运行良好,但是输出是一行中的所有内容,因此很难阅读。我试着把这些线分开,但没有分开。怎么解决
import requests
url = 'https://www.virustotal.com/vtapi/v2/url/report'
params = {'apikey': '', 'resource':''}
response = requests.get(url, params=params)
requests.split('\n')
print(response.json())
input()
当我以这种方式运行时,我得到一个AttributeError错误:模块'requests'没有属性'response'。你知道吗
有人能帮我解决这个问题吗。你知道吗
谢谢!你知道吗
谢谢你的帮助!但是当我调查的时候,你需要一个单独的助手。这是现成的
https://equalsequals.io/2018/02/22/building-a-simple-virustotal-client-in-python/
response.text
是响应字符串。也可以根据url响应使用json.loads()
。你知道吗试试这个。你知道吗
相关问题 更多 >
编程相关推荐