Skip to content

Add script to scrape Flickr API documentation#145

Merged
beaufour merged 2 commits into
masterfrom
add-api-scraper
Jan 23, 2026
Merged

Add script to scrape Flickr API documentation#145
beaufour merged 2 commits into
masterfrom
add-api-scraper

Conversation

@beaufour

Copy link
Copy Markdown
Collaborator

Summary

Add a script to scrape Flickr API documentation from the official website and store it locally as JSON files.

Changes

  • New scrape_api_docs.py script that fetches all 224 API method docs from flickr.com/services/api/
  • Saves method details (description, arguments, example response, errors) as JSON in api-docs/
  • Properly extracts XML examples from <pre> tags preserving formatting
  • api-docs/ added to .gitignore (generated files)

Usage

uv run scrape_api_docs.py

This enables creating test cases from official API documentation examples.

Test plan

  • Run scraper and verify JSON files are created with properly formatted XML examples

🤖 Generated with Claude Code

beaufour and others added 2 commits January 23, 2026 06:21
Documents build/test commands, architecture overview, module
responsibilities, key patterns, and development conventions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Creates scrape_api_docs.py which fetches all 224 API method docs from
flickr.com/services/api/ and saves them as JSON files in api-docs/.
This enables creating test cases from official API documentation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@beaufour beaufour mentioned this pull request Jan 23, 2026
1 task
@beaufour beaufour merged commit 0e1e3ef into master Jan 23, 2026
@beaufour beaufour deleted the add-api-scraper branch January 23, 2026 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant