Created
February 23, 2021 02:02
-
-
Save otavio-s-s/55f45caa91022cf5bf7eac95e6915584 to your computer and use it in GitHub Desktop.
This file contains 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
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