Add Scribd PDF Downloader under Scribd/
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
commit
5d2933ea95
28 files changed
+2159
No files matched your search
@@ -0,0 +1,171 @@
|
||||
# Installation Guide
|
||||
|
||||
Step-by-step setup for **Scribd PDF Downloader** on Windows, macOS, and Linux.
|
||||
|
||||
---
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- **Python 3.10 or newer** — [python.org/downloads](https://www.python.org/downloads/)
|
||||
- On Windows, check **“Add python.exe to PATH”** during install.
|
||||
- **Internet** — to install packages and download Chromium (~150 MB).
|
||||
- **Disk space** — ~1 GB for venv + browsers; more if you build a standalone app.
|
||||
|
||||
Check Python:
|
||||
|
||||
```powershell
|
||||
python --version
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Windows installation
|
||||
|
||||
### 1. Open the project folder
|
||||
|
||||
```powershell
|
||||
cd "C:\Users\Michael Sloan\Desktop\git\Scribe PDF Downloader"
|
||||
```
|
||||
|
||||
(Use your actual path if different.)
|
||||
|
||||
### 2. Create a virtual environment
|
||||
|
||||
```powershell
|
||||
python -m venv .venv
|
||||
```
|
||||
|
||||
### 3. Activate the virtual environment
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\Activate.ps1
|
||||
```
|
||||
|
||||
If you see an execution policy error:
|
||||
|
||||
```powershell
|
||||
Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
|
||||
```
|
||||
|
||||
Then activate again.
|
||||
|
||||
### 4. Install Python packages
|
||||
|
||||
```powershell
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
### 5. Install Chromium for Playwright
|
||||
|
||||
```powershell
|
||||
playwright install chromium
|
||||
```
|
||||
|
||||
### 6. Run the app
|
||||
|
||||
**GUI (recommended):**
|
||||
|
||||
```powershell
|
||||
# With venv active:
|
||||
python gui.py
|
||||
```
|
||||
|
||||
Or double-click **`Start Scribd Downloader.bat`** (uses `.venv` automatically).
|
||||
|
||||
**Command line:**
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe main.py download "https://www.scribd.com/document/123456789/Your-Document"
|
||||
```
|
||||
|
||||
> **Important:** Always use `.\.venv\Scripts\python.exe` if you are not sure the venv is active. Using plain `python` often hits the system install and causes `ModuleNotFoundError: No module named 'rich'`.
|
||||
|
||||
---
|
||||
|
||||
## macOS installation
|
||||
|
||||
```bash
|
||||
cd ~/path/to/Scribe\ PDF\ Downloader
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
playwright install chromium
|
||||
python gui.py
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Linux installation
|
||||
|
||||
```bash
|
||||
cd /path/to/Scribe\ PDF\ Downloader
|
||||
python3 -m venv .venv
|
||||
source .venv/bin/activate
|
||||
pip install -r requirements.txt
|
||||
playwright install chromium
|
||||
python gui.py
|
||||
```
|
||||
|
||||
You may need system libraries for Chromium:
|
||||
|
||||
```bash
|
||||
playwright install-deps chromium
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Optional: build tools
|
||||
|
||||
Only needed to create a standalone `.exe` or `.app`:
|
||||
|
||||
```powershell
|
||||
pip install -r requirements-build.txt
|
||||
```
|
||||
|
||||
See [BUILD.md](BUILD.md).
|
||||
|
||||
---
|
||||
|
||||
## Verify installation
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe -c "import playwright, rich, PIL; print('OK')"
|
||||
.\.venv\Scripts\python.exe main.py --help
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Login (books & private documents)
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe main.py login
|
||||
```
|
||||
|
||||
A browser window opens. Sign in to Scribd, then wait until your account appears. Cookies are saved to `session.json` in the project folder.
|
||||
|
||||
Check status:
|
||||
|
||||
```powershell
|
||||
.\.venv\Scripts\python.exe main.py status
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Uninstall
|
||||
|
||||
1. Delete the project folder (includes `.venv` and browsers).
|
||||
2. No system-wide install is required if you only used a venv.
|
||||
|
||||
---
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
| Error | Solution |
|
||||
|-------|----------|
|
||||
| `python` not found | Reinstall Python with PATH enabled, or use `py -3` on Windows |
|
||||
| `ModuleNotFoundError` | Use `.\.venv\Scripts\python.exe`, not global Python |
|
||||
| Playwright browser missing | Run `playwright install chromium` inside the venv |
|
||||
| GUI does not open | Run `python gui.py` from a terminal to see errors |
|
||||
| Permission denied on `.venv` | Run terminal as normal user, not from a protected folder |
|
||||
|
||||
More detail: [AIDNA.md](AIDNA.md) and [README.md](README.md).
|
||||
Reference in new issue
Block a user