Skip to content

Instantly share code, notes, and snippets.

View Asgardrobotics's full-sized avatar

Asgard Robotics Asgardrobotics

View GitHub Profile
@Asgardrobotics
Asgardrobotics / gutenberg.py
Created January 14, 2024 18:11 — forked from siennathesane/gutenberg.py
Download all ePub books from Project Gutenberg. Only dependency is `alive-progress`, can be packaged with PyInstaller.
#!/usr/bin/env python3
from argparse import ArgumentParser
from os import listdir, stat
from os.path import sep as pathsep
from glob import glob
from shutil import SameFileError, copy, get_terminal_size
from typing import Union
from sys import exit, stdout
from alive_progress import alive_bar
from concurrent.futures import ProcessPoolExecutor, as_completed