Etsy铲运机
图灵2.2.5最终子项目
在这个项目中,我必须创建一个刮板,以刮板所选市场中某些产品的数据。 我选择了Etsy,并使用此抓取工具可以用选定的关键字抓取有关产品列表的数据,例如title , price , rating , reviews count , item url和image url 。
设定说明
为了将此刮板与您自己的数据库一起使用,您的create_connection.py文件应如下所示:
import psycopg2
def connect():
"""
Connects to the database
:return: returns the connection to the database
"""
connection = psycopg2.connect(
database="your_d