Created
February 23, 2021 02:04
-
-
Save otavio-s-s/5f491edccedbcf657a0c113845a2befc 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
import sqlite3 | |
conn = sqlite3.connect('my_database.db') | |
cur = conn.cursor() | |
cur.execute('USE my_database') | |
for page in pages: | |
''' | |
Here's your scraper | |
''' | |
cur.execute('INSERT INTO my_table (col_1,col_2,col_3)', (value_1, value_2, value_3)) | |
conn.commit() | |
cur.close() | |
conn.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment