Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

urllib

from urllib.request
import urlopen
story = urlopen('http://sixty-north.com/c/t.txt')
story_words = []

for line in story:
    line_words = line.split()
for word in line_words:
    story_words.append(word)
story.close()
 
PREVIOUS NEXT
Tagged: #urllib
ADD COMMENT
Topic
Name
2+8 =