From 358d1d750df2f4cca27740c506e1d0dd4d7f430b Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 6 Jun 2023 15:47:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20cfg=E6=96=87=E4=BB=B6=E7=BC=BA=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- scrapy.cfg | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 scrapy.cfg diff --git a/main.py b/main.py index 6dfc920..9a9a51c 100644 --- a/main.py +++ b/main.py @@ -31,7 +31,7 @@ def make_wechat_articles_full(): df.to_csv('articles_full.csv', encoding='utf-8_sig') def ana_wechat(): - articles_full_path = os.path.jon(wechat_dir, 'articles_full.csv') + articles_full_path = os.path.join(wechat_dir, 'articles_full.csv') if not os.path.exists(articles_full_path): make_wechat_articles_full() df_a = pd.DataFrame(columns = ['公众号', '标题', '地址', '错误表述', '建议修改词语', '错误分类']) diff --git a/scrapy.cfg b/scrapy.cfg new file mode 100644 index 0000000..a581407 --- /dev/null +++ b/scrapy.cfg @@ -0,0 +1,14 @@ +# Automatically created by: scrapy startproject +# +# For more information about the [deploy] section see: +# https://scrapyd.readthedocs.io/en/latest/deploy.html + +[settings] +default = zcspider.settings + +[scrapyd] +bind_address = 0.0.0.0 + +[deploy zc1] +# url = http://localhost:6800/ +project = zcspider