scrapy 數據存儲,實則是python和mysql的交互,使用pipeline將爬取的數據入庫

在pipeline.py管道處 import pymysql from BOOK import settings """ MYSQL_HOST = 'localhost' MYSQL_DB_NAME = 'book' MYSQL_PORT = 3306 MYSQL_USER = 'root' MYSQL_PASSWORD = '5520' """ class BookPipeline(objec
相關文章
相關標籤/搜索