New stuff

This commit is contained in:
2023-03-02 18:16:59 +01:00
parent 1080868e60
commit 7923212cb8
2 changed files with 39 additions and 1 deletions

View File

@@ -8,12 +8,15 @@ import sqlite3
import time
import sys
urls = ["https://glittery-croquembouche-c25561.netlify.app/"]
urls = ["https://garlic-react.netlify.app/", "https://garlic-vue.netlify.app/"]
# connect to the database
conn = sqlite3.connect('garlic.db')
c = conn.cursor()
# clear the database
c.execute("DROP TABLE IF EXISTS garlic")
# create the table if it does not exist
c.execute('''CREATE TABLE IF NOT EXISTS websites (url text, content text)''')