Skip to content

Deluxer/amabot

Repository files navigation

AMABot Products tracking

Search products of the many differents online stores and compare prices, get products of lower price

Get start AMABot and seach products

  • Compare prices in the following Marketplace
    • Amazon
    • MercadoLibre

How to use AMABot?

Search products use command /buscar <product> | ✔ |
Subcribe products command /subscribe <product> <price> | ✔ |

Requirements

  • NPM
  • Nodejs v18
  • Docker v20
  • docker-compose v1.29.2

Installation

  1. Clone repo
git clone https://github.com/Deluxer/amabot.git
  1. Create Telegram bot.

To be able to create a bot is necessary to use BotFather of the telegram, follow the steps, and create a bot. You should be able to get a token from telegram.

  1. Copy .env.example to .env

  2. Set environment variables

AMABOT_TELEGRAM_TOKEN=<here telegram token>
....
....
  1. Start project
docker-compose up -d

If you don't want to use docker, then use the following commands, you must create PostgresSQL database and make connection.

Note: --force is used because 'nest-crawler' use an old version of @nestjs/common
# install 
npm install --force

# development
npm run start

# watch mode
npm run start:dev

# production mode
npm run start

Clean code, run before each commit

npm run lint

Stack used

  • Nestjs
  • Postgresql

Relevant Dependencies

  • Scraping Amazon products with Nest-crawler
  • axios
  • nestjs-telegraf

Aditional information

  • Build and Deploy On AWS using the free instance
    • Route 53
    • Load balancer
    • EC2

Recommendation

json viewer pro see nice json format in browsers

About

Telegram bot to search products in mazon and Mercado Libre (scraping and APIs) using nestjs

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors