{"id":38513083,"url":"https://github.com/c-3lab/opendata-pdf-to-csv","last_synced_at":"2026-01-20T17:56:34.707Z","repository":{"id":222938500,"uuid":"758792921","full_name":"c-3lab/opendata-pdf-to-csv","owner":"c-3lab","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-10T03:12:48.000Z","size":124956,"stargazers_count":0,"open_issues_count":4,"forks_count":7,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-10T04:24:51.777Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-3lab.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-17T05:04:04.000Z","updated_at":"2025-04-10T03:12:51.000Z","dependencies_parsed_at":"2024-03-17T03:48:40.030Z","dependency_job_id":"f6caeb09-d456-4f5e-8bfe-d6a9c2872939","html_url":"https://github.com/c-3lab/opendata-pdf-to-csv","commit_stats":null,"previous_names":["c-3lab/opendata-pdf-to-csv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c-3lab/opendata-pdf-to-csv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-3lab%2Fopendata-pdf-to-csv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-3lab%2Fopendata-pdf-to-csv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-3lab%2Fopendata-pdf-to-csv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-3lab%2Fopendata-pdf-to-csv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-3lab","download_url":"https://codeload.github.com/c-3lab/opendata-pdf-to-csv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-3lab%2Fopendata-pdf-to-csv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28502214,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T04:31:57.058Z","status":"ssl_error","status_checked_at":"2026-01-17T04:31:45.816Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-17T06:24:18.031Z","updated_at":"2026-01-17T06:24:18.101Z","avatar_url":"https://github.com/c-3lab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opendata-pdf-to-csv\n\n#### 対象ページ\n\n緊急避妊に係る取組について - 厚生労働省のウェブサイトに掲載を希望した緊急避妊にかかる対面診療が可能な産婦人科医療機関等の一覧\nhttps://www.mhlw.go.jp/stf/seisakunitsuite/bunya/0000186912_00002.html\n\n\nGithub Actionによって1日に一回PDFを全件取得し、PDF -\u003e CSVに変換します。\n\n結果は[./output_files](./output_files)に出力されます。\n\n\n## 手動で実行\n\n1. dimのインストール\n\n[https://github.com/c-3lab/dim?tab=readme-ov-file#install-the-dim](https://github.com/c-3lab/dim?tab=readme-ov-file#install-the-dim)\n\n2. プロジェクトをclone\n```\n$ git clone https://github.com/c-3lab/opendata-pdf-to-csv.git\n```\n\n3. プロジェクト初期化\n```\n$ dim init\n```\n\n4. pdfの一括インストール\n```\n$ dim install -P https://www.mhlw.go.jp/stf/seisakunitsuite/bunya/0000186912_00002.html -e \".pdf\" -n \"shinryoujo\"\n```\n※ 最後の２ファイルだけ産婦人科医療機関以外のpdfが混じってしまうので注意\n\n`./data_files`以下にダウンロードされたpdfが保存される\n\n5. pdfからcsvへ変換\n\n※ poetryのインストール方法： https://cocoatomo.github.io/poetry-ja/\n\n```\n$ poetry shell\n$ poetry install\n\n$ python main.py\n```\n\nまたは\n\n```\n$ pip install tabula-py pandas pdfplumber requests\n\n$ python main.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-3lab%2Fopendata-pdf-to-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-3lab%2Fopendata-pdf-to-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-3lab%2Fopendata-pdf-to-csv/lists"}