Skip to main content

A simple hashtag scraper

Project description

robertobalestri: @workspace write a good readme, don't talk abotu scrape, tal kabout getting best hastags for a given word, and add a little usage example

Workspace: Collecting workspace informationHere is an improved README.md:

# Best Hashtags

Best Hashtags is a Python tool that helps you find the best hashtags for a given word. It retrieves popular hashtags from the website `https://best-hashtags.com/hashtag/{search_word}/`.

## Features

- Retrieve top hashtags for any given word.
- Option to get a specific number of hashtags.
- Option to get hashtags in a random order.

## Installation

1. **Clone the repository**:
   ```bash
   git clone https://github.com/robertobalestri/best_hashtags.git
   cd best_hashtags
  1. Create a Python virtual environment:

    python -m venv venv
    
  2. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
      
    • On macOS/Linux:
      source venv/bin/activate
      
  3. Install the required packages:

    pip install -r requirements.txt
    

Usage

To get the best hashtags for a given word, you can use the following command:

python src/best_hashtags.py <search_word>

Replace <search_word> with the word you want to search for hashtags.

Example

python src/best_hashtags.py music

This will print the top 30 hashtags related to the word "music".

Dependencies

  • requests: For making HTTP requests.
  • beautifulsoup4: For parsing HTML content.

License

This project is licensed under the MIT License.


robertobalestri: ok, modify the file

GitHub Copilot: Sure, here is the updated README.md file:

```markdown
# Best Hashtags

Best Hashtags is a Python tool that helps you find the best hashtags for a given word. It retrieves popular hashtags from the website `https://best-hashtags.com/hashtag/{search_word}/`.

## Features

- Retrieve top hashtags for any given word.
- Option to get a specific number of hashtags.
- Option to get hashtags in a random order.

## Installation

1. **Clone the repository**:
   ```bash
   git clone https://github.com/robertobalestri/best_hashtags.git
   cd best_hashtags
  1. Create a Python virtual environment:

    python -m venv venv
    
  2. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
      
    • On macOS/Linux:
      source venv/bin/activate
      
  3. Install the required packages:

    pip install -r requirements.txt
    

Usage

To get the best hashtags for a given word, you can use the following command:

python src/best_hashtags.py <search_word>

Replace <search_word> with the word you want to search for hashtags.

Example

python src/best_hashtags.py music

This will print the top 30 hashtags related to the word "music".

Dependencies

  • requests: For making HTTP requests.
  • beautifulsoup4: For parsing HTML content.

License

This project is licensed under the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

best_hashtags-0.1.0.tar.gz (2.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

best_hashtags-0.1.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file best_hashtags-0.1.0.tar.gz.

File metadata

  • Download URL: best_hashtags-0.1.0.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for best_hashtags-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3b39b583c3b76988024f2518590eea3ba52a9fa8888835c1deefeb6f147fa832
MD5 246309e8060053c2e1f5bcbb9cfcdab2
BLAKE2b-256 79e7eecc071ef64daae71ea03e8052c3e8309d4e8e1d80957e874a1503725985

See more details on using hashes here.

File details

Details for the file best_hashtags-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: best_hashtags-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.8

File hashes

Hashes for best_hashtags-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de3209f1c47e45ad0246621fed3a9d597546f3abd681016cc88acf3319eb71df
MD5 5b4719745f28b08411888ce4c55399ec
BLAKE2b-256 038e2b1313b1f7ee6634d4cd5008997c30cc8cec88aea4a2e44cc5ec75be0c61

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page