Skip to main content

This Python package is designed for web crawling through input links that belong to GitHub domains. It offers a wide range of functionalities beyond simple crawling, including the ability to list repositories associated with the provided link, download GitHub repositories, and extract the contents of GitHub repositories.

Project description

github-domain-scraper

The github-domain-scraper is a powerful tool for extracting valuable information from GitHub domains. It provides a wide variety of use-cases, making it a versatile solution for various scenarios.

Installation

You can install the github-domain-scraper from PyPI:

python -m pip install github-domain-scraper

The reader is supported on Python 3.8 and above.

How to use

The github-domain-scraper is having wide variety of use-cases

Command-line Tool

You can use the github-domain-scraper as a command-line tool to extract information from GitHub domains:

  1. Extracting Users Repositories links

    python -m github_domain_scraper --link="https://github.com/Parth971"
    

    You can also specify a JSON output file for the results and maximum number of links:

    python -m github_domain_scraper \
        --link "https://github.com/Parth971" \
        --json output.json \
        --max-repositories 10
    
  2. Extracting links from Search result

    python -m github_domain_scraper --link "https://github.com/search?q=ori+python&type=users"
    

    You can also specify a JSON output file for the results and maximum number of links:

    python -m github_domain_scraper \
        --link "https://github.com/search?q=ori+python&type=users" \
        --json output.json \
        --max-repositories 10
    
  3. Extracting User Profile Information

    python -m github_domain_scraper --github-username <GitHub Username> [<GitHub Username>, ...]
    

    You can also specify a JSON output file for the results:

    python -m github_domain_scraper --github-username Parth971
    
    python -m github_domain_scraper \
        --github-username Parth971 OrionXV oriana04bedoya oriolval Ailothaen \
        --json output.json
    

Integration in Python Modules

The github-domain-scraper can also be seamlessly integrated into other Python modules. Import the LinkExtractor class from github_domain_scraper.link_extractor and use it as follows:

from github_domain_scraper.extractor import LinkExtractor, UserProfileInformationExtractor

links = LinkExtractor(initial_link="github_link").extract()
info = UserProfileInformationExtractor(github_username="Parth971").extract()

This makes it easy to incorporate github-domain-scraper functionality into your custom Python projects.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

github_domain_scraper.extractor

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

github-domain-scraper-2.0.1.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

github_domain_scraper-2.0.1-py3-none-any.whl (10.0 kB view details)

Uploaded Python 3

File details

Details for the file github-domain-scraper-2.0.1.tar.gz.

File metadata

  • Download URL: github-domain-scraper-2.0.1.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for github-domain-scraper-2.0.1.tar.gz
Algorithm Hash digest
SHA256 90b9eeeac08e70fea7388c4604356e9678c3eae627e4669659f3c333f80db4e2
MD5 b28d93bb0c4e12fbf1a801fe48cd4e00
BLAKE2b-256 917542fab415f69c2525d35e9e56d1fa28b5dfc891d8804e59f646574c0b62b0

See more details on using hashes here.

File details

Details for the file github_domain_scraper-2.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for github_domain_scraper-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74c63adf5341117678dd6f0fbbeae3abf3ccd1713a369e5302061570a772cd92
MD5 2d6a0d78305104ee7639c06b1eacbe9a
BLAKE2b-256 b06678ae3f9385b9ee1a8db25509498b2105b77da07b0bfe27cacdebab6653d0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page