I\'m trying to create a Python function that does the same thing as this wget command:
wget -c --read-timeout=5 --tries=0 \"$URL\"
-c
A solution that I often find simpler and more robust is to simply execute a terminal command within python. In your case:
import os url = 'https://www.someurl.com' os.system(f"""wget -c --read-timeout=5 --tries=0 "{url}"""")