Skip to main content

Libgenbot

Hits

forthebadge made-with-python

PyPI version

Libgenbot is a Bot written in Python to download PDFs from libgen. It is a fork of PyPaperBot, and is inspired by it Please leave feedback and report issues

Installation

Use pip to install LibgenBot

pip3 install Libgenbot

For builds with latest changes

git clone https://github.com/suhan-paradkar/Libgenbot.git
pip3 install -r requirements.txt
python3 setup.py install

Installation in termux

First, you need to be subscribed into its-pointless repo

pkg up
pkg install wget git
wget https://its-pointless.github.io/setup-pointless-repo.sh
chmod +x setup-pointless-repo.sh
./setup-pointless-repo.sh

Now, you need to install numpy

pkg install numpy

Now, install pandas.... It takes a bit long time... so have a cup of tea

export CFLAGS="-Wno-deprecated-declarations -Wno-unreachable-code"
pip install pandas

Now, install using pip

pip install Libgenbot

For builds with latest changes

git clone https://github.com/suhan-paradkar/Libgenbot.git
pip install -r requirements.txt
python setup.py install

Usage

Arguments Description Type
--query Query to make on Libgen page string
--genre select genre: one of 'libgen(Sci-Tech)[1]''Scientific articles[2]' 'Fiction[3]' . Is a must when using libgen Int
--scholar-query Query to be made on the Google Scholar page string
--doi DOI of the paper to download (this option uses only SciHub to download) string
--doi-file File .txt containing the list of paper's DOIs to download string
--libgen-pages Number or range of Libgen pages to inspect. Contains variable no. of pages string
--scholar-pages Number or range of Google Scholar pages to inspect. Each page has a maximum of 10 papers string
--libgen-results Number of papers to download. Useful When --libgen-pages=1 int
--scholar-results Number of papers to download. Useful When --scholar-pages=1 int
--dwn-dir Directory path in which to save the result string
--min-year Minimal publication year of the paper to download int
--max-dwn-year Maximum number of papers to download sorted by year int
--max-dwn-cites Maximum number of papers to download sorted by number of citations int
--journal-filter CSV file path of the journal filter . Only works on Scholar string
--restrict 0:Download only Bibtex - 1:Down load only papers PDF int
--scihub-mirror Mirror for downloading papers from sci-hub. If not set, it is selected automatically string
--proxy Use Proxychains. Provide a seperated list of proxies (See below) string
-h Shows the help --

Note

You can use only one of the arguments in the following groups

--query, --scholar-query --doi-file, and --doi --max-dwn-year and and max-dwn-cites

One of the arguments --doi, --query, --scholar-query , and --file is mandatory The arguments --scholar-pages is mandatory when using --scholar-query The argument --dwn-dir is mandatory. The argument --genre is mandatory when using --query

The argument --journal-filter require the path of a CSV containing a list of journal name paired with a boolean which indicates whether or not to consider that journal (0: don't consider /1: consider)

The argument --doi-file require the path of a txt file containing the list of paper's DOIs to download organized with one DOI per line.

The argument --proxy must be used at the end of the command. The protocol used and the port must be mentioned.

Usage of Proxy

Libgenbot --query=rheumatoid+arthritis --libgen-pages=1 --libgen-results=20 --genre=1 --dwn-dir=documents/ --proxy http://1.1.1.1:8080 http://8.0.8.0:8024

Metadata

Release files for Libgenbot 1.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Libgenbot 1.1.4
File Size Uploaded Provenance Actions
Libgenbot-1.1.4.tar.gz 24.6 kB Without provenance Details for Libgenbot-1.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Libgenbot 1.1.4
File Interpreter ABI Platform Actions
Libgenbot-1.1.4-py3-none-any.whl Python 3 none any Details for Libgenbot-1.1.4-py3-none-any.whl

Total release size: 53.2 kB

Release files / Libgenbot-1.1.4.tar.gz

Download URL Libgenbot-1.1.4.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e68b8ee31232c12a3ebca9fb4cb45a83b8f4179ba1b4fe7dfbb0be6da3d21590
BLAKE2b-256 checksum
How to use checksums
2a19299e6f5abcc1d278af9f6a6462b59fdb79b17f8f496c3b3f861cdb8f226d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Release files / Libgenbot-1.1.4-py3-none-any.whl

Download URL Libgenbot-1.1.4-py3-none-any.whl
Size 28.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be79e3285efac69e4023c63d9579a2b31fa652aa46ec6ccaa72b623bedd012a5
BLAKE2b-256 checksum
How to use checksums
ce90b2f127d55199eca6ed949a15ffc15be6eb029a075128d547198420dfb741
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.0

Security for Libgenbot 1.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page