-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add new data source parsers for Semantic Scholar and/or PubMed to expand the range of available research feeds.
Context
The SourcePreviewer service supports 5 parser types via key-based dispatch in the fetch() method. Each parser is a private method that makes an HTTP request, parses the response, and returns normalized items (title, summary, url). Adding a new source means writing a new parser method and registering sources in config/sources.php.
Candidates
- Semantic Scholar API —
https://api.semanticscholar.org/graph/v1/paper/search(JSON, free, rate-limited) - PubMed E-utilities —
https://eutils.ncbi.nlm.nih.gov/entrez/eutils/(XML/JSON, free, rate-limited)
What to do
- Add a
fetchSemanticScholar()orfetchPubMed()method toSourcePreviewer - Add source entries to
config/sources.phpwith appropriate disciplines - Add
Http::fake()canned responses inAppServiceProviderfor Dusk isolation - Add unit tests in
SourcePreviewerTest(follow existing parser test pattern) - Update source count in README if it changes
Reference
Look at fetchEuropePmc() as the closest pattern — both are JSON REST APIs with similar response structures.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request