Python中文
首页
教程
问答
标签
搜索
登录
注册
Shodan Python语法使用“Info”标记
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>因此,我目前正在使用<code>import shodan</code>在Python中使用Shodan编写一个脚本。 周围的文档不是最好的,所以我想我应该把我的问题带到这里</p> <p>使用Shodan CLI有一个名为<code>Shodan Info</code>的命令,该命令显示您的帐户剩余的搜索积分数</p> <p>当查看<a href="https://shodan.readthedocs.io/en/latest/api.html#shodan.Shodan.delete_alert" rel="nofollow noreferrer">Shodan Documentation</a>时,我可以看到有一个<code>info()</code>标记,但是每当我使用它时,就会出现一个错误</p> <p><strong>是否有人知道在python脚本中使用info来显示帐户信用数的正确语法?</strong></p> <p>我收到的错误:</p> <pre><code>ipinfo = shodan.info() print (ipinfo) </code></pre> <p>错误</p> <pre><code>Traceback (most recent call last): File "C:/Users/XXXX/OneDrive - XXXX/Documents/XX Documents/XXXX/Working Segments/ShodanScraper.py", line 8, in <module> ipinfo = shodan.info() AttributeError: module 'shodan' has no attribute 'info' </code></pre> <p>及</p> <pre><code>ipinfo = shodan.Shodan(info()) print (ipinfo) </code></pre> <p>错误</p> <pre><code>Traceback (most recent call last): File "C:/Users/XXXX/OneDrive - XXXX/Documents/XXXXDocuments/XXXXXX/Working Segments/ShodanScraper.py", line 8, in <module> ipinfo = shodan.Shodan(info()) NameError: name 'info' is not defined </code></pre>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>shodan没有说明如何使用信息。下面是一个如何设置shodan信息的breif示例</p> <pre><code>import shodan api = shodan.Shodan('YOUR API KEY') info = api.host('8.8.8.8') shodan info </code></pre>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
如何在python中从数据帧列中删除分类值?
5 回答
如何在python中从数据帧列表中删除引号
6 回答
如何在python中从数据帧创建列表
5 回答
如何在Python中从数据帧创建嵌套的JSON
9 回答
如何在Python中从数据帧显示wordcloud
9 回答
如何在Python中从数据帧的时间戳中删除字符
3 回答
如何在Python中从数据帧绘制简单绘图?
7 回答
如何在python中从数据帧行提取具有特定长度的范围?
4 回答
如何在python中从数据帧设置dict中的值
9 回答
如何在Python中从数据库中获得一个结果
3 回答
如何在python中从数据框中绘制分类条形图
6 回答
如何在Python中从数据框中选择特定细节?
2 回答
如何在python中从数据集中删除unicode
6 回答
如何在python中从数据集中删除某些数值?
2 回答
如何在python中从数据集中选择行
4 回答
如何在Python中从数组中删除元素
2 回答
如何在python中从数组中删除单个倒逗号?
6 回答
如何在python中从数组中删除对象?
1 回答
如何在python中从数组中删除引号
2 回答
如何在python中从数组中删除所有最小值
9 回答