{"id":17319522,"url":"https://github.com/ziman/scan-escl","last_synced_at":"2025-08-01T19:32:09.989Z","repository":{"id":137833347,"uuid":"144413396","full_name":"ziman/scan-eSCL","owner":"ziman","description":"Scan from eSCL-compatible scanners","archived":false,"fork":false,"pushed_at":"2020-02-27T21:52:56.000Z","size":5,"stargazers_count":4,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T10:47:04.491Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ziman.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":"2018-08-11T19:37:48.000Z","updated_at":"2020-10-20T10:58:24.000Z","dependencies_parsed_at":"2023-04-17T05:08:40.770Z","dependency_job_id":null,"html_url":"https://github.com/ziman/scan-eSCL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ziman/scan-eSCL","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziman%2Fscan-eSCL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziman%2Fscan-eSCL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziman%2Fscan-eSCL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziman%2Fscan-eSCL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ziman","download_url":"https://codeload.github.com/ziman/scan-eSCL/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ziman%2Fscan-eSCL/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268286075,"owners_count":24225864,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-10-15T13:25:35.490Z","updated_at":"2025-08-01T19:32:09.977Z","avatar_url":"https://github.com/ziman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scan-eSCL\n\nScan from eSCL-enabled printers.\n\n## Synopsis\n\n```\nusage: scan.py [-h] [-o OUTFILE] [-p PORT] [-c COLOR_MODE] scanner_ip\n\npositional arguments:\n  scanner_ip            IP address of the scanner\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -o OUTFILE, --outfile OUTFILE\n                        output file name [scan.jpg]\n  -p PORT, --port PORT  http port [80]\n  -c COLOR_MODE, --color-mode COLOR_MODE\n                        Grayscale8 or RGB24 [RGB24]\n```\n\n## Motivation\n\nI wanted to scan from my Canon Pixma TS5050. I found these two resources:\n\n* http://testcluster.blogspot.com/2014/03/scanning-from-escl-device-using-command.html\n\n* https://github.com/kno10/python-scan-eSCL\n\nHowever, I found the Python script too complicated for my needs; I know the IP\naddress of my printer and I don't need zeroconf and all the automagic.\nFurthermore, I wanted a tidier, more up-to-date Python 3 script.\n\n## Protocol description\n\nIt's cool you can have a RESTful interface to a scanner.\n\n1. `POST` a `text/xml` to `/eSCL/ScanJobs` to create a scan job.\n2. Receive `HTTP 201`, where the `Location` header gives you the job URL.\n3. You can `DELETE` that job URL to cancel it.\n4. You can `GET $job_url/NextDocument` to obtain a JPEG file.\n   This automatically closes the job.\n\n## License\n\n3-clause BSD.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziman%2Fscan-escl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fziman%2Fscan-escl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fziman%2Fscan-escl/lists"}