Giter Site home page Giter Site logo

jd_autocomment's Introduction

Hi there 👋

madneal's github stats

Top Langs

jd_autocomment's People

Contributors

aierlanta avatar dimlitter avatar haohongwei avatar littleye233 avatar rootphantomer avatar ysirius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jd_autocomment's Issues

写的比我好多了,不过好像爬取评论有bug

1
虽然报错看着挺多的,但最后总能评论完。
看输出应该是爬取别人的评论
1.如果评论量很大,会不会被京东检测到,黑号啥的
2.源码没注释也看不懂,不知道是多条组合还是就一模一样,如果一模一样会不会被判断无效评论

之前写的时候,一方面电脑版自己用,另一方面安卓版造福大家,还有安卓最终版那时候也没写完就没上传了。
我之前一直想按手机上的那个评价官来写,可以唤起小标签,然后根据商品名和标签名,让ai来写评论。不过一直没啥时间。

我看最近他们青龙都好像有挂评论脚本,也不知道是谁写的

出错

开始京东批量评价!

待评价订单 22----待晒单 0----待追评 30----服务评价 29----已评价 0----
1.开始普通评价
当前共有22个评价。
Traceback (most recent call last):
File "F:\jd\自动评论\auto_comment_plus.py", line 327, in
main()
File "F:\jd\自动评论\auto_comment_plus.py", line 304, in main
N = ordinary(N)
File "F:\jd\自动评论\auto_comment_plus.py", line 124, in ordinary
oid = Order.xpath('tr[@Class="tr-th"]/td/span[3]/a/text()')[0]
IndexError: list index out of range

请问评价中图片的数量能否修改呢

请问能不能通过修改配置来添加评价中图片的数量?
京东评价官任务需要 每次60字+2图/视频,现在通过脚本60字部分可以达到,但是图片只有一张图片。
所以想问一下有没有地方可以修改一下配置来抓取两张图片进行评价,这样在完成评价的同时可以完成评价官的任务。
谢谢大佬

爬取不到评价信息

为啥商品名称回滚了,而且也爬取不到评价信息

开始执行... 2024-01-09 10:53:38

