{"id":16743425,"url":"https://github.com/gabfl/sitecrawl","last_synced_at":"2025-04-10T13:32:52.163Z","repository":{"id":44733162,"uuid":"451673261","full_name":"gabfl/sitecrawl","owner":"gabfl","description":"Simple Python module to crawl a website and extract URLs","archived":false,"fork":false,"pushed_at":"2023-05-09T00:08:05.000Z","size":31,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T12:12:29.224Z","etag":null,"topics":["crawl","crawler","crawler-python","crawling-sites"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabfl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-24T23:50:52.000Z","updated_at":"2023-06-03T00:16:37.000Z","dependencies_parsed_at":"2025-02-17T08:31:39.661Z","dependency_job_id":"1770e459-688c-45aa-bbf4-ae87da1a0c52","html_url":"https://github.com/gabfl/sitecrawl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabfl%2Fsitecrawl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabfl%2Fsitecrawl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabfl%2Fsitecrawl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabfl%2Fsitecrawl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabfl","download_url":"https://codeload.github.com/gabfl/sitecrawl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225712,"owners_count":21068078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crawl","crawler","crawler-python","crawling-sites"],"created_at":"2024-10-13T01:26:58.090Z","updated_at":"2025-04-10T13:32:52.143Z","avatar_url":"https://github.com/gabfl.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sitecrawl\n\n[![Pypi](https://img.shields.io/pypi/v/sitecrawl.svg)](https://pypi.org/project/sitecrawl)\n[![Build Status](https://github.com/gabfl/sitecrawl/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/gabfl/sitecrawl/actions)\n[![codecov](https://codecov.io/gh/gabfl/sitecrawl/branch/main/graph/badge.svg)](https://codecov.io/gh/gabfl/sitecrawl)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-green.svg)](https://raw.githubusercontent.com/gabfl/sitecrawl/main/LICENSE)\n\nSimple Python module to crawl a website and extract URLs.\n\n## Installation\n\nUsing pip:\n\n```bash\npip3 install sitecrawl\n\nsitecrawl --help\n```\n\nOr build from sources:\n\n```bash\n# Clone project\ngit clone https://github.com/gabfl/sitecrawl \u0026\u0026 cd sitecrawl\n\n# Installation\npip3 install .\n```\n\n## Usage\n\n### CLI\n\n```bash\nsitecrawl --url https://www.yahoo.com/ --depth 2 --max 4 --verbose\n```\n\n-\u003e\n\n```\n* Found 4 internal URLs\n  https://www.yahoo.com\n  https://www.yahoo.com/entertainment\n  https://www.yahoo.com/lifestyle\n  https://www.yahoo.com/plus\n\n* Found 5 external URLs\n  https://mail.yahoo.com/\n  https://news.yahoo.com/\n  https://finance.yahoo.com/\n  https://sports.yahoo.com/\n  https://shopping.yahoo.com/\n\n* Skipped 0 URLs\n```\n\n### As a module\n\nBasic example:\n\n```py\nfrom sitecrawl import crawl\n\ncrawl.base_url = 'https://www.yahoo.com'\ncrawl.deep_crawl(depth=2)\n\nprint('Internal URLs:', crawl.get_internal_urls())\nprint('External URLs:', crawl.get_external_urls())\nprint('Skipped URLs:', crawl.get_skipped_urls())\n```\n\nA more detailed example is available in [example.py](https://github.com/gabfl/sitecrawl/blob/main/example.py).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabfl%2Fsitecrawl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabfl%2Fsitecrawl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabfl%2Fsitecrawl/lists"}