{"id":20820840,"url":"https://github.com/hubgit/paper-fetcher","last_synced_at":"2025-05-07T15:51:57.171Z","repository":{"id":15658374,"uuid":"18395760","full_name":"hubgit/paper-fetcher","owner":"hubgit","description":"Fetch JSON, HTML and PDF for a list of DOIs","archived":false,"fork":false,"pushed_at":"2014-04-04T11:13:41.000Z","size":168,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T17:25:24.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hubgit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-03T08:15:00.000Z","updated_at":"2024-06-18T02:39:06.000Z","dependencies_parsed_at":"2022-09-13T07:00:57.084Z","dependency_job_id":null,"html_url":"https://github.com/hubgit/paper-fetcher","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/hubgit%2Fpaper-fetcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubgit%2Fpaper-fetcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubgit%2Fpaper-fetcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hubgit%2Fpaper-fetcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hubgit","download_url":"https://codeload.github.com/hubgit/paper-fetcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252911604,"owners_count":21824055,"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":"2024-11-17T22:10:27.251Z","updated_at":"2025-05-07T15:51:57.148Z","avatar_url":"https://github.com/hubgit.png","language":"PHP","readme":"# Paper Fetcher\n\nGiven a list of DOIs, one per line in a file named `dois.txt`, `php fetch.php` will read each DOI, attempt to fetch bibliographic JSON from dx.doi.org and HTML from the publisher via dx.doi.org, then parse the HTML to find a PDF URL and fetch that PDF.\n\nIf successful, the files are stored in the data folder.\n\nAlongside each file a JSON file is stored that contains metadata for the HTTP request/response.\n\nThe XPath selectors to find the PDF URL (or next HTML URL, if it's an interstitial page) are in [selectors.json](selectors.json). They work for most publishers, but not all - it will almost certainly be necessary to add domain-specific rules to get 100% coverage.\n\nNote that if page content is generated dynamically or fetched with JavaScript, it won't be captured.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubgit%2Fpaper-fetcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhubgit%2Fpaper-fetcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhubgit%2Fpaper-fetcher/lists"}