Skip to content

Latest commit

 

History

History
70 lines (48 loc) · 2.36 KB

README.md

File metadata and controls

70 lines (48 loc) · 2.36 KB

🌟 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