CLI tool to fetch PubMed papers with non-academic authors
Project description
Research Paper Fetcher
A Python tool to fetch research papers from PubMed based on a user query, filtering for papers with authors affiliated with pharmaceutical or biotech companies, and exporting the results to CSV.
Features
- Uses PubMed API with full query syntax support
- Filters for non-academic authors (pharma/biotech affiliations)
- Command-line interface with options for debug info, output file, email & API key
- Outputs data including PubMed ID, title, publication date, author affiliations, and corresponding author email
- Written in typed Python with Poetry for dependency management
Installation
Make sure you have Python 3.8+ installed.
-
Clone the repository: git clone https://github.com/ritujadik/ResarchPaperProject.git cd ResarchPaperProject
-
Install dependencies with Poetry: poetry install
-
Usage poetry shell Run the CLI tool: "python -m resarchpaper "cancer therapy" --email your_email@example.com --file output.csv --debug" 4.Command-line Options --email (required): Your email for NCBI Entrez API. --api-key (optional): Your NCBI API key for higher rate limits. --file or -f: CSV output filename (prints to console if not specified). --debug or -d: Prints debug information during execution. --help or -h: Show help message. 5.Development The project is modular: pubmed_fetcher.py handles PubMed API calls pubmed_processing.py processes and filters articles csvwriter.py exports data to CSV cli.py handles command-line interface 6.External Libraries & Tools Biopython for Entrez API interaction Typer for CLI Poetry for dependency management
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.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file resarchpaper-0.1.0.tar.gz.
File metadata
- Download URL: resarchpaper-0.1.0.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c01fd28182026e959c469faaf9e6e061c2eb939f74e3e3d677997fd617f0098
|
|
| MD5 |
42c127a3e15b05bdb160b22f5c61b9c9
|
|
| BLAKE2b-256 |
5d7db267da157e97fa4d0eef31d45187f8cba86650d0f0928b89b160aaa255f4
|
File details
Details for the file resarchpaper-0.1.0-py3-none-any.whl.
File metadata
- Download URL: resarchpaper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.3 CPython/3.11.3 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a41b0c1eb483abf1546113053d9e727676d1765a8dc0be12729b7711549cb805
|
|
| MD5 |
0acd9d77b12ce8c273b577397b7c01e3
|
|
| BLAKE2b-256 |
b19953d09d006ddaf22320260ef98fb9a0154873f7b88b93a6b263967ccc58c7
|