hdnpt / geartrack

Track packages from multiple providers. Supports Gearbest, Aliexpress, Ebay, Geekbuying, DHL, CTT and more.
https://geartrack.pt
MIT License
55 stars 19 forks source link

Cainiao asks for the tracking method before showing some information #22

Closed carlosflorencio closed 7 years ago

carlosflorencio commented 7 years ago

Some ids are showing blank cainiao info on the geartrack website.

That's because it was necessary to choose the correct method (Malasya pos instead of others) in the cainiao website before it shows the correct info.

Affected id: RC104712375MY After choosing, the info on cainiao was displayed.

carlosflorencio commented 7 years ago

2017-04-12_15-21-30

Another option to get the info: http://www.pos.com.my/postal-services/quick-access/?track-trace

More info & possible solution: https://gist.github.com/iamfreee/292dd223a86576d5293ae07a596ace16

carlosflorencio commented 7 years ago

Another popup to choose the destination country: 2017-04-12_15-35-06

(geartrack doesnt get any states)

https://gist.github.com/iamfreee/25e558dd9e1a5844df99ef9e775da84c

carlosflorencio commented 7 years ago

A temporary solution:

When the geartrack returns 0 states, we show a link to cainiao so the person can choose the right options. Website cache has to be aware of this and do not cache the response until the cainiao returns the states.

rcacheira commented 7 years ago

We can parse the options and ask to select the option on geartrack website. This avoids the user to go to another website.

rcacheira commented 7 years ago

Other way is to try to parse all the options until we get any good response. This way the user doesn't need to select anything.

rcacheira commented 7 years ago

Getting the info directly from malaysia pos site