Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fauzaanu/newappidea
Scrapes product hunt and posts thoughts on the products along with a rating to @newappidea telegram channel
https://github.com/fauzaanu/newappidea
botapi bs4 perplexity producthunt telegram
Last synced: 20 days ago
JSON representation
Scrapes product hunt and posts thoughts on the products along with a rating to @newappidea telegram channel
- Host: GitHub
- URL: https://github.com/fauzaanu/newappidea
- Owner: fauzaanu
- Created: 2024-01-15T13:00:15.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-15T13:02:03.000Z (11 months ago)
- Last Synced: 2024-07-30T20:01:59.654Z (5 months ago)
- Topics: botapi, bs4, perplexity, producthunt, telegram
- Language: Python
- Homepage: https://t.me/newappidea
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
# ProductHunt Scraper
## Overview
This Python script scrapes product details from [ProductHunt](https://www.producthunt.com/) 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:
```ini
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.