import re
import csv

get_url = re.compile(r"/ipfs/[^\s\?]+")
with open("access.log.1") as f:
    with open("urls.txt", "w") as csvfile:
        fieldnames = ["method", "url", "body", "headers"]
        writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
        writer.writeheader()
        for line in f:
            match = get_url.search(line)
            if match:
                url = f"http://localhost:3000{match[0]}"
                writer.writerow({"method": "GET", "url": url, "body": ""})

2991202fb2d9abf023050e83c84f1e78620d2d4e
<mask token>

<mask token>
with open('access.log.1') as f:
    with open('urls.txt', 'w') as csvfile:
        fieldnames = ['method', 'url', 'body', 'headers']
        writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
        writer.writeheader()
        for line in f:
            match = get_url.search(line)
            if match:
                url = f'http://localhost:3000{match[0]}'
                writer.writerow({'method': 'GET', 'url': url, 'body': ''})

<mask token>
get_url = re.compile('/ipfs/[^\\s\\?]+')
with open('access.log.1') as f:
    with open('urls.txt', 'w') as csvfile:
        fieldnames = ['method', 'url', 'body', 'headers']
        writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
        writer.writeheader()
        for line in f:
            match = get_url.search(line)
            if match:
                url = f'http://localhost:3000{match[0]}'
                writer.writerow({'method': 'GET', 'url': url, 'body': ''})

import re
import csv
get_url = re.compile('/ipfs/[^\\s\\?]+')
with open('access.log.1') as f:
    with open('urls.txt', 'w') as csvfile:
        fieldnames = ['method', 'url', 'body', 'headers']
        writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
        writer.writeheader()
        for line in f:
            match = get_url.search(line)
            if match:
                url = f'http://localhost:3000{match[0]}'
                writer.writerow({'method': 'GET', 'url': url, 'body': ''})

import re
import csv

get_url = re.compile(r"/ipfs/[^\s\?]+")
with open("access.log.1") as f:
    with open("urls.txt", "w") as csvfile:
        fieldnames = ["method", "url", "body", "headers"]
        writer = csv.DictWriter(csvfile, fieldnames=fieldnames)
        writer.writeheader()
        for line in f:
            match = get_url.search(line)
            if match:
                url = f"http://localhost:3000{match[0]}"
                writer.writerow({"method": "GET", "url": url, "body": ""})
