Peneira: academic papers from many sources in one command
Project description
peneira
It's time to sift through some articles 🤭
With this CLI you can search for papers for your research in different sources and export the results.
DISCLAIMER: This is a work in progress. The code is under active development and it's not ready for production use.
Available sources
...and many more to come!
OpenAlex
Here are some details about this source:
- OpenAlex data sources
- OpenAlex search syntax
- Open Alex filters
- Open Alex rate limits and authentication
This library obeys the rate limits of the OpenAlex API (10 requests per second).
Usage
CLI
You can interact with the CLI using pn
. For example, to search for papers on
"artificial intelligence" and "syndromic surveillance" and save the results to a file, you can run:
peneira '"artificial intelligence" and "syndromic surveillance"' --filename my-papers.json
It will search for papers in OpenAlex and store it in a file named my-papers.json
.
You have also the option of export it to a bibtex file:
peneira '"artificial intelligence" and "public health"' --format bibtex --filename my-papers.bib
Python module
In case you want to call the OpenAlex source directly, you can use the following code:
import asyncio
from peneira.sources.open_alex import fetch_papers
asyncio.run(fetch_papers("artificial intelligence AND public health"))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.