Skip to content

Automate Hacker News updates. Scrape thehackernews.com and send real-time articles to your Discord channel.πŸ˜€

License

Notifications You must be signed in to change notification settings

shallvhack/The-Hacker-News-Scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌟 The Hacker News Scraper 🌟

πŸ‘©β€πŸ’» Author: Madhav πŸ‘©β€πŸ’»

πŸ“‹ Overview

This tool is a powerful web scraping application designed to scrape the latest news articles from The Hacker News website and deliver them to a designated Discord channel. Stay up-to-date with the latest cybersecurity news effortlessly!πŸ˜‰

✨ Features

  • Scrapes The Hacker News for the latest articles
  • Extracts relevant information such as article title, image, publication date and description
  • Sends formatted article notifications to a Discord channel
  • Customizable scraping intervals to suit your needs
  • Simple setup and configuration

πŸ”§ Prerequisites

  • Python 3.10 or above
  • pip package manager
  • Discord Bot token and channel ID

πŸš€ Installation

  1. Clone this repository:
    git clone https://github.com/shallvhack/The-Hacker-News-Scraper.git
  2. Install dependencies:
    cd The-Hacker-News-Scraper
    python3 -m pip install -r requirements.txt
    
    

πŸ“š Usage

python3 main.py -h

usage: main.py [-t TOKEN] [-c CHANNEL_ID] [-h]

options:
  -h, --help            show this help message and exit
  -c, --channel-id      Discord Channel ID
  -t, --token           Discord bot token
  -s, --interval        Scraping interval in seconds

βš™οΈ Configuration

You can modify the tool's behavior by providing flags as mentioned in the usage section. Here are some configurable options:

  • interval: The time interval (in seconds) between each scraping process.
  • token: Your Discord Bot token.
  • channel-id: The ID of the Discord channel where notifications will be posted.

πŸ’ͺ Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.

πŸ“œ License

This project is licensed under the MIT License.

πŸ™ Acknowledgments


Releases

No releases published

Packages

No packages published

Languages