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.
- 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.
- Clone the repository.
- Install dependencies:
npm install
- Run the server:
npm run start
- Access the endpoints at http://localhost:3000.
- GET request to fetch trending data and generate hashtags.
- Query parameters:
ENGLISH_ONLY
:true
orfalse
(defaults totrue
if not provided).TWEET_MAX_CHARS
: Maximum characters for hashtags (defaults to280
).