Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ ENV/
.vscode/settings.json

.env3/

# Claude Code
.claude/
12 changes: 0 additions & 12 deletions honeydb/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class Client(object):
ep_services = "/services"
ep_stats = "/stats"
ep_stats_asn = "/stats/asn"
ep_twitter_threat_feed = "/twitter-threat-feed"
ep_nodes = "/nodes"
ep_netinfo_lookup = "/netinfo/lookup"
ep_netinfo_network_addresses = "/netinfo/network-addresses"
Expand Down Expand Up @@ -206,17 +205,6 @@ def stats_asn(self) -> dict:
"""
return self._make_request(endpoint=self.ep_stats_asn)

def twitter_threat_feed(self, ipaddress=None):
"""
Get twitter threat feed
"""
if ipaddress is not None:
endpoint = "{}/{}".format(self.ep_twitter_threat_feed, ipaddress)
else:
endpoint = self.ep_twitter_threat_feed

return self._make_request(endpoint=endpoint)

def nodes(self, mydata=False):
"""
Get nodes
Expand Down
16 changes: 1 addition & 15 deletions honeydb/bin/honeydb
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ def main():
parser.add_argument(
"--stats-asn", help="Get stats asn.", default=False, action="store_true"
)
parser.add_argument(
"--twitter-threat-feed",
help="Get Twitter Threat Feed.",
default=False,
action="store_true",
)
parser.add_argument(
"--nodes", help="Get nodes data.", default=False, action="store_true"
)
Expand Down Expand Up @@ -149,7 +143,7 @@ def main():
parser.add_argument("--month", type=int, help="Month in the format MM (1-12)")
parser.add_argument(
"--ip-address",
help="IP address to filter on (Applies to Twitter Threat Feed only).",
help="IP address to filter on.",
)
parser.add_argument("--hash", help="Hash value.")
parser.add_argument("--attribute", help="Attribute value", type=str, default=None)
Expand Down Expand Up @@ -231,14 +225,6 @@ def main():
if args.stats_asn:
print_json_data(honeydb.stats_asn(), args.pretty)

if args.twitter_threat_feed:
if not args.ip_address:
print_json_data(honeydb.twitter_threat_feed(), args.pretty)
else:
print_json_data(
honeydb.twitter_threat_feed(ipaddress=args.ip_address), args.pretty
)

if args.nodes:
print_json_data(honeydb.nodes(args.mydata), args.pretty)

Expand Down
Loading