Skip to content

Scrapes product hunt and posts thoughts on the products along with a rating to @newappidea telegram channel

Notifications You must be signed in to change notification settings

fauzaanu/newappidea

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProductHunt Scraper

Overview

This Python script scrapes product details from ProductHunt and utilizes the Perplexity API to gather thoughts on the product. The information is then sent to a Telegram channel. (t.me/newappidea)

Dependencies

  • Python
  • Requests library (pip install requests)
  • BeautifulSoup (pip install beautifulsoup4)
  • python-dotenv (pip install python-dotenv)

Configuration

  1. Create a .env file in the project directory with the following variables:

    BOT_TOKEN=your_telegram_bot_token
    CHAT_ID=your_telegram_chat_id
    PPX_TOKEN=your_perplexity_api_token
    

Script Components

TelegramRequest: Handles communication with the Telegram bot API for sending messages and photos.

PerplexityRequest: Utilizes the Perplexity API for generating thoughts on a given product.

ProductHuntScraper: Scrapes product details from ProductHunt and invokes the PerplexityRequest to gather thoughts.

About

Scrapes product hunt and posts thoughts on the products along with a rating to @newappidea telegram channel

Topics

Resources

Stars

Watchers

Forks