Last active
April 5, 2017 11:00
-
-
Save nipunsadvilkar/cea02e07d8a68f7c66439f86e3b8391e to your computer and use it in GitHub Desktop.
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
# __author__: kapoorabhish, nipunsadvilkar | |
import requests | |
user_name = "uname" | |
password = "*******" | |
file_url = "url" | |
r = requests.post(file_url, data={"umlsuser": user_name, "umlspw": password}, | |
stream=True) | |
with open("/tmp/biomedicus-umls-data-1.5.0.zip", "w") as f: | |
for chunk in r.iter_content(chunk_size=1024): | |
if chunk: | |
f.write(chunk) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment