internetarchive / internetarchive/dweb-gateway

Verify DOIs before lookup; check crossref API

Open
#9 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
20
Forks
5
PR merge metrics
No merged PRs in 30d

Description

@eseiver: two quick extensions that could be made to the work we just did at the hackathon:

- could clean and verify DOI numbers passed in. Eg, I think DOIs should always be all lowercase (`the_doi.lower()` function) and start with `10.` (`the_doi.startswith()` function). Or you could use the `re` regex library with a regex from stackoverflow or elsewhere to verify
- could call the Crossref API to get additional DOI metadata and inject that into the JSON object returned. I think you already have code to do this? Would probably add dependencies (`requests`, etc), which if few are ok, but if more might require a virtualenv or conda environment setup

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the existing DOI lookup and JSON-returning code referenced in the issue, then inspect how DOI input is currently handled and whether Crossref access already exists. Clarify the intended validation behavior, metadata fields, and dependency setup before changing anything. Done means both requested extensions are implemented and the existing DOI lookup still returns valid JSON.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.