Small auction tracker script
This commit is contained in:
parent
3c15c5a9f5
commit
64a678b53b
1 changed files with 12 additions and 0 deletions
12
Perso/auction_tracker.sh
Executable file
12
Perso/auction_tracker.sh
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [ $# -ne 1 ]; then
|
||||||
|
echo "Usage : ./auction_tracker.sh \"search terms\""
|
||||||
|
exit -1
|
||||||
|
fi
|
||||||
|
|
||||||
|
result=$(curl -s https://www.bidspotter.co.uk/en-gb/search-results?searchTerm="$1" | rg -e "<h1>.*</h1>" | rg -oe "([1-9]+[0-9]*) item\(s\)")
|
||||||
|
|
||||||
|
if [ "$result" ]; then
|
||||||
|
notify-send "Number of $1 listings : $result"
|
||||||
|
fi
|
Loading…
Add table
Reference in a new issue