Coder Social home page Coder Social logo

lkora / ikea-stock-checker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 74 KB

Request based program that checks availability of items in IKEA.

License: Apache License 2.0

Python 100.00%
ikea belgrade beograd srbija serbia stock-checking stock-checker

ikea-stock-checker's Introduction

IKEA Stock Checker


Currently works only for IKEA in Belgrade, Serbia

Script reads page responses for all the product links given in the file periodically, checking if the given item is in stock or not. If the item becomes available in stock it notifies the user via e-mail.

Prerequisites

  • python 3
  • requests
  • json
  • os

Executing

python3 main.py

Output

    Item:
     id: 70261150
     url: https://www.ikea.com/rs/sr/p/markus-kancelarijska-stolica-vissle-tamnosiva-70261150/
     name: MARKUS
     type: Kancelarijska stolica
     design: Vissle tamnosiva
     currency_code: RSD
     price_incl_vat: 14999
     price_no_vat: 12499.17
     revamp_price: 14999
     in_stock_range_code: YES
     in_stock_available: 0
     restock_date_time: 2021-03-27
     restock_date_time_period: DAY

    Stock forecast:
    Date: 2021-03-20 	When: DAY 	NoAvailable: 0 	Where: STORE 	Probability: LOW
    Date: 2021-03-21 	When: DAY 	NoAvailable: 0 	Where: STORE 	Probability: LOW
    Date: 2021-03-22 	When: DAY 	NoAvailable: 0 	Where: STORE 	Probability: LOW
    Date: 2021-03-23 	When: DAY 	NoAvailable: 0 	Where: STORE 	Probability: LOW

    ------------------------------------------------

TODO

  • Rewrite request_is_valid to give clearer information
  • Move main snippets to functions
  • Implement product generated url
  • Implement read list of urls from file
  • Implement E-mail notification
  • Create shell script that will call this periodically
  • Make a web page to make it more seamless
  • Figure out ART meaning
  • Make it global

ikea-stock-checker's People

Contributors

lkora avatar

Stargazers

 avatar

Watchers

 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.