More CLI support
This commit is contained in:
48
readme.md
Normal file
48
readme.md
Normal file
@ -0,0 +1,48 @@
|
||||
# Greasemonkey scripts
|
||||
|
||||
## Ebay Scraper (Storage)
|
||||
|
||||
A truly awful *very* LLM generated scraping tool used to help me find good deals on ebay for Storage. Again, this is LLM generated, basically vibe coded, so the code quality has virtually zero oversight. The generation of this was done using Gemini 2.5 Pro, see the [conversation](https://g.co/gemini/share/3d80b96e42e9).
|
||||
|
||||
```bash
|
||||
greasemonkey on master is 📦 v1.0.0 via ⬢ v23.11.1 at ☸ default took 7s 593ms
|
||||
➜ yarn --silent scrape --help
|
||||
Usage: ebay-scraper [options] [command] [url]
|
||||
|
||||
Scrapes eBay search results for SSD/HDD cost per TB.
|
||||
|
||||
Arguments:
|
||||
url The full eBay search URL to scrape.
|
||||
|
||||
Options:
|
||||
-V, --version output the version number
|
||||
--save <filename> Save the scraped HTML to a file.
|
||||
--load <filename> Load HTML from a file instead of fetching from eBay (disables network).
|
||||
--only_json Suppress all informational logs and output only the final JSON. (default: false)
|
||||
-h, --help display help for command
|
||||
|
||||
Commands:
|
||||
latest [options] Scrapes the latest listings using a predefined search. Use "ebay-scraper latest --help" to see specific options for this
|
||||
command.
|
||||
|
||||
Example calls:
|
||||
$ ebay-scraper latest --per_page 120 --minimum_cost 50
|
||||
$ ebay-scraper latest --help
|
||||
$ ebay-scraper "https://www.ebay.com/sch/i.html?_nkw=ssd"
|
||||
$ ebay-scraper --load saved_page.html --only_json | jq .
|
||||
$ ebay-scraper --save current_page.html "https://www.ebay.com/sch/i.html?_nkw=hdd"
|
||||
```
|
||||
|
||||
|
||||
```bash
|
||||
greasemonkey on master is 📦 v1.0.0 via ⬢ v23.11.1 at ☸ default
|
||||
➜ yarn --silent scrape latest --help
|
||||
Usage: ebay-scraper latest [options]
|
||||
|
||||
Scrapes the latest listings using a predefined search. Use "ebay-scraper latest --help" to see specific options for this command.
|
||||
|
||||
Options:
|
||||
--per_page <number> Items per page (60, 120, or 240) (default: "60")
|
||||
--minimum_cost <number> Minimum cost for listings (e.g., 50.00) (default: "0.00")
|
||||
-h, --help display help for command
|
||||
```
|
Reference in New Issue
Block a user