Skip to content

Instantly share code, notes, and snippets.

@otavio-s-s
Created February 23, 2021 02:02
Show Gist options
  • Save otavio-s-s/55f45caa91022cf5bf7eac95e6915584 to your computer and use it in GitHub Desktop.
Save otavio-s-s/55f45caa91022cf5bf7eac95e6915584 to your computer and use it in GitHub Desktop.
list_of_lists = []
for page in pages:
list_of_page = []
'''
Here's your scraper
'''
list_of_page.append(value_1)
list_of_page.append(value_2)
list_of_page.append(value_3)
list_of_lists.append(list_of_page)
# Creating the DataFrame
df = pd.DataFrame(list_of_lists, columns=['v_1', 'v_2', 'v_3'])
# Exporting the DataFrame as csv
df.to_csv('quotes-list.csv', index=False, sep=';')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment