anapaulagomes / peneira

It's time to sift through some articles 🤭
MIT License
0 stars 1 forks source link

Add Semantic Scholar #17

Closed anapaulagomes closed 2 months ago

anapaulagomes commented 2 months ago

Closes #8.

Add Semantic Scholar as a source.

Usage: add -s or --source before the name of the wanted source. You will be asked to prompt the query for each one.

Example:

peneira -s semantic_scholar -s open_alex

Please enter the search string for semantic_scholar: syndromic surveillance & machine learning                                                                    
Fetching articles for SEMANTIC_SCHOLAR...
Please enter the search string for open_alex: syndromic surveillance AND machine learning
Fetching articles for OPEN_ALEX... 4447 papers distributed in 23 pages.
Executing the search...
Done.

When there are more sources, they will be better shaped. I'm trying to avoid the temptation of refactoring prematurely. :)