circl / bgpranking-redis-api Goto Github PK
View Code? Open in Web Editor NEWAPI to access the Redis database of a BGP Ranking instance.
Home Page: http://circl.github.com/bgpranking-redis-api/code/API.html
License: Other
API to access the Redis database of a BGP Ranking instance.
Home Page: http://circl.github.com/bgpranking-redis-api/code/API.html
License: Other
If the IP address has no description via asn_history, it will return an exception to the user.
https://github.com/CIRCL/bgpranking-redis-api/blob/master/bgpranking/api.py#L101
The logging system should automatically send an email when an exception occurs in the web interface or in the API.
import bgpranking_web
Traceback (most recent call last):
File "", line 1, in
File "/Users/steve/.virtualenvs/pymissp/lib/python3.6/site-packages/bgpranking_web-1.1.1-py3.6.egg/bgpranking_web/init.py", line 1, in
ModuleNotFoundError: No module named 'api'
~/tmp 21s
(pymissp) ❯ pip install api
Collecting api
Downloading api-0.0.7.tar.gz
Requirement already satisfied: requests in /Users/steve/.virtualenvs/pymissp/lib/python3.6/site-packages (from api)
Collecting nose (from api)
Downloading nose-1.3.7-py3-none-any.whl (154kB)
100% |████████████████████████████████| 163kB 3.1MB/s
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Users/steve/.virtualenvs/pymissp/lib/python3.6/site-packages (from requests->api)
Requirement already satisfied: certifi>=2017.4.17 in /Users/steve/.virtualenvs/pymissp/lib/python3.6/site-packages (from requests->api)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in /Users/steve/.virtualenvs/pymissp/lib/python3.6/site-packages (from requests->api)
Requirement already satisfied: idna<2.7,>=2.5 in /Users/steve/.virtualenvs/pymissp/lib/python3.6/site-packages (from requests->api)
Building wheels for collected packages: api
Running setup.py bdist_wheel for api ... done
Stored in directory: /Users/steve/Library/Caches/pip/wheels/ca/66/28/1d355ae51ca1727283ed5eea970c8ecfd686b24c72623511e9
Successfully built api
Installing collected packages: nose, api
Successfully installed api-0.0.7 nose-1.3.7
~/tmp
(pymissp) ❯ python
Python 3.6.4 (default, Mar 9 2018, 23:15:03)
[GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.39.2)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import bgpranking_web
Browsing the website without user agent will result in an error 500.
For securities reasons, we will still expect to have a user agent but will return a proper error message to the user.
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.