mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-01-25 15:31:12 +03:00
1.0 KiB
1.0 KiB
AS Prefixes List Script
Description
-
This Python script retrieves and prints the prefixes announced by a specified Autonomous System (AS). It uses the RIPE Stat Data API to fetch the data.
-
Tested only on MacOS and Linux :)
Installation
-
Make sure you have Python 3 installed. You can download it from the official website.
-
Clone this repository:
git clone https://github.com/C24Be/AS_Network_List.git -
Navigate to the repository folder:
cd AS_Network_List -
Install requirements:
./requirements.sh
Usage
-
Run the script with the AS number as an argument:
python as_network_list.py AS61280 -
If you want to disable all output except the prefixes, use the --quiet or -q switch:
python as_network_list.py AS61280 --quiet -
If you run the script with the -h or --help switch, it will print a help message:
python as_network_list.py --help