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!π
- 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
- Python 3.10 or above
- pip package manager
- Discord Bot token and channel ID
- Clone this repository:
git clone https://github.com/shallvhack/The-Hacker-News-Scraper.git
- Install dependencies:
cd The-Hacker-News-Scraper python3 -m pip install -r requirements.txt
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
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.
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.
- This tool utilizes the Beautiful Soup library for web scraping.
- Special thanks to The Hacker News for providing valuable cybersecurity news.