Repository navigation
feat(research): add Serply Scholar source - #191
Merged
chauncygu merged 1 commit intoOct 30, 2026
Merged
Conversation
Optional academic source that reads Google Scholar through the Serply API: Scholar citation counts without scraping, year filter mapped to as_ylo/as_yhi. Skips without SERPLY_API_KEY.
Ichwanus-Shafa
approved these changes
Oct 17, 2026
Ichwanus-Shafa
approved these changes
Oct 18, 2026
Ichwanus-Shafa
approved these changes
Oct 18, 2026
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
Adds
serply_scholar, an optional/researchsource that gets Google Scholar results through the Serply API. It sits beside thescholarly-basedgoogle_scholarsource and gives the same Scholar citation counts without scraping, so a query takes about 1-2s and does not hit CAPTCHAs.It follows the Brave and Tavily sources: tier
optional,SERPLY_API_KEY(or/config serply_api_key=...), and it raisesSourceSkippedwhen no key is set, so nothing changes for users without one.Changes
cheetahclaws/research/sources/serply_scholar.py: the new source, registered for theacademicdomain.engagement_rawandengagement_label.published.extra.--range/--since/--untilmap to Scholar's own year filter (as_ylo/as_yhi), so the date filter runs on the server instead of after the fetch.cheetahclaws/research/sources/__init__.py: one import line.cheetahclaws/research/ranker.py: calibration of 100, the same assemantic_scholarand the defaultgoogle_scholarfalls back to.docs/guides/research.md: a row in the optional-sources table and a row in the time-range mapping table.tests/test_research.py: a skip-without-key test like the Brave and Tavily ones, plus a parse test with a mockedget. The parse test covers the citation count, year, author truncation, the year filter params, the key header and dropping a row with no link.How to test
Validation
python -m pytest tests/test_research.py -q: 90 passed.SOURCES["serply_scholar"].search(...)with a real key andparse_range("2y"): 5 results, all dated 2024-2026, each with a citation count, authors and a publisher URL.Disclosure: I work on Serply. Happy to rename the source or adjust anything to match project conventions.