hadiasghari / pyasn

Python IP address to Autonomous System Number lookup module. (Supports fast local lookups, and historical lookups using archived BGP dumps.)
Other
292 stars 72 forks source link

Add HTTP Download Method for Latest RIB #72

Open mansweet opened 3 years ago

mansweet commented 3 years ago

Description

A fix for Issue #64

Previously, we would only have been able to download from routeviews via HTTP if we specified a file that contains some dates for us to try and fetch.
This feature allows us to now download the latest rib file from the HTTP source by passing in the latest flag.

mansweet commented 3 years ago

bump on this PR @hadiasghari -- would like to get it integrated.

mansweet commented 3 years ago

Hi @hadiasghari , another gentle nudge on this issue. Do you have an idea of when you might be able to merge this PR, and is there anything I can do to help you out in getting the new pypi package/version/release out?

hadiasghari commented 3 years ago

Hi @mansweet, thanks for the PR. I had a look at it. I believe it is important to add the ability to download IPv6 too via HTTP, given it's currently adoption rate.

The URLs to download the V4+6 and V6 files are similar to the FTP roots. They are as follows:

http://archive.routeviews.org/bgpdata/ → 4 only http://archive.routeviews.org/route-views4/bgpdata/ → 4+6 http://archive.routeviews.org/route-views6/bgpdata/ → 6 only

slhck commented 6 months ago

I created #77 which probably supersedes this stale PR.