Giter Club home page Giter Club logo

heureka-extension's Introduction

Just PoC

While buying product on Alza.cz this extension will check product price on Heureka.cz and prompt you to buy product on it instead. But only if it's cheaper...

example

How it works

  1. The script runs on the product details page and sends its name to the script running in the extension. It's because the extension needs to pull data from another website, and CORS policy doesn't allow it.
  2. Script extension scrapes Heureka feed and returns a result based on Heureka search
  3. The script compares Heureka price with the price shown on another e-commerce site (Alza, Datart etc.). If the price on Heureka is lower, it shows call-to-action to buy that particular stuff on Heureka

Heureka API

Heureka does not provide a public API so we are using Heureka's search suggestions to find products. But there is a limitation: We cannot guarantee that found product can be ordered on Heureka.

Search suggestions

GET https://www.heureka.cz/direct/ajax/search-suggester?term=:query

How to install to Chrome

Download it as Unlisted Chrome extension or

  1. Download repository as ZIP file
  2. Extract ZIP
  3. Open new Chrome tab and go to chrome://extensions/
  4. In the right corner turn on the Developer mode
  5. Press "Load Unpacked" button and select extracted directory
  6. Goto alza.cz and try it out

Issues

  • With parsing prices of some product with action price
  • Works only on product detail
  • Prompts even if it is not possible to buy such product on Heureka

heureka-extension's People

Contributors

junkycoder avatar paulus-tom avatar rarous avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.