GithubHelp home page GithubHelp logo

d0n-b0t / ofertassniper Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 3.0 10 KB

Recibe alertas de cambios de precios en tu canal de telegram.

Python 100.00%
scraper bot chile telegram vip solotodo cyberday cybermonday

ofertassniper's Introduction

Solotodo Price Bot

This script is a Telegram bot that monitors product prices on Solotodo.cl and sends notifications when a price drops.

Features:

  • Price Monitoring: Continuously checks the prices of products specified in libs/listaProductos.py for price drops.
  • Telegram Notifications: Sends notifications to a designated Telegram chat when a price drops.
  • Database Management: Stores product names and prices in a SQLite database (items.db) for comparison.
  • Price History: Keeps track of past prices for each product, allowing for the calculation of price discounts.
  • Automatic Restart: Restarts the bot in case of unexpected errors or interruptions.

Dependencies:

  • telebot
  • beautifulsoup4
  • sqlite3
  • requests
  • time
  • os
  • sys
  • retrying
  • pyshorteners

Installation:

  1. Create a new Telegram bot using the BotFather (@BotFather).
  2. Obtain the bot token and save it in libs/secret.py.
  3. Install the required Python libraries: pip install telebot beautifulsoup4 requests retrying pyshorteners
  4. Create a new Telegram group and add the bot to the group.
  5. Add the group ID to libs/secret.py.
  6. Run the script.

Configuration:

  • libs/listaProductos.py: Contains a list of product URLs to monitor.
  • libs/secret.py: Contains the Telegram bot token and group ID.

How to Use:

  1. Add the desired product URLs to libs/listaProductos.py.
  2. Run the script.
  3. The bot will start monitoring the prices of the products.
  4. When a price drops, the bot will send a notification to the Telegram group.

Important:

  • The publicAPI function is used to fetch product information from Solotodo's public API.
  • The getItems function scrapes product prices from the Solotodo website.
  • The comparaDB function compares current prices with previous prices stored in the database and sends notifications accordingly.

Disclaimer:

This script is provided for educational purposes only. It is recommended to consult with Solotodo's Terms of Service before using this script. The author is not responsible for any misuse or damage caused by this script.

ofertassniper's People

Contributors

d0n-b0t avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

ofertassniper's Issues

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.