{"id":26228941,"url":"https://github.com/thunderpoot/scdx","last_synced_at":"2025-03-12T21:34:43.366Z","repository":{"id":225138855,"uuid":"764174543","full_name":"thunderpoot/scdx","owner":"thunderpoot","description":"A simple tool for querying the Common Crawl CDX","archived":false,"fork":false,"pushed_at":"2024-06-26T17:59:25.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-06-26T22:32:23.825Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/thunderpoot.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":"2024-02-27T16:00:40.000Z","updated_at":"2024-06-26T17:59:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"4ed839fe-e351-4ae3-819c-04ea7940381f","html_url":"https://github.com/thunderpoot/scdx","commit_stats":null,"previous_names":["thunderpoot/scdx"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderpoot%2Fscdx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderpoot%2Fscdx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderpoot%2Fscdx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunderpoot%2Fscdx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thunderpoot","download_url":"https://codeload.github.com/thunderpoot/scdx/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243300145,"owners_count":20269251,"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":[],"created_at":"2025-03-12T21:34:42.853Z","updated_at":"2025-03-12T21:34:43.356Z","avatar_url":"https://github.com/thunderpoot.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `scdx`\n## Simple CDX\n\n![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge\u0026logo=python\u0026logoColor=ffdd54)![Rust](https://img.shields.io/badge/rust-%23000000.svg?style=for-the-badge\u0026logo=rust\u0026logoColor=white)\n\nA tool for querying the Common Crawl CDX Index.  Versions in both Python and Rust are included in this repository.  The command–line syntax is identical in both versions.\n\n### Installation:\n\n1. Clone this repository\n2. To run the Rust version, compile and run via:\n```\n$ cargo build --release\n```\n\n```\n$ cd target/release\n$ chmod +x scdx\n```\n\n### Usage:\n\n```bash\n$ scdx --sleep 2 --domain commoncrawl.org --crawls CC-MAIN-2021-04 CC-MAIN-2024-10\n```\n\n```bash\n$ scdx -s 10 -d '*.wikipedia.org' -c CC-MAIN-2023-50\n```\n\n```bash\n$ scdx -l -d apple.com\n```\n\nThe program will display a progress bar and output a file with a timestamp (e.g `2024-02-27_18-34-50_output.jsonl`) to the working directory, unless the `-o` or `--output` options are used.\n\nThe default sleep time is 2 seconds. Please be polite! Polling multiple times a second will make the index server sad. See the CCF system status [here](https://status.commoncrawl.org).\n\nIf no crawls are specified, all crawls will be queried. Use the `-l` or `--latest` flag to only query the latest crawl.\n\nThe API used supports two methods of wildcarding, like the (more advanced and mature) [cdx-toolkit](https://github.com/cocrawler/cdx_toolkit) by Greg Lindahl.\n\n- **Prefixed asterisk**\n\n    The query `*.example.com`, in CDX jargon sets `matchType='domain'`, and will return captures for `blog.example.com`, `support.example.com`, etc.\n\n- **Appended asterisk**\n\n    The query `example.com/*` will return captures for any page on `example.com`.\n\nThe Python version uses [`tqdm`](https://tqdm.github.io/) to display a progress bar, and the Rust version uses [`indicatif`](https://docs.rs/indicatif/latest/indicatif/).\n\n### Licence\n[MIT License](LICENSE)\n\n### Thanks\n- **[Greg Lindahl](https://github.com/wumpus)**\n- **[Pedro Ortiz Suarez](https://github.com/pjox)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunderpoot%2Fscdx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthunderpoot%2Fscdx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunderpoot%2Fscdx/lists"}