This commit is contained in:
Be
2024-03-03 23:51:32 +01:00
parent 1a147cd4c0
commit cebe1bb2ca
4 changed files with 3 additions and 7400 deletions

View File

@@ -14,7 +14,7 @@ on:
jobs:
get_lists:
name: 'Get/Lists'
name: 'Parse RIPE DB'
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
- uses: ./.github/actions/gitPush
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

View File

@@ -18,7 +18,7 @@ def parse(filename, output_text, output_json):
if record:
record['inetnum'] = convert_to_cidr(record['inetnum'])
if record['country'] == country:
print(record)
# print(record)
cList.append(record)
record = {}
record['inetnum'] = line.split('inetnum:', 1)[1].strip()