This Python script scrapes trending repositories from GitHub using BeautifulSoup and requests libraries. It fetches information about trending repositories such as the repository name and link.
The script utilizes the requests
library to make an HTTP GET request to the GitHub trending page. It then uses BeautifulSoup
to parse the HTML content and extract information about trending repositories. The script collects the repository names and their corresponding links and presents them in a structured format.
The following libraries are required to run the script:
requests
: To make HTTP requests.BeautifulSoup
: To parse HTML content.
You can install these dependencies using pip:
pip install requests beautifulsoup4
-
Clone the repository or download the
main.py
file. -
Run the Python script:
python main.py
This will initiate the scraping process and display the trending repositories along with their links.
Contributions and feedback are welcome! Feel free to open an issue or submit a pull request if you have any suggestions or improvements.
This project is licensed under the MIT License.