Skip to content

Instantly share code, notes, and snippets.

@kevin-snippet
Last active August 29, 2015 14:24
Show Gist options
  • Save kevin-snippet/95ba43a1deb41714d8e9 to your computer and use it in GitHub Desktop.
Save kevin-snippet/95ba43a1deb41714d8e9 to your computer and use it in GitHub Desktop.
csv: read to a list
# 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