Key takeaways
- On macOS and Linux the command is usually python3, not python.
- A virtual environment avoids the “externally managed environment” error on newer distributions.
- Chrome must be installed from Google's package, not just Chromium, for the smoothest results.
- The PDF is written to the directory you run the command from.
- Part one: macOS
- Part two: Linux
- Which terminal to use
- Running on a headless server or over SSH
- Setting the tuning variables on macOS and Linux
- File and folder permissions
- A short shell alias
- Updating the project later
- Removing it cleanly
- Quick reference: macOS and Linux errors
- Checking that everything works
Scribd Downloader feels at home on macOS and Linux. Both systems ship with a proper terminal, Python is either already present or one command away, and the commands in the project README work almost unchanged. There are just a few platform habits — the python3 name, protected system Python on newer Linux releases, and macOS security prompts — that are worth knowing before you start.
As always, the tool is intended for documents you uploaded yourself, author-approved downloads and openly licensed material.
Part one: macOS
Check or install Python
Open Terminal (Applications › Utilities, or Spotlight with Cmd+Space). Type:
python3 --version
If you see Python 3.10 or newer, you are set. If macOS offers to install the Command Line Developer Tools, that will give you a working python3, but often an older one. Two reliable ways to get a current version:
- The python.org installer. Download the macOS universal installer, run it, and then run the “Install Certificates” command it places in the Python folder under Applications. That last step prevents SSL errors when pip downloads packages.
- Homebrew. If you use Homebrew,
brew install [email protected]installs a current version and keeps it updated.
Install Chrome
Download Google Chrome from Google's site and drag it into Applications. Open it once so macOS registers it, then you can close it. Scribd Downloader will launch its own invisible session whenever it needs one.
Gatekeeper and permissions
macOS may ask for confirmation the first time you open Chrome or the Python installer because they were downloaded from the internet. Confirm only if the developer shown is Google or the Python Software Foundation.
The project ZIP contains plain text files, so there is nothing to approve when you extract it. If you later make a helper shell script executable, macOS may block it on first double-click; right-click it and choose Open once to allow it.
Extract and set up a virtual environment
Double-click scribd-downloader-main.zip in Finder to extract it, then move the folder somewhere tidy such as ~/Documents. In Terminal:
cd ~/Documents/scribd-downloader-main
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
The virtual environment keeps the project's libraries separate from anything else on your Mac. Your prompt will show (.venv) while it is active.
Run it
python scribd-downloader.py
Inside an activated virtual environment, python points at the right interpreter, so the plain name works. Paste a link with Cmd+V at the prompt and press Enter. The PDF appears in the project folder when the run finishes.
Next time, you only need:
cd ~/Documents/scribd-downloader-main
source .venv/bin/activate
python scribd-downloader.py
Apple silicon note
Chrome, Python and the two libraries all run natively on Apple silicon. There is nothing extra to configure; Selenium Manager downloads the correct driver for your architecture automatically.
Part two: Linux
The steps below use Ubuntu and Debian commands, with Fedora equivalents alongside. Other distributions follow the same pattern.
Install Python tools and unzip
Most distributions include Python 3.10 or newer already. You will usually need the venv module and unzip:
sudo apt update
sudo apt install python3-venv python3-pip unzip
On Fedora:
sudo dnf install python3-pip unzip
Install Google Chrome
Download the .deb (Debian, Ubuntu, Mint) or .rpm (Fedora, openSUSE) package from Google's Chrome site and install it:
sudo apt install ./google-chrome-stable_current_amd64.deb
or
sudo dnf install ./google-chrome-stable_current_x86_64.rpm
Installing the package also adds Google's repository, so Chrome updates along with the rest of your system. Confirm with google-chrome --version.
Chromium from your distribution's repositories may work, but the project is tested against Google Chrome, and snap-packaged Chromium in particular can confuse driver detection. If you hit driver errors with Chromium, installing Chrome is the quickest fix.
Extract and create the environment
cd ~/Downloads
unzip scribd-downloader-main.zip -d ~/tools
cd ~/tools/scribd-downloader-main
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
Newer Ubuntu and Debian releases mark the system Python as “externally managed” and refuse plain pip install commands. The virtual environment sidesteps that cleanly, without needing any override flags.
Run it
.venv/bin/python scribd-downloader.py
Calling the interpreter inside .venv directly means you do not need to activate anything. Paste the link with Ctrl+Shift+V in most terminal emulators.
Which terminal to use
On macOS, the built-in Terminal app is all you need, though some people prefer iTerm2 for its split panes. The default shell on recent macOS versions is zsh, so configuration lines go in ~/.zshrc.
On Linux, every desktop ships a terminal emulator — GNOME Terminal, Konsole, xfce4-terminal and others behave the same for this purpose. Most use bash by default, with configuration in ~/.bashrc. If you use fish or another shell, the commands in this guide work unchanged except for the syntax of setting environment variables: in fish, write env SCRIBD_EXPORT_BATCH_SIZE=4 python3 scribd-downloader.py.
Whichever terminal you use, the important thing is the working directory. Check it with pwd before running the program, because that is where the finished PDF will appear. A quick ls should show scribd-downloader.py in the list if you are in the project folder.
Running on a headless server or over SSH
Because the program already runs Chrome in headless mode, it works on machines without a desktop, such as a home server you reach over SSH. A few practical points:
- Install Chrome's dependencies along with the package; the
.deband.rpmhandle this automatically. - Very small servers may run short of memory on long documents. Lower the batch size with
SCRIBD_EXPORT_BATCH_SIZE=4or even2. - The visible-browser debugging mode,
SCRIBD_HEADLESS=0, needs a display, so it will not work over plain SSH. - Copy the finished PDF back with
scpor your usual file-sync tool.
Setting the tuning variables on macOS and Linux
The environment variables from the README are set inline before the command:
SCRIBD_PAGE_LOAD_TIMEOUT=180 SCRIBD_EXPORT_BATCH_SIZE=4 python scribd-downloader.py
Set this way, they apply to that one run only. To make them permanent for your user, add export lines to ~/.zshrc on macOS or ~/.bashrc on most Linux systems.
File and folder permissions
The program writes its temporary page PDFs to your system's temporary directory and the final file to the current directory. Two permission problems come up occasionally:
Read-only project folder. If you extracted the project into a system location such as /opt with sudo, your normal user cannot write the PDF there. Either run from a folder you own, or change ownership with sudo chown -R $USER /opt/scribd-downloader-main.
Full temporary partition. Some systems mount /tmp as a small in-memory filesystem. For a very long document, point the temporary directory elsewhere for that run with TMPDIR=~/tmp-pdf python scribd-downloader.py after creating the folder.
A short shell alias
If you use the tool often, add an alias to your shell configuration:
alias scribdpdf='cd ~/tools/scribd-downloader-main && .venv/bin/python scribd-downloader.py'
After reloading the shell, typing scribdpdf drops you straight at the link prompt. Note that the PDF will then be saved inside the project folder, since the alias changes into it first.
Updating the project later
The project lives on GitHub and is updated from time to time. To update a ZIP-based install:
- Download a fresh ZIP and extract it next to the old folder.
- Copy your
.venvfolder across, or simply create a new one and reinstall the requirements. - Run
pip install --upgrade -r requirements.txtinside the environment to pick up newer library versions. - Delete the old folder once the new one works.
Keeping Selenium current matters most, because it is what matches the driver to your installed Chrome. Chrome updates itself on macOS, and through your package manager on Linux.
Removing it cleanly
Because everything lives in one folder, uninstalling is simple. Delete the project folder, including its .venv. Nothing is written to system locations, so there is no registry or configuration to clean up. If you added an alias to your shell configuration, remove that line too. Python and Chrome can stay; other programs may use them.
Quick reference: macOS and Linux errors
zsh: command not found: python— usepython3, or activate the virtual environment.externally-managed-environment— install inside a virtual environment rather than system-wide.SSL: CERTIFICATE_VERIFY_FAILEDon macOS — run the “Install Certificates” command from the Python folder in Applications.- Driver or session errors — upgrade Selenium and make sure Google Chrome, not snap Chromium, is installed.
Permission deniedwhen saving — run from a folder your user owns.
Checking that everything works
A successful run on either system ends with a line beginning “PDF saved successfully to:” and the full path, followed by “Browser closed.” If you see that, the setup is complete. If something fails earlier, the troubleshooting guide on this site walks through each common error message with its fix.
macOS and Linux users generally find this one of the easier Python tools to set up: no compilers, no system packages beyond Chrome, and a single command to run once the environment exists.



