Created
July 23, 2014 13:33
-
-
Save mdshw5/ed99bc015555aa089241 to your computer and use it in GitHub Desktop.
biostars 107358
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
from urllib.request import urlopen | |
with open('url_file.txt') as urls: | |
for url in urls: | |
with urlopen(url) as page: | |
for line in page: | |
# do something |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment