Skip to content

Instantly share code, notes, and snippets.

@otavio-s-s
Created February 23, 2021 02:04
Show Gist options
  • Save otavio-s-s/fe231a0d242a9014fbf0d1d9f5efcca5 to your computer and use it in GitHub Desktop.
Save otavio-s-s/fe231a0d242a9014fbf0d1d9f5efcca5 to your computer and use it in GitHub Desktop.
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