Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib.request as url
- URL_LINK = ''
- data = url.urlopen(URL_LINK)
- data_bytes = data.read()
- data_string = data_bytes.decode('utf8')
- data.close()
- def generate_line_list(multi_line_string):
- '''Input: multi-line string. Output: a list of each line in the string.'''
- return data_string.split('\n')
Advertisement
Add Comment
Please, Sign In to add comment