github-domain-scraper


Namegithub-domain-scraper JSON
Version 2.0.1 PyPI version JSON
download
home_page
SummaryThis 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.
upload_time2023-10-04 12:04:50
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT License Copyright (c) 2023 Parth971 (Parth Desai) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords github crawler extractor scraper github-domain
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://pypi.org/project/realpython-reader/):

```bash
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

    ```bash
    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:
        
    ```bash
    python -m github_domain_scraper \
        --link "https://github.com/Parth971" \
        --json output.json \
        --max-repositories 10
    ```

2. Extracting links from `Search result`

    ```bash
    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:

    ```bash
    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

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

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

    ```bash
    python -m github_domain_scraper --github-username Parth971
    ```

   ```bash
   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:

```python
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

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "github-domain-scraper",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "github,crawler,extractor,scraper,github-domain",
    "author": "",
    "author_email": "Parth971 <desaiparth971@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/91/75/42fab415f69c2525d35e9e56d1fa28b5dfc891d8804e59f646574c0b62b0/github-domain-scraper-2.0.1.tar.gz",
    "platform": null,
    "description": "# github-domain-scraper\n\nThe `github-domain-scraper` is a powerful tool for extracting valuable information from GitHub domains. It provides a\nwide\nvariety of use-cases, making it a versatile solution for various scenarios.\n\n## Installation\n\nYou can install the `github-domain-scraper` from [PyPI](https://pypi.org/project/realpython-reader/):\n\n```bash\npython -m pip install github-domain-scraper\n```\n\nThe reader is supported on Python 3.8 and above.\n\n## How to use\n\nThe `github-domain-scraper` is having wide variety of use-cases\n\n### Command-line Tool\n\nYou can use the `github-domain-scraper` as a command-line tool to extract information from GitHub domains:\n\n1. Extracting `Users Repositories` links\n\n    ```bash\n    python -m github_domain_scraper --link=\"https://github.com/Parth971\"\n    ```\n\n   You can also specify a JSON output file for the results and maximum number of links:\n        \n    ```bash\n    python -m github_domain_scraper \\\n        --link \"https://github.com/Parth971\" \\\n        --json output.json \\\n        --max-repositories 10\n    ```\n\n2. Extracting links from `Search result`\n\n    ```bash\n    python -m github_domain_scraper --link \"https://github.com/search?q=ori+python&type=users\"\n    ```\n\n   You can also specify a JSON output file for the results and maximum number of links:\n\n    ```bash\n    python -m github_domain_scraper \\\n        --link \"https://github.com/search?q=ori+python&type=users\" \\\n        --json output.json \\\n        --max-repositories 10\n    ```\n\n3. Extracting `User Profile` Information\n\n    ```bash\n    python -m github_domain_scraper --github-username <GitHub Username> [<GitHub Username>, ...]\n    ```\n\n   You can also specify a JSON output file for the results:\n\n    ```bash\n    python -m github_domain_scraper --github-username Parth971\n    ```\n\n   ```bash\n   python -m github_domain_scraper \\\n       --github-username Parth971 OrionXV oriana04bedoya oriolval Ailothaen \\\n       --json output.json\n   ```\n\n### Integration in Python Modules\n\nThe `github-domain-scraper` can also be seamlessly integrated into other Python modules.\nImport the `LinkExtractor` class from `github_domain_scraper.link_extractor` and use it as\nfollows:\n\n```python\nfrom github_domain_scraper.extractor import LinkExtractor, UserProfileInformationExtractor\n\nlinks = LinkExtractor(initial_link=\"github_link\").extract()\ninfo = UserProfileInformationExtractor(github_username=\"Parth971\").extract()\n```\n\nThis makes it easy to incorporate github-domain-scraper functionality into your custom Python projects.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE.md file for details.\n\ngithub_domain_scraper.extractor\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2023 Parth971 (Parth Desai)  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "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.",
    "version": "2.0.1",
    "project_urls": {
        "repository": "https://github.com/Parth971/github-domain-scraper"
    },
    "split_keywords": [
        "github",
        "crawler",
        "extractor",
        "scraper",
        "github-domain"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b06678ae3f9385b9ee1a8db25509498b2105b77da07b0bfe27cacdebab6653d0",
                "md5": "2d6a0d78305104ee7639c06b1eacbe9a",
                "sha256": "74c63adf5341117678dd6f0fbbeae3abf3ccd1713a369e5302061570a772cd92"
            },
            "downloads": -1,
            "filename": "github_domain_scraper-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2d6a0d78305104ee7639c06b1eacbe9a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 10040,
            "upload_time": "2023-10-04T12:04:47",
            "upload_time_iso_8601": "2023-10-04T12:04:47.995794Z",
            "url": "https://files.pythonhosted.org/packages/b0/66/78ae3f9385b9ee1a8db25509498b2105b77da07b0bfe27cacdebab6653d0/github_domain_scraper-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "917542fab415f69c2525d35e9e56d1fa28b5dfc891d8804e59f646574c0b62b0",
                "md5": "b28d93bb0c4e12fbf1a801fe48cd4e00",
                "sha256": "90b9eeeac08e70fea7388c4604356e9678c3eae627e4669659f3c333f80db4e2"
            },
            "downloads": -1,
            "filename": "github-domain-scraper-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b28d93bb0c4e12fbf1a801fe48cd4e00",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 10182,
            "upload_time": "2023-10-04T12:04:50",
            "upload_time_iso_8601": "2023-10-04T12:04:50.611962Z",
            "url": "https://files.pythonhosted.org/packages/91/75/42fab415f69c2525d35e9e56d1fa28b5dfc891d8804e59f646574c0b62b0/github-domain-scraper-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-04 12:04:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Parth971",
    "github_project": "github-domain-scraper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "github-domain-scraper"
}
        
Elapsed time: 0.12050s