``` ➜ time yarn --silent scrape --only_json --load foo4.html > /dev/null ________________________________________________________ Executed in 742.13 millis fish external usr time 605.32 millis 408.00 micros 604.91 millis sys time 229.09 millis 214.00 micros 228.88 millis ``` ``` ➜ time cargo run --release -- --only-json --load foo4.html > /dev/null Finished `release` profile [optimized] target(s) in 0.06s Running `target/release/ebay_scraper_rust --only-json --load foo4.html` ________________________________________________________ Executed in 122.54 millis fish external usr time 87.85 millis 597.00 micros 87.26 millis sys time 40.10 millis 152.00 micros 39.95 millis ```
51 lines
2.1 KiB
Markdown
51 lines
2.1 KiB
Markdown
# 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 [first](https://g.co/gemini/share/bf17780ad083) and [second](https://g.co/gemini/share/3d80b96e42e9) conversations used to generate this.
|
|
|
|

|
|
|
|
```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
|
|
```
|