Last active
August 29, 2015 14:24
-
-
Save kevin-snippet/95ba43a1deb41714d8e9 to your computer and use it in GitHub Desktop.
csv: read to a list
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
# input list from csv files | |
file = open('input_file_name.csv', 'r') | |
data = csv.reader(file) | |
urls = list(data) | |
url = [] | |
for i in urls: | |
url.append(i[0]) | |
start_urls = url[:] | |
file.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment