import threading
def parse(url: str):
...
if __name__ == '__main__':
thread1 = threading.Thread(target=parse, args=["https://example1.com/page2"]
thread1.start()
thread2 = threading.Thread(target=parse, args=["https://example1.com/page2"]
thread2.start()
thread2.join()