Created
February 23, 2021 02:04
-
-
Save otavio-s-s/fe231a0d242a9014fbf0d1d9f5efcca5 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
for i, page in enumerate(pages): | |
if i == 0: | |
with open('my_file.csv', 'w') as file: | |
file.write(f'{col_1},{col_2},{col_3}') | |
''' | |
Here's your scraper | |
''' | |
with open('my_file.csv', 'a') as file: | |
file.write(f'{value_1},{value_2},{value_3}') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment