Gearbest price tracking sensor

Hi guys,

I’ve made a small sensor component to track prices on the gearbest website. You can find it on my github.

If it is useful for anyone, I’ll create a PR for it.

Cheers

5 Likes

This looks interesting. May I suggest that you change the items to just use the item ID, e.g. for https://www.gearbest.com/3d-printers-3d-printer-kits/pp_779174.html?wid=21 the item ID is 779174.

Then internally you just request the url as https://www.gearbest.com/bla-bla/pp_ID.html I tried with https://www.gearbest.com/anything/pp_779174.html and it did open the same 3D printer you’ve given in the examples.

Looks good…you should definitely create a PR for the same.

very cool!!

Good point! Added the possibility to use an id instead of the whole url! Thanks

1 Like

Very nice, thanks!

Not working here:

2017-11-09 19:01:59 ERROR (Thread-4) [homeassistant.util.package] Unable to install package gearbest_parser==1.0.4.dev1: Could not find a version that satisfies the requirement gearbest_parser==1.0.4.dev1 (from versions: 1.0.0, 1.0.2, 1.0.3, 1.0.4)
No matching distribution found for gearbest_parser==1.0.4.dev1
2017-11-09 19:01:59 ERROR (MainThread) [homeassistant.setup] Not initializing sensor.gearbest because could not install dependency gearbest_parser==1.0.4.dev1
2017-11-09 19:01:59 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform sensor.gearbest: Could not install all requirements.

I placed the gearbest.py in

\HASSBIAN\homeassistant\custom_components\sensor

Forgot to push the updated version code - please pull, should be fixed now!

2 Likes

Working now indeed :slight_smile:

Finally added the PR: https://github.com/home-assistant/home-assistant/pull/10556

4 Likes

You think is possible to do it for this site?

www.trovaprezzi.it

Try the scrape sensor.

A doubt, how it notify us? I use telegram notifier.
How can use telegram with this component?

You have to write an automation for that

@Romanski thanks.
Other question there any possibilty do add multi links, but not inside yaml.???
other Words, when we add the new product/link, we need to add it inside yaml? or exist other alternative?

can u explain? or put some exemple how can we do?