| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This project is a GitHub scraper designed to collect Python code from repositories, focusing on code that includes docstrings in functions and classes. The collected data is used to create an extensive dataset for the JaraConverse LLM model created by Abdul Moez.
MIT License
Copyright (c) 2024 AbdulMoez
The GitHub Python Code Scraper automates the process of searching for and scraping Python repositories from GitHub. It focuses on extracting code snippets that contain docstrings, ensuring that the dataset includes well-documented code. The scraper supports multithreading and handles GitHub API rate limits.
To install the required dependencies, run:
pip install -r requirements.txtTo start the scraper, run the following command:
python scraper.pyfrom scraper import Scraper
# Initialize the Scraper object
scraper = Scraper(
search_query="language:python pushed:<2023-01-01",
git_tokens=["your_github_token1", "your_github_token2"],
number_of_threads=4
)
# Start the scraping process
scraper.start_scraper()You can customize the scraper's behavior using the following parameters:
When using this scraper, it is essential to adhere to GitHub's terms of service and respect the rights of repository owners. Follow these guidelines to ensure ethical use:
Contributions are welcome! Please open an issue or submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
| Back | FazBrowse Home | New Git URL |