{"id":34554072,"url":"https://github.com/seanhardison1/pcs","last_synced_at":"2026-05-27T00:32:25.726Z","repository":{"id":232289070,"uuid":"291253389","full_name":"seanhardison1/pcs","owner":"seanhardison1","description":"pcs: An R package for querying race results and rider data from ProCyclingStats.com","archived":false,"fork":false,"pushed_at":"2025-08-22T15:58:18.000Z","size":19902,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-12-25T19:41:54.509Z","etag":null,"topics":["cycling","data-package","r"],"latest_commit_sha":null,"homepage":"https://seanhardison1.github.io/pcs","language":"R","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/seanhardison1.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-29T10:56:32.000Z","updated_at":"2025-08-27T17:40:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"493b3c11-a62b-4403-b889-5289703cace5","html_url":"https://github.com/seanhardison1/pcs","commit_stats":null,"previous_names":["seanhardison1/pcs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seanhardison1/pcs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanhardison1%2Fpcs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanhardison1%2Fpcs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanhardison1%2Fpcs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanhardison1%2Fpcs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanhardison1","download_url":"https://codeload.github.com/seanhardison1/pcs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanhardison1%2Fpcs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33545458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"ssl_error","status_checked_at":"2026-05-26T15:22:15.568Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["cycling","data-package","r"],"created_at":"2025-12-24T08:26:43.060Z","updated_at":"2026-05-27T00:32:25.365Z","avatar_url":"https://github.com/seanhardison1.png","language":"R","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pcs\n## A data package for querying rider data from [procyclingstats.com](https://procyclingstats.com)\n\nThe goal of `pcs` is to provide programmatic methods for querying professional cycling race results and rider biographical information from [procyclingstats.com](https://procyclingstats.com).\n\n### Installation\n\n```\ndevtools::install_github(\"seanhardison1/pcs\")\n```\n\n### Usage\n\nThe main function in `pcs` is `query_pcs`, which scrapes rider results and biographical information from the PCS website. Usage is as follows:\n\n```\npcs::query_pcs(\"Peter Sagan\", seasons = c(2020, 2021))\n```\n\nIf no season years are specified, then `query_pcs` will pull all available data for the rider name(s) passed into the function as a character vector.\n\nRider results are returned as a list of two data frames: `profiles`, containing biographical information, and `results`, containing race results. The `results` data frame may contain numeric entries that pertain to DNF, DNS, DSQ, etc, and are defined as follows:\n\n| Result flag | Code |\n|-------------|------|\n| DNF         | 999  |\n| DNS         | 998  |\n| OTL         | 997  |\n| DF          | 996  |\n| NQ          | 995  |\n| DSQ         | 994  |\n| NR          | 993  |\n\nThe `profiles` data frame contains columns for total PCS points in the categories of `Onedayraces`, `GC`, `TT`, `Sprint`, `Climber`, and `Hills`. Caution is warranted when analyzing rider biographical information from PCS.\nIt is not legal to use data scraped from PCS for commercial purposes. Also, never forget that these folks are more than just numbers!!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanhardison1%2Fpcs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanhardison1%2Fpcs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanhardison1%2Fpcs/lists"}