Skip to main content

Peneira: academic papers from many sources in one command

Project description

peneira

Tests

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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peneira-0.1.0.tar.gz (5.0 kB view hashes)

Uploaded Source

Built Distribution

peneira-0.1.0-py3-none-any.whl (6.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page