feat(scihub): add Sci-Hub search and DOI lookup adapters - #74
Open
fancywindy wants to merge 1 commit into
Open
Conversation
Add two bb-browser site adapters for sci-hub.org.cn: - scihub/search: Search academic papers via Sci-Hub Google Scholar mirror. Supports keyword/title/DOI queries. Returns title, authors, year, source, snippet, citations, and open-access download links. - scihub/doi: Lookup paper metadata by DOI. Handles DOI slash encoding issues and filters platform-internal links. Both adapters include: - Domain validation (sci-hub.org.cn) - Referer header for anti-bot bypass - Structured error handling with hints - CSS selector based DOM parsing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add two bb-browser site adapters for sci-hub.org.cn:
scihub/search — Search academic papers via the Sci-Hub Google Scholar mirror. Supports keyword/title/DOI queries with configurable result count. Returns title, authors, year, source, snippet, citation count, and open-access download links.
scihub/doi — Lookup paper metadata by DOI. Handles DOI slash encoding issues (/ → space) to avoid URL routing problems on this mirror. Filters platform-internal links and returns structured metadata.
Features
Testing
Tested on sci-hub.org.cn with live browser tab.
Checklist