Skip to content

Scrape trending Twitter hashtags with this Python script. Easily filter for English topics and generate hashtags that fit Twitter's character limits. πŸ™πŸ“Š

Notifications You must be signed in to change notification settings

OMOR-SURVIVOR/Twitter-Trending-Hashtags-Scraper-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Twitter Trending Hashtags Scraper in Python πŸ¦πŸ”

GitHub release Python version

Twitter Trends

Table of Contents

Overview

This repository contains a Python script designed to scrape trending hashtags from trends24.in. The script generates hashtags based on these trends, with an option to filter for English-only trends. It ensures that the generated hashtags comply with Twitter's character limits, making it a handy tool for social media managers, marketers, and enthusiasts looking to enhance their Twitter engagement.

You can download the latest version of the script from the Releases section.

Features

  • Scrapes Trending Topics: Gathers trending topics from trends24.in.
  • Generates Hashtags: Converts trends into hashtags.
  • English-Only Filtering: Option to filter trends for English language.
  • Character Limit Compliance: Ensures hashtags fit within Twitter's character limits.
  • Easy to Use: Simple command-line interface for quick access.

Installation

To install the script, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/OMOR-SURVIVOR/Twitter-Trending-Hashtags-Scraper-Python.git
    cd Twitter-Trending-Hashtags-Scraper-Python
  2. Install Dependencies: Make sure you have Python 3.6 or higher installed. You can install the required libraries using pip:

    pip install -r requirements.txt
  3. Download the Script: You can download the latest version of the script from the Releases section.

Usage

To run the script, use the following command in your terminal:

python scraper.py --english-only

Command-Line Options

  • --english-only: Scrapes only English trending topics.
  • --all: Scrapes all trending topics regardless of language.

Example Output

The script will output a list of hashtags like this:

#Trend1
#Trend2
#Trend3

You can easily copy these hashtags for use on Twitter.

Contributing

We welcome contributions to improve this project. If you have suggestions or enhancements, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Make your changes.
  4. Submit a pull request.

Please ensure your code follows the existing style and includes tests where applicable.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Support

For any issues or questions, please check the Releases section for updates or open an issue in the repository.

Support

Feel free to explore the code and contribute to this project! Your feedback is valuable.

About

Scrape trending Twitter hashtags with this Python script. Easily filter for English topics and generate hashtags that fit Twitter's character limits. πŸ™πŸ“Š

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages