Created
July 16, 2018 11:21
-
-
Save prerakmody/546e5165c45130257e506f3885b787f3 to your computer and use it in GitHub Desktop.
Python Requests Library
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
if __name__ == "__main__": | |
r = requests.get(remote_url) | |
with open(local_url, 'wb') as fp: | |
fp.write(r.content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment