{"id":42334929,"url":"https://github.com/datacite/pidcheck","last_synced_at":"2026-01-27T14:15:03.234Z","repository":{"id":66032099,"uuid":"120211664","full_name":"datacite/pidcheck","owner":"datacite","description":"A generic PID Health Checker","archived":false,"fork":false,"pushed_at":"2023-08-14T16:36:29.000Z","size":53,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-09-11T10:23:57.307Z","etag":null,"topics":[],"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/datacite.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-02-04T18:34:42.000Z","updated_at":"2022-11-01T13:42:48.000Z","dependencies_parsed_at":"2023-03-16T02:32:35.835Z","dependency_job_id":null,"html_url":"https://github.com/datacite/pidcheck","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/datacite/pidcheck","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacite%2Fpidcheck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacite%2Fpidcheck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacite%2Fpidcheck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacite%2Fpidcheck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datacite","download_url":"https://codeload.github.com/datacite/pidcheck/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datacite%2Fpidcheck/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28814575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-27T14:15:01.875Z","updated_at":"2026-01-27T14:15:03.226Z","avatar_url":"https://github.com/datacite.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"PidCheck\n--------\n\nPidCheck is a generic crawler for extracting data about PiD's from landing pages and doing some calculation on the health of the link.\nIt is based upon the [Scrapy](https://scrapy.org/) framework for doing most of the hard work.\nIt is configured for broad crawling to hit multiple domains and does this in a polite way by default.\n\nWhile the project actually includes a basic non redis backed version, the architecture\nis designed to have a redis store for both feeding urls to check and storing the data for further\nprocessing.\n\n# Getting started with docker\n\nFor starting a version of the crawler and a redis, you can just do regular\n`docker-compose up`\n\nFor debugging purposes you can use the seperate debug compose file\n`docker-compose -f docker-compose.debug.yml up`\n\nWith this running you can push data into redis using redis-cli:\n\n`src/redis-cli -p 6379 lpush pidcheck:start_urls '{ \"pid\": \"msk0-7250\", \"url\": \"https://blog.datacite.org/datacite-hiring-another-application-developer/\" }'`\n\n## Settings\n\nThe following are important settings that you can override with environment variables.\nIt is possible to use a .env file for changing these settings as well.\n\n* USER_AGENT - Specify a user agent so sites can identify your bot. default: pidcheck\n* LOG_LEVEL - Standard python logging levels can be set, default: INFO\n* REDIS_HOST - Host for specifying a different redis* default: redis\n* REDIS_PORT - Port for specifiying a different redis* default: 6379\n\n*Note specifying a different redis, you will want to use only the crawler docker image and\nnot the redis one.*\n\n# Usage\n\n## Seeding\n\nThe redis has a SEED_URL key in the format of: \"pidcheck:start_urls\".\nYou can push directly using the redis-cli:\n```src/redis-cli -p 6379 lpush pidcheck:start_urls '{ \"pid\": \"msk0-7250\", \"url\": \"https://blog.datacite.org/datacite-hiring-another-application-developer/\" }'```\n\nFor conveniance there is also a scripts/seed.py that can take either a json lines format with each line being a json object:\n```'{ \"pid\": \"msk0-7250\", \"url\": \"https://blog.datacite.org/datacite-hiring-another-application-developer/\" }'```\n\nor accepts a CSV file with the columns being: pid, url\n\nExample:\n```python scripts/seed.py myurls.csv```\n\n## Data Dump\n\nTo retrieve the results from the scraping you can use the dump.py script to output the data:\n\n```python scripts/dump.py mydata.csv```\n\n# Development\n\n## Requirements\n\n* Python 3\n\n## Install python libraries\n\n`pip install -r requirements.txt`\n\n## Scrapy\n\nIt is a scrapy project so regular scrapy crawl commands should work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacite%2Fpidcheck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatacite%2Fpidcheck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatacite%2Fpidcheck/lists"}