mirror of
https://github.com/C24Be/AS_Network_List.git
synced 2026-03-25 19:09:48 +03:00
RIPE DB
This commit is contained in:
4
.github/workflows/parse_ripe_database.yml
vendored
4
.github/workflows/parse_ripe_database.yml
vendored
@@ -14,7 +14,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
get_lists:
|
get_lists:
|
||||||
name: 'Get/Lists'
|
name: 'Parse RIPE DB'
|
||||||
|
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
@@ -34,4 +34,4 @@ jobs:
|
|||||||
- run: ./parse_ripe_db.py ripe.db.inetnum auto/ripe-ru-ipv4.txt auto/ripe-ru-ipv4.json
|
- run: ./parse_ripe_db.py ripe.db.inetnum auto/ripe-ru-ipv4.txt auto/ripe-ru-ipv4.json
|
||||||
- uses: ./.github/actions/gitPush
|
- uses: ./.github/actions/gitPush
|
||||||
env:
|
env:
|
||||||
PUSH_FILES: auto/*txt
|
PUSH_FILES: auto/ripe*
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -18,7 +18,7 @@ def parse(filename, output_text, output_json):
|
|||||||
if record:
|
if record:
|
||||||
record['inetnum'] = convert_to_cidr(record['inetnum'])
|
record['inetnum'] = convert_to_cidr(record['inetnum'])
|
||||||
if record['country'] == country:
|
if record['country'] == country:
|
||||||
print(record)
|
# print(record)
|
||||||
cList.append(record)
|
cList.append(record)
|
||||||
record = {}
|
record = {}
|
||||||
record['inetnum'] = line.split('inetnum:', 1)[1].strip()
|
record['inetnum'] = line.split('inetnum:', 1)[1].strip()
|
||||||
|
|||||||
Reference in New Issue
Block a user