|
|
@@ -3,7 +3,7 @@ import time
|
|
|
from itertools import product
|
|
|
from pathlib import Path
|
|
|
from area_info.city_name_to_id_2 import get_city
|
|
|
-from commons.conn_mysql import MySQLPool39, MySQLPoolOnline
|
|
|
+from commons.conn_mysql import MySQLPoolOn2, MySQLPoolOnline
|
|
|
from commons.sql_data import RETRIEVE_SCRAPE_INSERT_COLUMNS, sql_map
|
|
|
from commons.Logger import get_spider_logger
|
|
|
from pipelines.shop_pipelines import ShopPipeline
|
|
|
@@ -11,7 +11,7 @@ from pipelines.shop_pipelines import ShopPipeline
|
|
|
|
|
|
class DrugPipeline:
|
|
|
def __init__(self, spider_name: str):
|
|
|
- self.db_online = MySQLPool39()
|
|
|
+ self.db_online = MySQLPoolOn2()
|
|
|
# self.db_online = MySQLPoolOnline()
|
|
|
self.sql_map = sql_map
|
|
|
self.crawl_count = 0
|