Added a comment about the methodology of determining the zone the data is from.
This commit is contained in:
parent
e74741c0ad
commit
20ee3fcb0f
@ -68,6 +68,7 @@ async def process_data(file_path: str):
|
|||||||
|
|
||||||
# Determine the zone name from the file path (e.g., /path/to/zones/com.eu.txt -> com.eu zone)
|
# Determine the zone name from the file path (e.g., /path/to/zones/com.eu.txt -> com.eu zone)
|
||||||
zone = '.'.join(file_path.split('/')[-1].split('.')[:-1])
|
zone = '.'.join(file_path.split('/')[-1].split('.')[:-1])
|
||||||
|
# Note: For now, this is the best way because we are not just ingesting TLD zone files, but entire zones for domains aswell...
|
||||||
|
|
||||||
# Read the input file line by line
|
# Read the input file line by line
|
||||||
async for line in input_file:
|
async for line in input_file:
|
||||||
|
Loading…
Reference in New Issue
Block a user