giovino / fsi-dnsdb Goto Github PK
View Code? Open in Web Editor NEWPython client for Farsight Security's DNSDB API
License: MIT License
Python client for Farsight Security's DNSDB API
License: MIT License
In the post-processing of results returned by DNSDB API, support the filtering (excluding) of DNS records types. A common example might be the excluding of SOA record types.
Please add support for Python 3.5.
The latest Python 3 from the Ubuntu 16.04 LTS repo is Python 3.5.2. This Ubuntu LTS still has 5 years of support :)
A CLI might have some features like:
DNSDB API supports four query parameters to filter by time. The parameters expect an integer in epoch time.
DNSDB API doc
You may filter results by time using the "time_first_before," "time_first_after,"
"time_last_before," and "time_last_after" query parameters. These
parameters expect a integer (Unix/Epoch time) with seconds granularity
or a relative time in seconds (preceded by -).
this module currently only supports integers. It could support ISO 8601 data formats.
Example:
results = dnsdb.search(name="fsi.io", time_last_after=2018-01-01T00:00:00Z)
Would likely use the Python module dateutil.parser or Pendulum to support this feature.
On my computer with python 3.10.4 with dnsdb 0.2.5
> from dnsdb import Dnsdb
File ~/env/default3/lib/python3.10/site-packages/diskcache/persistent.py:8, in <module>
5 import operator as op
6 import sys
----> 8 from collections import MutableMapping, OrderedDict, Sequence
9 from collections import KeysView, ValuesView, ItemsView
10 from itertools import islice
ImportError: cannot import name 'MutableMapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)
On python > 3.8, you need to import MutableMapping fromcollections.abc
(ref). This code should solve the issue :
import sys
if sys.version_info[:2] >= (3, 8):
from collections.abc import MutableMapping
else:
from collections import MutableMapping
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.