bulk upload files to http://libgen.la/librarian.php (Selenium script)
Example:
./upload.py to_upload uploaded lawhere la is the LibGen top-level domain (TLD). See below for the list of supported TLDs.
So title and author metadata is set on LibGen, uploaded files should be in the Calibre format, e.g.:
TITLE - AUTHOR.suffix
where suffix is one of the LibGen supported formats
- cbr
- cbz
- chm
- djvu
- doc
- docx
- epub
- fb2
- mobi
- rar
- rtf
- zip
e.g.:
The Nature of Thermodynamics - Bridgman, Percy Williams.djvu
See Open SLUM for currently working TLDs.
| Libgen TLD | Country (GeoIP of IPv4 address) |
|---|---|
| bz | Switzerland 🇨🇭 (Zurich) |
| gl | U.S. 🇺🇸 |
| la | U.S. 🇺🇸 |
| li | Switzerland 🇨🇭 (Zurich) |
| vg | Malaysia 🇲🇾 |
The populate_upload.bash script will populate the upload folder with symlinks to new files in your ~/CalibreLibrary that you want to upload. It determines the latest upload file based on the newest file in uploaded. It uses the formats specified in the (one per line) formats.txt file.
The format of the symlinks is:
TITLE - AUTHOR-randsf.suffix
where "randsf" is a randoom 6 character string; this is to avoid collisions with other files in the upload folder. (If you don't want that suffix a part of the AUTHOR name when uploading with upload.py, change upload.py's line "author = re.sub(r'_$', '.', author)" to "author = re.sub(r'_$', '.', author)[:-7]".)
- Calibre
- Bodó, Balázs. “The Genesis of Library Genesis: The Birth of a Global Scholarly Shadow Library.” In CrimRxiv. Preprint, September 26, 2024.