28 lines
820 B
Python
28 lines
820 B
Python
import lib
|
|
from core import shopyy, gether, goods
|
|
from utils import formats, files, wpdata
|
|
|
|
if __name__ == '__main__':
|
|
from lib import example
|
|
|
|
Server:example.SpiderModule
|
|
|
|
Server = example.SpiderModule()
|
|
lib.Server = Server
|
|
|
|
# gether.get_category_urls() # 网站导航
|
|
# gether.get_goods_urls(3, False) # 商品链接
|
|
# gether.get_goods_info() # 商品详情
|
|
|
|
GoodsModel = goods.GoodsModel(Server.__database_path__)
|
|
# GoodsModel.to_shopyy_xlsx(f"{Server.__excels_folder__}/goods.xlsx") # 导出shopyy表格
|
|
|
|
# Verify = shopyy.ShopyyVerify('https://takeokikuchi001.zenshop.cn')
|
|
# Verify.get_zero_collections(True)
|
|
# Verify.get_error_images(True)
|
|
|
|
# GoodsModel.splice_db('D:/Workers/Cerys/spiders/database/ssfshop')
|
|
GoodsModel.Db.close()
|
|
|
|
Server.browser.quit()
|