https://github.com/hamidbyte/twitter-trending-hashtags-generator
This project scrapes the trending topics from the website trends24.in and generates hashtags from the trends.
https://github.com/hamidbyte/twitter-trending-hashtags-generator
hashtag hashtag-generator hashtag-scraper hashtags nodejs trending-hashtags trending-topics twitter x-com
Last synced: 3 months ago
JSON representation
This project scrapes the trending topics from the website trends24.in and generates hashtags from the trends.
- Host: GitHub
- URL: https://github.com/hamidbyte/twitter-trending-hashtags-generator
- Owner: HamidByte
- Created: 2025-01-11T12:50:33.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2025-02-08T05:40:19.000Z (3 months ago)
- Last Synced: 2025-02-08T06:25:53.419Z (3 months ago)
- Topics: hashtag, hashtag-generator, hashtag-scraper, hashtags, nodejs, trending-hashtags, trending-topics, twitter, x-com
- Language: JavaScript
- Homepage: https://twitterhashtags.netlify.app/
- Size: 30.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter Trending Hashtags Generator
This project scrapes trending topics from Trends24 and generates hashtags. It supports English-only filtering, customizable character limits, and can be used with a Node.js API or serverless functions on Netlify.
## Features
- Scrapes trending topics, ranks, tweet counts, and durations.
- Generates hashtags for the top trends.
- Option to filter only English trends or allow all languages.
- Ensures the total length of hashtags does not exceed the tweet character limit.## Usage
1. Clone the repository.
2. Install dependencies:
```bash
npm install
```
3. Run the server:
```bash
npm run start
```
4. Access the endpoints at http://localhost:3000.## API Endpoints
### `/api/generate-hashtags`
- **GET** request to fetch trending data and generate hashtags.
- **Query parameters**:
- `ENGLISH_ONLY`: `true` or `false` (defaults to `true` if not provided).
- `TWEET_MAX_CHARS`: Maximum characters for hashtags (defaults to `280`).