GoogleShoppingBot
This is a Telegram bot written in Python that allows users to search and compare prices of products on Google Shopping. The bot supports searching by product name or by sending an image of the product.
Install / Use
/learn @omriyehezkel/GoogleShoppingBotREADME
https://github.com/omriyehezkel/GoogleShoppingBot/assets/40993248/2a7ca1b2-0c6c-49c1-ab11-1d2090d01fe7
GoogleShoppingBot
This is a Telegram bot written in Python that allows users to search and compare prices of products on Google Shopping. The bot supports searching by product name or by sending an image of the product.
To try the bot, please use the following link:
https://t.me/comperPrices_bot
https://github.com/omriyehezkel/GoogleShoppingBot/assets/40993248/a2c2e8b9-93e0-4320-adeb-afb91f984d55
Getting Started
To use the bot, you need to have the following installed:
- Python 3.x
- Selenium
- BeautifulSoup
- requests
- Pillow
- telebot
You also need to have the Chrome web browser installed and the ChromeDriver executable.
Installation
-
Clone the GitHub repository:
git clone https://github.com/omriyehezkel/GoogleShoppingBot/tree/main)https://github.com/omriyehezkel/GoogleShoppingBot/tree/main -
Install the required Python packages:
pip install selenium beautifulsoup4 requests pillow telebot -
Download the ChromeDriver executable and place it in the project directory.
Configuration
-
Create a new bot on Telegram and obtain the bot token.
-
Open the
bot.pyfile and replace'YOUR_BOT_TOKEN'with your actual bot token. -
Update the
driver_pathvariable in both thesearch_product_price_textandsearch_product_price_imagefunctions with the correct path to the ChromeDriver executable.
Usage
-
Start the bot by running the
bot.pyscript:python bot.py -
Open Telegram and search for your bot.
-
Send the
/searchcommand to initiate a product search. -
Enter the product name or send an image of the product.
-
The bot will search for the product on Google Shopping and return the top 3 results with links and prices.
