tgbot-collection/ExpressBot

Providing alternative options for users and new platform recommendation

ann61c opened this issue · 9 comments

  1. Sometimes the ExpressBot provides wrong information due to the incorrect selection of express company. The bot could provide alternative option when users notice that the information provided is obviously wrong. (eg. when I am tracking my domestic package, the bot said the package is on the way to Tokyo, which is impossible.)

  2. 17track is wonderful. You may try this one instead of kuaidi100

快递鸟有一个看上去很成熟的Python lib了,如果让用户自行部署的话,每天3000的API量,每5min查询一次能支撑10单。(而且写起来应该也比较方便?)

@Makiras
看起来这个库还不错,不知道获取快递鸟的API Key是否会比较麻烦,如果比较简单的话,可以看看更换为它,当然有个PR更好了

我正在用selenium尝试做m.kuaidi100.com的页面模拟爬取,速度可能比较慢,但是支持顺丰
不过因为996所以可能还需要半个月(如果需要的话)到那时候再提PR
不过这样就要求有Firefox前置用于headless模式的爬取..

Excellent! @Makiras

@BennyThink 爬取工具,不过因为是模拟爬取所以开启时可能比较耗资源,目前我的测试中还没碰到需要验证码的地方,最近比较忙所以PR就咕咕咕了。能爬顺丰,大佬有时间适配一下吧。

我是用firefox的headless实现的,峰值内存占用能控制在100m,cpu会在初始化浏览器时跑满,但请求页面没啥太大变化。似乎也不是太重量?
(其实是需要一个firefox + driver(6m))
如果是每个人部署在各自的机子上似乎也不是不能接受?毕竟浏览器只在查询的时候占用资源,其他时候都是关闭状态

(:з」∠),我再试试用execujs做下,因为做的反爬比较恼人orz