Command-line tool to scrape quotes from Goodreads
Project description
Goodreads Quotes Scraper
Requirements
Installation
pip install greads
Usage
greads --help
usage: greads [-h] -a AUTHOR [-l LANGUAGE] [-n NUM_PAGES] [-o OUTPUT_FILE]
[--enable-multiprocessing]
optional arguments:
-h, --help show this help message and exit
-a AUTHOR, --author AUTHOR
Full name of the author you want to search
-l LANGUAGE, --language LANGUAGE
Two letters string representing the language you want
to parse the results in (default: en)
-n NUM_PAGES, --num-pages NUM_PAGES
Number of pages to iterate through (if empty, will
iterate through all pages)
-o OUTPUT_FILE, --output-file OUTPUT_FILE
Name of the output file (default: quotes.json)
--enable-multiprocessing
Enable multiprocessing
Example
greads --author "Oscar Wilde" --num-pages 100
# 100%|█████████████████████████████████████████| 100/100 [01:06<00:00, 1.49it/s]
# Cleaning the quotes text...
# Saved results to quotes.json...
greads --author "Oscar Wilde" --num-pages 10 --language 'es'
# 100%|███████████████████████████████████████████| 10/10 [00:06<00:00, 1.60it/s]
# Cleaning the quotes text...
# Saved results to quotes.json...
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
greads-0.7.tar.gz
(5.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file greads-0.7.tar.gz.
File metadata
- Download URL: greads-0.7.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2de830295356634d62417bdacb5de93f4820f28617fe8729d3eec46c7d0d9787
|
|
| MD5 |
6b82f6935bb4f68d8fc9faf3027b102a
|
|
| BLAKE2b-256 |
5b79207b2990501d4fce4c570720686d3d0d6a6410485463b2ae2445c6fd6b52
|
File details
Details for the file greads-0.7-py2.py3-none-any.whl.
File metadata
- Download URL: greads-0.7-py2.py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c78a0c6d78e97fb636d6db3aea97f59bd847fdb120ef7cd9e9bc1a04949bb7c4
|
|
| MD5 |
467d10d10a5bb53c9ec5f5234f7f646a
|
|
| BLAKE2b-256 |
6879e3e01c18dccc58d1a9cb033afad9814c7815b43182c717f07f98d8d28f7b
|