Skip to content

fix(JP): update Japan Post KEN_ALL download URL (closes #1543)#1544

Open
Tanoshima wants to merge 1 commit into
dr5hn:masterfrom
Tanoshima:fix/japan-post-csv-url-1543
Open

fix(JP): update Japan Post KEN_ALL download URL (closes #1543)#1544
Tanoshima wants to merge 1 commit into
dr5hn:masterfrom
Tanoshima:fix/japan-post-csv-url-1543

Conversation

@Tanoshima
Copy link
Copy Markdown

Summary

  • Japan Post moved the ken_all.zip download endpoint. The old URL https://www.post.japanpost.jp/zipcode/dl/kogaki/zip/ken_all.zip now returns 404.
  • Replace it with the current path https://www.post.japanpost.jp/service/search/zipcode/download/kogaki/zip/ken_all.zip in both locations inside bin/scripts/sync/import_japan_post_postcodes.py (header docstring + usage example).
  • No data files touched — this only restores reproducibility of the JP postcode importer.

Closes #1543.

Source

Test plan

  • curl -sI on the new URL returns 200 (after following redirects)
  • curl -sI on the old URL returns 404
  • Re-run python3 -c "import urllib.request; urllib.request.urlretrieve('https://www.post.japanpost.jp/service/search/zipcode/download/kogaki/zip/ken_all.zip', '/tmp/ken_all.zip')" and confirm the zip downloads
  • Run python3 bin/scripts/sync/import_japan_post_postcodes.py --input /tmp/KEN_ALL.CSV end-to-end

🤖 Generated with Claude Code

Japan Post moved the ken_all.zip download endpoint; the previous
/zipcode/dl/kogaki/ path returns 404. Replace it with the new
/service/search/zipcode/download/kogaki/ path in both the docstring
header and the usage example so re-running the importer succeeds.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Update Japan Post CSV download URL (404 error)

1 participant