video_2023-07-02_20-06-57.mp4
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.
video_2023-07-02_20-06-57.mp4
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.
-
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.
-
Create a new bot on Telegram and obtain the bot token.
-
Open the
bot.py
file and replace'YOUR_BOT_TOKEN'
with your actual bot token. -
Update the
driver_path
variable in both thesearch_product_price_text
andsearch_product_price_image
functions with the correct path to the ChromeDriver executable.
-
Start the bot by running the
bot.py
script:python bot.py
-
Open Telegram and search for your bot.
-
Send the
/search
command 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.