Wikisource: switch to app API

Open
#213 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by comparing the Wikisource app API at https://wsindex.toolforge.org/books/ with the existing OPDS export used by this scraper; inspect the Wikisource scraper entry point and its tests to identify the fields and enumeration behavior they rely on. Check book counts, language coverage, and whether the API can enumerate the full index. Done means documenting which required data is available or missing and whether switching is feasible.

Written by the indexing model from the issue text.

Description

pending clarification

This is a statement from a discussion with Wikisource Tech Working Group:

For the Wikisource Reader app, we don't rely on this category. We depend on certain Wikidata statements along with proofread and validation badges to get a list of such books. If you need, you can access our API and get books in 34 languages as of now https://wsindex.toolforge.org/books/

I feel like we might want to switch to this API rather than relying on OPDS export which seems to be a dead end: https://github.com/openzim/zim-requests/issues/1177#issuecomment-6949579873

First thing: confirm if we have sufficient information on this API (do we have all required data or what is missing? do we have more or less books? more or less languages? how realistic is it to enumerate the whole index with that API?)

Dominant language
Python
Stars
7
Forks
4
Avg merge
16h 45m
Merged PRs (30d)
67

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openzim/papers

All issues in openzim/papers

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.