2024-01-09 10:53:52,260 �[1;32mINFO�[0m 开始京东批量评价!
2024-01-09 10:53:52,261 �[1;32mINFO�[0m
2024-01-09 10:53:52,612 �[1;32mINFO�[0m Can't find num content in XPath, fallback to 0
2024-01-09 10:53:52,614 �[1;32mINFO�[0m 待评价订单 52----待追评 176----服务评价 114----已评价 0
2024-01-09 10:53:52,614 �[1;32mINFO�[0m
2024-01-09 10:53:52,615 �[1;32mINFO�[0m 已评价:0个
2024-01-09 10:53:52,615 �[1;32mINFO�[0m 1.开始普通评价
2024-01-09 10:53:53,674 �[1;32mINFO�[0m 当前共有52个评价。
2024-01-09 10:53:53,676 �[1;32mINFO�[0m 0.开始评价订单 京东(JD)支付抽奖权益包[288436797959]并晒图
2024-01-09 10:53:54,131 �[1;32mINFO�[0m 爬取商品数量最多为8个,请耐心等待,也可以自行修改jdspider文件
2024-01-09 10:53:54,132 �[1;33mWARNING�[0m 已爬取0 条 positive 评价信息
2024-01-09 10:53:54,133 �[1;32mINFO�[0m 爬取的评价结果:[]
2024-01-09 10:53:54,133 �[1;33mWARNING�[0m 当前商品没有评价,使用默认评价
2024-01-09 10:54:01,532 �[1;33mWARNING�[0m jieba textrank analysis error: list index out of range, name fallback to "宝贝"
2024-01-09 10:54:01,533 �[1;32mINFO�[0m 评价内容,星级5:收到快递后迫不及待的拆了包装。宝贝我真的是非常喜欢不错不错!看了好几家店,也对比了好几家店,最后发现还是这一家的宝贝评价最好。拆开包装后惊艳到我了,这就是我想要的宝贝!包装的很精美!宝贝的质量和品质非常不错!真是一次愉快的购物!
2024-01-09 10:54:01,534 �[1;32mINFO�[0m 开始获取图片
Traceback (most recent call last):
File "/ql/scripts/6dylan6_jdm/auto_comment_plus.py", line 803, in
main(opts)
File "/ql/scripts/6dylan6_jdm/auto_comment_plus.py", line 626, in main
N = ordinary(N, opts)
File "/ql/scripts/6dylan6_jdm/auto_comment_plus.py", line 277, in ordinary
imgdata = req1.json()
File "/usr/lib/python3.9/site-packages/requests/models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/lib/python3.9/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.9/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.9/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

执行结束... 2024-01-09 10:54:03 耗时 25 秒

提示ck错误的bug

image
这个地方有个 > 200的判断条件,导致一直报ck不对的错,我这实际cookie长度是小于200的。

能否增加多cookie的依次评价功能

比如在config.yml中设置
cookie:xxxx1 xxxx2 xxxx3 xxxx4 …… xxxxn;
间隔符cookie中有分号,所以用回车间隔不同的cookie吧
然后将这n个cookie对应的帐号依次评价完?

拆分失败或结果不符(去除空格和标点符号):[]

日志如下:
2022-10-04 19:43:48,304 WARNING Can't find num content in XPath, fallback to 0
2022-10-04 19:43:48,306 INFO 待评价订单 14----待追评 42----服务评价 22----已评价 0
2022-10-04 19:43:48,306 INFO
2022-10-04 19:43:48,307 INFO 1.开始普通评价
2022-10-04 19:43:48,643 INFO 当前共有14个评价。
2022-10-04 19:43:48,644 INFO 0.开始评价订单 晨光甜牛奶乳饮品250ml24盒 整箱装常温早餐奶整箱量贩装[251627560914]
2022-10-04 19:43:49,208 INFO 正在爬取评论信息>>>>>>>>>第:0 个,第 1 页
2022-10-04 19:43:57,730 INFO 正在爬取晨光甜牛奶乳饮品250ml
24盒 整箱装常温早餐奶整箱量贩装 positive 第 1
2022-10-04 19:43:57,731 INFO 正在爬取评论信息>>>>>>>>>第:0 个,第 2 页
2022-10-04 19:44:08,069 INFO 正在爬取晨光甜牛奶乳饮品250ml24盒 整箱装常温早餐奶整箱量贩装 positive 第 2
2022-10-04 19:44:08,070 INFO 正在爬取评论信息>>>>>>>>>第:0 个,第 3 页
2022-10-04 19:44:13,396 INFO 正在爬取晨光甜牛奶乳饮品250ml
24盒 整箱装常温早餐奶整箱量贩装 positive 第 3
2022-10-04 19:44:13,397 WARNING 已爬取30 条 positive 评价信息
2022-10-04 19:44:13,411 WARNING 拆分失败或结果不符(去除空格和标点符号):[]
2022-10-04 19:44:13,413 WARNING 拆分失败或结果不符(去除空格和标点符号):[]
2022-10-04 19:44:13,414 WARNING 拆分失败或结果不符(去除空格和标点符号):[]
2022-10-04 19:44:13,415 WARNING 拆分失败或结果不符(去除空格和标点符号):[]
2022-10-04 19:44:13,416 WARNING 拆分失败或结果不符(去除空格和标点符号):[]
2022-10-04 19:44:13,417 WARNING 拆分失败或结果不符(去除空格和标点符号):[]
2022-10-04 19:44:13,418 WARNING 拆分失败或结果不符(去除空格和标点符号):[]

请问如何处理

There is some problems when count of fetched order data doesn't equal N["服务评价"]

In the second time of enumerate(req_et), i.xpath return nothing .
And the result of the Order_data will be null.
So it can not do any '服务评价' .

But I have not found why i.xpath can not found any element in the second time.
So I delete the second enumerate(req_et) ,even thought the count is not same.

  for idx, i in enumerate(req_et):
        opts['logger'].info(i)
        opts['logger'].debug('Loop: %d / %d', idx + 1, loop_times)
        opts['logger'].debug('Fetching order data in the default XPath')
        elems = i.xpath(
            '//*[@id="main"]/div[2]/div[2]/table/tbody/tr[@class="tr-bd"]')
        opts['logger'].debug('Count of fetched order data: %d', len(elems))
        Order_data.extend(elems)
    if len(Order_data) != N['服务评价']:
        opts['logger'].debug(
            'Count of fetched order data doesn\'t equal N["服务评价"]')
        opts['logger'].debug('Clear the list Order_data')
        Order_data = []
        opts['logger'].debug('Total loop times: %d', loop_times)
        for idx, i in enumerate(req_et):
            opts['logger'].debug('Loop: %d / %d', idx + 1, loop_times)
            opts['logger'].debug('Fetching order data in another XPath')
            elems = i.xpath(
                '//*[@id="main"]/div[2]/div[2]/table/tr[@class="tr-bd"]')
            opts['logger'].debug('Count of fetched order data: %d', len(elems))
            Order_data.extend(elems)

运行报错

sy@shiyangdeMini jd_AutoComment % python3 auto_comment_plus.py
开始京东批量评价!

Traceback (most recent call last):
File "/Users/sy/jd_AutoComment/auto_comment_plus.py", line 368, in
main(opts)
File "/Users/sy/jd_AutoComment/auto_comment_plus.py", line 339, in main
N = No(opts)
File "/Users/sy/jd_AutoComment/auto_comment_plus.py", line 329, in No
N = all_evaluate(opts)
File "/Users/sy/jd_AutoComment/auto_comment_plus.py", line 123, in all_evaluate
req = requests.get(url, headers=headers)
File "/opt/homebrew/lib/python3.9/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/opt/homebrew/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/opt/homebrew/lib/python3.9/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/opt/homebrew/lib/python3.9/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/opt/homebrew/lib/python3.9/site-packages/requests/adapters.py", line 440, in send
resp = conn.urlopen(
File "/opt/homebrew/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/opt/homebrew/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/opt/homebrew/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/opt/homebrew/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/opt/homebrew/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1326, in _send_request
self.putheader(hdr, value)
File "/opt/homebrew/lib/python3.9/site-packages/urllib3/connection.py", line 224, in putheader
_HTTPConnection.putheader(self, header, *values)
File "/opt/homebrew/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1258, in putheader
values[i] = one_value.encode('latin-1')
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2018' in position 4: ordinal not in range(256)
sy@shiyangdeMini jd_AutoComment % python3 auto_comment_plus.py
开始京东批量评价!

Traceback (most recent call last):
File "/Users/sy/jd_AutoComment/auto_comment_plus.py", line 368, in
main(opts)
File "/Users/sy/jd_AutoComment/auto_comment_plus.py", line 339, in main
N = No(opts)
File "/Users/sy/jd_AutoComment/auto_comment_plus.py", line 329, in No
N = all_evaluate(opts)
File "/Users/sy/jd_AutoComment/auto_comment_plus.py", line 123, in all_evaluate
req = requests.get(url, headers=headers)
File "/opt/homebrew/lib/python3.9/site-packages/requests/api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "/opt/homebrew/lib/python3.9/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/opt/homebrew/lib/python3.9/site-packages/requests/sessions.py", line 529, in request
resp = self.send(prep, **send_kwargs)
File "/opt/homebrew/lib/python3.9/site-packages/requests/sessions.py", line 645, in send
r = adapter.send(request, **kwargs)
File "/opt/homebrew/lib/python3.9/site-packages/requests/adapters.py", line 440, in send
resp = conn.urlopen(
File "/opt/homebrew/lib/python3.9/site-packages/urllib3/connectionpool.py", line 703, in urlopen
httplib_response = self._make_request(
File "/opt/homebrew/lib/python3.9/site-packages/urllib3/connectionpool.py", line 398, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/opt/homebrew/lib/python3.9/site-packages/urllib3/connection.py", line 239, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/opt/homebrew/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/opt/homebrew/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1326, in _send_request
self.putheader(hdr, value)
File "/opt/homebrew/lib/python3.9/site-packages/urllib3/connection.py", line 224, in putheader
_HTTPConnection.putheader(self, header, *values)
File "/opt/homebrew/Cellar/[email protected]/3.9.10/Frameworks/Python.framework/Versions/3.9/lib/python3.9/http/client.py", line 1258, in putheader
values[i] = one_value.encode('latin-1')
UnicodeEncodeError: 'latin-1' codec can't encode character '\u2018' in position 4: ordinal not in range(256)

[提案]加入类型提示,移除对版本低于 3.8 的 Python 的支持

背景

考虑到 crawler 本身的复杂性,部分变量容易造成开发时的混乱,以及代码中涉及到字典作为参数传入函数的情况,现提案加入类型提示,同时会使版本低于 3.8 的 Python 失去支持。

原因

  1. 项目的复杂性及开发的便捷性使得部分标识符名称难以直接观察出其类型;
  2. 加入类型提示后,有利于开发者和 IDE/代码编辑器进行类型检查和代码提示;
  3. Python 3.7 已经进入 security status ,且将在 2023 年 1 月 27 日终止其生命周期;
  4. 当前各主流 Linux 发行版的软件包仓库的最新 Python 版本均已至少达到 3.8 。

做法

  1. 在文档中加入对最低 Python 版本的说明;
  2. 在代码中加入类型提示。

无法带图评价

评价的时候带不了图片,不知道是本身就不支持带图评价还是哪里有问题呢

搜索页面现在需要登录才能访问

  • jdspider.py中getId函数需要带Cookie访问,不然返回的数组为空,无法获取评价

  • 有时候会出现空json数组的情况报错,

2023-12-16 16:39:03,430 �[1;32mINFO�[0m     正在爬取当前商品的评论信息>>>>>>第:0 个,第 1 页
2023-12-16 16:39:11,839 �[1;32mINFO�[0m     RawProductCommentsData:{}
Traceback (most recent call last):
  File "auto_comment_plus.py", line 783, in <module>
    main(opts)
  File "auto_comment_plus.py", line 611, in main
    N = ordinary(N, opts)
  File "auto_comment_plus.py", line 254, in ordinary
    xing, Str = generation(oname, opts=opts)
  File "auto_comment_plus.py", line 120, in generation
    result = spider.getData(4, 3)  # 这里可以自己改
  File "D:\jd_AutoComment\jdspider.py", line 122, in getData
    if len((res_json['comments'])) == 0:
KeyError: 'comments'

解决方法:if len((res_json['comments']))这句前加入try except,或者判断response.text的长度小于几个字符则为无返回数据

不能晒单

INFO 开始京东批量评价!
2022-10-08 00:49:21,822 INFO
2022-10-08 00:49:22,062 WARNING Can't find num content in XPath, fallback to 0
2022-10-08 00:49:22,063 WARNING Can't find num content in XPath, fallback to 0
2022-10-08 00:49:22,063 INFO 待评价订单 0----待追评 19----服务评价 30----已评价 0
2022-10-08 00:49:22,064 INFO
Traceback (most recent call last):
File "auto_comment_plus.py", line 689, in
main(opts)
File "auto_comment_plus.py", line 556, in main
if N['待晒单'] != 0:
KeyError: '待晒单'

必须是电脑版的CK吗?

m.jd.com的CK可以吗?本来想在青龙面板运行可是一直安装不上lxml这个依赖,没办法,在服务器新能跑成功

服务评价报错

022-02-22 20:43:27,886 �[1;32mINFO�[0m 当前共有20个需要服务评价。
INFO:main:当前共有20个需要服务评价。
2022-02-22 20:43:27,886 �[1;32mINFO�[0m 开始第1,冠粮谷 东北黄小米(小米粥 五谷杂粮粗粮 新小黄米 月子粥 新米 粥米伴侣) 真空锁鲜包装 黄小米1KG (2斤装)
INFO:main: 开始第1,冠粮谷 东北黄小米(小米粥 五谷杂粮粗粮 新小黄米 月子粥 新米 粥米伴侣) 真空锁鲜包装 黄小米1KG (2斤装)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:43:43,024 �[1;32mINFO�[0m 开始第2,【京喜牧场】21年新季稻 佰禾田2斤 圆粒香大米 东北庆安大米 优质稻作区 500g2斤5斤10斤装 佰禾田圆粒香米2斤
INFO:main: 开始第2,【京喜牧场】21年新季稻 佰禾田2斤 圆粒香大米 东北庆安大米 优质稻作区 500g2斤5斤10斤装 佰禾田圆粒香米
2斤
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:43:58,200 �[1;32mINFO�[0m 开始第3,【官方授权】李宁(LI-NING)无绳跳绳女生健身两用计数成人跳绳学生用专业绳健身器材 灰黑-长绳+无绳款/双键四种模式 【双键四模式/2.8米绳体可调节】
INFO:main: 开始第3,【官方授权】李宁(LI-NING)无绳跳绳女生健身两用计数成人跳绳学生用专业绳健身器材 灰黑-长绳+无绳款/双键四种模式 【双键四模式/2.8米绳体可调节】
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:44:13,432 �[1;32mINFO�[0m 开始第4,麻阳冰糖橙 新鲜应季 水果橙子 带箱3斤装 净重2.5斤
INFO:main: 开始第4,麻阳冰糖橙 新鲜应季 水果橙子 带箱3斤装 净重2.5斤
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:44:28,579 �[1;32mINFO�[0m 开始第5,【限时活动2盒】终身美丽24K金箔苦参除螨皂去螨虫黑头舒缓控油清痘后背洁面沐浴男女士手工硫磺皂香皂 24K金苦参除螨皂 1盒/100g(活动赠1盒)
INFO:main: 开始第5,【限时活动2盒】终身美丽24K金箔苦参除螨皂去螨虫黑头舒缓控油清痘后背洁面沐浴男女士手工硫磺皂香皂 24K金苦参除螨皂 1盒/100g(活动赠1盒)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:44:43,839 �[1;32mINFO�[0m 开始第6,正版3册 民法典2021版中华人民共和国民法典+法律常识一本全 +经济常识一本全法律读物书籍
INFO:main: 开始第6,正版3册 民法典2021版中华人民共和国民法典+法律常识一本全 +经济常识一本全法律读物书籍
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:44:59,097 �[1;32mINFO�[0m 开始第7,Dove多芬香皂柔肤乳霜香块100g深层清洁控油沐浴滋润保湿德国进口 多芬香皂100g1块
INFO:main: 开始第7,Dove多芬香皂柔肤乳霜香块100g深层清洁控油沐浴滋润保湿德国进口 多芬香皂100g
1块
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
2022-02-22 20:45:14,268 �[1;32mINFO�[0m 开始第8,力士(LUX)花漾悦香护发素 小苍兰幻境香氛精华素470ml
INFO:main: 开始第8,力士(LUX)花漾悦香护发素 小苍兰幻境香氛精华素470ml
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\jd_AutoComment\auto_comment_plus.py", line 80, in format
return logging.Formatter.format(self, rcd)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)
--- Logging error ---
Traceback (most recent call last):
File "D:\Python39\lib\logging_init_.py", line 1083, in emit
msg = self.format(record)
File "D:\Python39\lib\logging_init_.py", line 927, in format
return fmt.format(record)
File "D:\Python39\lib\logging_init_.py", line 663, in format
record.message = record.getMessage()
File "D:\Python39\lib\logging_init_.py", line 367, in getMessage
msg = msg % self.args
TypeError: not all arguments converted during string formatting
Call stack:
File "D:\jd_AutoComment\auto_comment_plus.py", line 679, in
main(opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 567, in main
N = Service_rating(N, opts)
File "D:\jd_AutoComment\auto_comment_plus.py", line 522, in Service_rating
opts['logger'].info("\t\t", pj1.text)
Message: '\t\t'
Arguments: ('{"status":1}',)

抓取CK

是抓取哪个网站的CK?要什么格式吗

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.