xsren / wx_taobao_fanli Goto Github PK
View Code? Open in Web Editor NEW微信 淘宝 返利
微信 淘宝 返利
对于这个需求有什么思路吗?就是知道是哪个微信用户买了哪件商品。
一开始提示"请更新最新的cookie到cookies_taobao.txt文件中!!!"后来发现alimama.py文件获取cookies的文件名不是cookies_taobao,txt,而是cookies.txt.修改后执行python main.py命令后提示如下:
error cookie
Traceback (most recent call last):
File "main.py", line 14, in
from libs.wx_bot import WxBot
File "C:\Users\Yang\Desktop\wx_taobao_fanli-master\libs\wx_bot.py", line 29, in
al = Alimama(logger)
File "C:\Users\Yang\Desktop\wx_taobao_fanli-master\libs\alimama.py", line 45, in init
self.load_cookies()
File "C:\Users\Yang\Desktop\wx_taobao_fanli-master\libs\alimama.py", line 99, in load_cookies
self.set_cookies(c_str)
File "C:\Users\Yang\Desktop\wx_taobao_fanli-master\libs\alimama.py", line 106, in set_cookies
for k,v in cookies.items():
UnboundLocalError: local variable 'cookies' referenced before assignment
rt
无法成功获取返利口令
错误信息显示:
gcid = rj['data']['otherList'][0]['gcid']
IndexError: list index out of range
直接网页登录从http://pub.alimama.com/common/adzone/newSelfAdzone2.json?tag=29&itemId=%s&blockId=&t=%s&_tb_token_=%s&pvid=%s链接发现
otherList 是[]
新增了微信导购推广otherList非空了,又出现了下面错误
adzoneid = rj['data']['otherAdzones'][0]['sub'][0]['id']
KeyError: 'sub'
求大神帮忙
似乎淘宝联盟的cookie会失效
我这跑main.py文件就报登陆淘宝失败,问一下为啥呢
No uins in 51 message
是因为没有卷码
如题, 自己做的时候鹊桥是个问题。 不知道你这里是否有处理?
2018-12-07 09:10:09,084 check_login[line:112] [DEBUG]: checking login status.....
2018-12-07 09:10:09,295 login[line:249] [DEBUG]: 淘宝已经登录 不需要再次登录
Getting uuid of QR code.
Downloading QR code.
Traceback (most recent call last):
File "main.py", line 23, in
run()
File "main.py", line 19, in run
wb.run()
File "/app/libs/wx_bot.py", line 155, in run
itchat.auto_login(hotReload=True)
File "/usr/local/lib/python2.7/dist-packages/itchat/components/register.py", line 32, in auto_login
loginCallback=loginCallback, exitCallback=exitCallback)
File "/usr/local/lib/python2.7/dist-packages/itchat/components/login.py", line 49, in login
picDir=picDir, qrCallback=qrCallback)
File "/usr/local/lib/python2.7/dist-packages/itchat/components/login.py", line 123, in get_QR
utils.print_qr(picDir)
File "/usr/local/lib/python2.7/dist-packages/itchat/utils.py", line 83, in print_qr
subprocess.call(['xdg-open', fileDir])
File "/usr/lib/python2.7/subprocess.py", line 523, in call
return Popen(*popenargs, **kwargs).wait()
File "/usr/lib/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
没有优惠券的情况下淘宝联盟也会给一个淘口令,可以赚取推广费,这种情况下能不能回复淘宝联盟生成的淘口令
cookie会过期要怎么解决,每次过期得手动重新登录保存cookie么?
--- Logging error ---
Traceback (most recent call last):
File "C:\Users\54370\Desktop\wx_taobao_fanli-master\libs\wx_bot.py", line 50, in check_if_is_tb_link
url = re.search(r'http://.* \)', msg.text).group().replace(u' )', '')
AttributeError: 'NoneType' object has no attribute 'group'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\54370\Desktop\wx_taobao_fanli-master\libs\wx_bot.py", line 53, in check_if_is_tb_link
taokouling = re.search(r'€.*?€', msg.text).group()
AttributeError: 'NoneType' object has no attribute 'group'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\54370\AppData\Local\Programs\Python\Python37\lib\logging\__init__.py", line 1037, in emit
stream.write(msg + self.terminator)
UnicodeEncodeError: 'gbk' codec can't encode character '\u20ac' in position 644: illegal multibyte sequence
Call stack:
File "C:\Users\54370\Desktop\wx_taobao_fanli-master\main.py", line 23, in <module>
run()
File "C:\Users\54370\Desktop\wx_taobao_fanli-master\main.py", line 19, in run
wb.run()
File "C:\Users\54370\Desktop\wx_taobao_fanli-master\libs\wx_bot.py", line 158, in run
itchat.run(True)
File "C:\Users\54370\AppData\Local\Programs\Python\Python37\lib\site-packages\itchat\components\register.py", line 99, in run
reply_fn()
File "C:\Users\54370\AppData\Local\Programs\Python\Python37\lib\site-packages\itchat\components\register.py", line 91, in reply_fn
self.configured_reply()
File "C:\Users\54370\AppData\Local\Programs\Python\Python37\lib\site-packages\itchat\components\register.py", line 60, in configured_reply
r = replyFn(msg)
File "C:\Users\54370\Desktop\wx_taobao_fanli-master\libs\wx_bot.py", line 141, in text_reply
check_if_is_tb_link(msg)
File "C:\Users\54370\Desktop\wx_taobao_fanli-master\libs\wx_bot.py", line 129, in check_if_is_tb_link
logger.warning("error:{},trace:{}".format(str(e), trace))
Message: 'error:\'NoneType\' object has no attribute \'group\',trace:Traceback (most recent call last):\n File "C:\\Users\\54370\\Desktop\\wx_taobao_fanli-master\\libs\\wx_bot.py", line 50, in check_if_is_tb_link\n url = re.search(r\'http://.* \\)\', msg.text).group().replace(u\' )\', \'\')\nAttributeError: \'NoneType\' object has no attribute \'group\'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "C:\\Users\\54370\\Desktop\\wx_taobao_fanli-master\\libs\\wx_bot.py", line 53, in check_if_is_tb_link\n taokouling = re.search(r\'€.*?€\', msg.text).group()\nAttributeError: \'NoneType\' object has no attribute \'group\'\n'
Arguments: ()
�[0;33m2019-01-16 21:44:09,872 check_if_is_tb_link[line:129] [WARNING]: error:'NoneType' object has no attribute 'group',trace:Traceback (most recent call last):
File "C:\Users\54370\Desktop\wx_taobao_fanli-master\libs\wx_bot.py", line 50, in check_if_is_tb_link
url = re.search(r'http://.* \)', msg.text).group().replace(u' )', '')
AttributeError: 'NoneType' object has no attribute 'group'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\54370\Desktop\wx_taobao_fanli-master\libs\wx_bot.py", line 53, in check_if_is_tb_link
taokouling = re.search(r'€.*?€', msg.text).group()
AttributeError: 'NoneType' object has no attribute 'group'
�[0m
Request to send a text message to @96db318c18503aa35b046ebbcbb4027bccfe03ee85a0d1becf2f7816aeaaeffe: 荷叶茶冬瓜荷叶茶叶 纯干玫瑰花茶袋泡花草茶包组合天然决明正品子
-----------------
该宝贝暂时没有找到内部返利通道!亲您可以换个宝贝试试,也可以联系我们群内管理员帮着寻找有返现的类似商品
就是这样,我该怎么办
老哥,最近好像无论发什么商品链接过去都显示没有优惠券的
您好,登陆一直失败,是为什么呢?感觉是返回的token有问题。
{'data': None, 'info': {'message': 'nologin', 'ok': False}, 'ok': False, 'invalidKey': None}
2018-04-05 09:28:00,192 find_order_for_user[line:246] [DEBUG]: 'NoneType' object is not subscriptable
2018-04-05 09:29:00,193 get_order_list[line:325] [DEBUG]: http://pub.alimama.com/report/getTbkPaymentDetails.json?startTime=2018-03-21&endTime=2018-04-05&payStatus=&queryType=1&toPage=1&perPageSize=9999&total=&t=1515416127365&pvid=&_tb_token_=None&_input_charset=utf-8
在 tb_token = self.se.cookies.get('tb_token', domain="pub.alimama.com"),获取不到domain=pub.alimama.com的cookie,在多个windows环境下,无法获取
当用户的套口令为店铺时,会触发死循环。
直接使用你提交的最新docker镜像, docker.io/xsren/wx_tb_fanli, 启动容器后微信二维码无法加载, 出现
'ascii' codec can't encode characters in position 0-10: ordinal not in range(128)
报错
搜索连接加密了,最近想研究一下,有一起的伙伴吗?
按您的说明来操作 扫了两个码且登陆成功之后 发送淘口令没反应
Login successfully as 0
Start auto replying.
No uins in 51 message
Tvraceback (most recent call last):
isit_main_url......
File "C:\Users\C\Desktop\1\libs\wx_bot.py", line 32, in check_if_is_tb_link
2017-10-29 11:41:27
print msg.text
UnicodeEncodeError: 'gbk' codec can't encode character u'\ud83d' in position 130
: illegal multibyte sequence
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\itchat\components\register.py", line 60, i
n configured_reply
r = replyFn(msg)
File "C:\Users\C\Desktop\1\libs\wx_bot.py", line 119, in text_reply
check_if_is_tb_link(msg)
File "C:\Users\C\Desktop\1\libs\wx_bot.py", line 111, in check_if_is_tb_lin
k
''' % q
UnboundLocalError: local variable 'q' referenced before assignment
Q群 554098399
个别天猫链接分享过来后,机器人会死循环的重复http://zmnxbc.com/s/nlO3j?tm=95b078
在Windows环境中__get_tk_link_s2方法中post数据到http://pub.alimama.com/common/adzone/selfAdzoneCreate.json
返回
'{"data":null,"info":{"message":"页面失效,建议重启浏览器再试!","ok":false},"ok":false,"invalidKey":null}'
求解!
__get_tk_link_s1[line:322] [DEBUG]: {"data":{"appList":[],"otherList":[],"otherAdzones":null,"webAdzones":null,"webList":[],"appAdzones":null,"softAdzones":null,"softList":[]},"info":{"message":null,"ok":true},"ok":true,"invalidKey":null}
2018-01-23 16:40:29,202 get_tk_link[line:306] [WARNING]: error:list index out of range,trace:Traceback (most recent call last):
现在在无任何操作情况下,一个小时左右就会过期
直接 docker run -ti xsren/wx_tb_fanli运行docker后,提示请使用支付宝客户端扫码,
用支付宝客户端扫码无反应。
把这个程序放在个人服务器上跑,因为服务器属于异地登陆,所以被检测账号异常,扫码总是无法登录,就连浏览器扫码登陆也不行,只能通过账号密码登陆 = =
请问下在 centos
下为什么装不了 zbarlight
这个包
麻烦问一下 这个编译镜像和运行容器 不能在win下弄么?
我是win下 python3
淘宝联盟可以登陆上
微信也可以扫码登录上了
但是好像没有连上 往微信发淘宝链接没有任何反应
小白求教 谢谢
小弟打算用大佬的方法用易语言写一个gui的
在进行测试的时候,出现一例可复现 error,对其他功能没有影响,但是会阻塞后续消息的处理。
出现 error 的淘口令为:
【森马风衣男士简约风景印花休闲中长款外套学生韩版潮】http://v.wzd0.com/h.DRVIuL 点击链接,再选择浏览器打开;或复制这条信息¥YrFL07W19G6¥后打开👉手淘👈
在查询这个淘口令对应的联盟信息时,terminal 被以下错误警报,错误信息为
2017-11-21 10:49:10,972 get_real_url[line:411] [DEBUG]: https://err.taobao.com/error1.html?c=404&u=https://www.taobao.com/error1.html&r=,502,[]
上述错误信息大概20ms 提示一次,阻塞了终端。
不知道是不是转链过程中出现的 bug?
由于能力有限,只能提供这些信息,暂时不能提供 bug 原因。repo 主有兴趣的话可以使用上方淘口令复现一下看看。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.