Skip to content

Geremia/LibgenBulkUpload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LibgenBulkUpload

bulk upload files to http://libgen.la/librarian.php (Selenium script)

Usage

Example:

./upload.py to_upload uploaded la

where 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
  • pdf
  • rar
  • rtf
  • zip

e.g.:

The Nature of Thermodynamics - Bridgman, Percy Williams.djvu

Libgen TLDs

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 🇲🇾

Populate upload folder

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]".)

References

Releases

No releases published

Packages

 
 
 

Contributors