Shaw-fung / Online-shopping-price-monitoring

监控购物网站商品价格及库存提醒
4 stars 1 forks source link

我要是想让他每天都提问应该怎么办? #1

Open HoYifn opened 3 years ago

HoYifn commented 3 years ago

我想他每天都推送应该怎么办?

Shaw-fung commented 3 years ago

我想他每天都推送应该怎么办?

设置定时执行就可以,比如说每小时执行一次,或者每天执行一次,他就会根据结果进行推送。Linux和mac可以用crontab,Windows可以用任务计划程序。

HoYifn commented 3 years ago

你好 大佬 我想每天推送结果到微信  需要改代码不   我把你else也加 if下面那句了

---原始邮件--- 发件人: @.> 发送时间: 2021年8月5日(周四) 中午11:56 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Shaw-fung/Online-shopping-price-monitoring] 我要是想让他每天都提问应该怎么办? (#1)

我想他每天都推送应该怎么办?

设置定时执行就可以,比如说每小时执行一次,或者每天执行一次,他就会根据结果进行推送。Linux和mac可以用crontab,Windows可以用任务计划程序。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

Shaw-fung commented 3 years ago

你好 大佬 我想每天推送结果到微信  需要改代码不   我把你else也加 if下面那句了 ---原始邮件--- 发件人: @.> 发送时间: 2021年8月5日(周四) 中午11:56 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Shaw-fung/Online-shopping-price-monitoring] 我要是想让他每天都提问应该怎么办? (#1) 我想他每天都推送应该怎么办? 设置定时执行就可以,比如说每小时执行一次,或者每天执行一次,他就会根据结果进行推送。Linux和mac可以用crontab,Windows可以用任务计划程序。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

每天推送,就是要把固定的cookie设置好(首次运行会获取到),不然每次都需要选择地区,就无法实现自动运行并推送。把上面设置那里设置好就可以了,里面无特殊必须改的,你自己想加什么也可以改。

Shaw-fung commented 3 years ago

你好 大佬 我想每天推送结果到微信  需要改代码不   我把你else也加 if下面那句了 ---原始邮件--- 发件人: @.> 发送时间: 2021年8月5日(周四) 中午11:56 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Shaw-fung/Online-shopping-price-monitoring] 我要是想让他每天都提问应该怎么办? (#1) 我想他每天都推送应该怎么办? 设置定时执行就可以,比如说每小时执行一次,或者每天执行一次,他就会根据结果进行推送。Linux和mac可以用crontab,Windows可以用任务计划程序。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. sj_sendkey = 'key' # 设置Server酱用于推送信息的key,如没有,可以去Server酱免费注册一个! guding_cookie = False # 是否设置固定京东cookie值,如果需要全自动化,需要启用(True),并修改jd_cookie_v jd_cookie_v = 'commonAddress=0; mitemAddrName=; wq_addr=; jdAddrId=; jdAddrName= regionAddress=;' # 京东固定cookie值,需修改。 这几个要修改,jd_cookie_v 这个正确的才能获得本地京东发货仓库库存。,这个值,首次运行选择好了地区可以获得。

HoYifn commented 3 years ago

这些我都改了  一会回单位给你截我说的地方

---原始邮件--- 发件人: @.> 发送时间: 2021年8月5日(周四) 中午12:19 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Shaw-fung/Online-shopping-price-monitoring] 我要是想让他每天都提问应该怎么办? (#1)

你好 大佬 我想每天推送结果到微信  需要改代码不   我把你else也加 if下面那句了 … ---原始邮件--- 发件人: @.> 发送时间: 2021年8月5日(周四) 中午11:56 收件人: @.>; 抄送: @.@.>; 主题: Re: [Shaw-fung/Online-shopping-price-monitoring] 我要是想让他每天都提问应该怎么办? (#1) 我想他每天都推送应该怎么办? 设置定时执行就可以,比如说每小时执行一次,或者每天执行一次,他就会根据结果进行推送。Linux和mac可以用crontab,Windows可以用任务计划程序。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. sj_sendkey = 'key' # 设置Server酱用于推送信息的key,如没有,可以去Server酱免费注册一个! guding_cookie = False # 是否设置固定京东cookie值,如果需要全自动化,需要启用(True),并修改jd_cookie_v jd_cookie_v = 'commonAddress=0; mitemAddrName=; wq_addr=; jdAddrId=; jdAddrName= regionAddress=;' # 京东固定cookie值,需修改。 这几个要修改,jd_cookie_v 这个正确的才能获得本地京东发货仓库库存。,这个值,首次运行选择好了地区可以获得。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

HoYifn commented 3 years ago

86628abac50f59a9e25bca4db8db6dc 截图的地方是我加的 没有到定时任务那一步 我截图的那一项可以做到运行就给微信推送价格嘛?

Shaw-fung commented 3 years ago

86628abac50f59a9e25bca4db8db6dc 截图的地方是我加的 没有到定时任务那一步 我截图的那一项可以做到运行就给微信推送价格嘛?

你要这样用的话,那就不要if else这个判断了,直接就用send_message接在后面就可以了...

HoYifn commented 3 years ago

好的好的  谢谢已经成功了

---原始邮件--- 发件人: @.> 发送时间: 2021年8月5日(周四) 下午4:44 收件人: @.>; 抄送: @.**@.>; 主题: Re: [Shaw-fung/Online-shopping-price-monitoring] 我要是想让他每天都提问应该怎么办? (#1)

截图的地方是我加的 没有到定时任务那一步 我截图的那一项可以做到运行就给微信推送价格嘛?

你要这样用的话,那就不要if else这个判断了,直接就用send_message接在后面就可以了...

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.