
Vedha B.
asked 01/12/20How do you open a file over the network at a specified URL?
I tried urllib and urllib.request but not able to get the answer
More
1 Expert Answer
Try python requests
import requests
url = 'http://google.com/favicon.ico'
r = requests.get(url, allow_redirects=True)
open('google.ico', 'wb').write(r.content)
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.
Jackson W.
Hey there, for clarification are you looking to open something on another networked device using a protocol like SMB? Or are you looking to open a file available to the internet at large?01/13/20