从Python webscrape创建SQL数据库

从Python webscrape创建SQL数据库,python,sql,Python,Sql,我试图用Python脚本(如下所示)将从天气预报中提取的一些基本数据传输到SQL数据库。我将数据存储在数组中,并在数据帧中格式化 import requests import pandas from bs4 import BeautifulSoup page = requests.get('https://weather.com/weather/tenday/l/USOR0190:1:US') soup = BeautifulSoup(page.content, 'html.parser') f

我试图用Python脚本(如下所示)将从天气预报中提取的一些基本数据传输到SQL数据库。我将数据存储在数组中,并在数据帧中格式化

import requests
import pandas
from bs4 import BeautifulSoup
page = requests.get('https://weather.com/weather/tenday/l/USOR0190:1:US')
soup = BeautifulSoup(page.content, 'html.parser')
feed = soup.select('main.region.region-main')
days = [i.get_text() for i in soup.select('span.day-detail.clearfix')]
descs = [i['title'] for i in soup.select('td.description')]
descs2 = [i.get_text() for i in soup.select('td.description span')]
temp = [i.get_text() for i in soup.select('td.temp div')]
temps = ["High: " + i[:3] + " / Low: " + i[3:] for i in temp]
frame = pandas.DataFrame({
    "Date": days,
    "Desc": descs2,
    "Temp": temps,
    "More": descs
})

接下来的步骤是什么?我应该使用SQLite、SQLalchemy还是其他引擎?我对SQL一无所知,正在快速学习。我相信我已经设置了允许使用这些引擎的环境,所以这不应该是一个问题。

获得类似sqlalchemy的ORM似乎是谨慎的


不需要SQL。大量的文档和示例。完全在python中工作。

获得类似sqlalchemy的ORM似乎很谨慎


不需要SQL。大量的文档和示例。完全在python中工作。

sqlite非常简单,如果你只是做一些小事情,它就足够了。sqlite非常简单,如果你只是做一些小事情,它就足够了