Update warc_wat_url_processor.py

This commit is contained in:
datechnoman 2024-01-28 09:10:17 +00:00
parent 875082e8d9
commit d0fa7c84f4

View File

@ -48,6 +48,7 @@ def process_file(file_path):
# Extract URLs from the gzipped file
urls = extract_urls_from_file(file_path)
print(f"Extracted {len(urls)} URLs from {file_path}")
# Create the output file path with '_urls.txt' extension
output_file_path = os.path.splitext(file_path)[0] + '_urls.txt'