Make variables local
This commit is contained in:
@ -7,16 +7,16 @@
|
||||
|
||||
|
||||
# Query free games from steam
|
||||
set offers (
|
||||
set -l offers (
|
||||
curl -s 'https://store.steampowered.com/search?maxprice=free&specials=1' |
|
||||
htmlq a.search_result_row
|
||||
)
|
||||
|
||||
|
||||
# Scrape the page
|
||||
set posters (echo $offers | htmlq -a src img)
|
||||
set links (echo $offers | htmlq -a href a)
|
||||
set offers (echo $offers | htmlq -t span.title)
|
||||
set -l posters (echo $offers | htmlq -a src img)
|
||||
set -l links (echo $offers | htmlq -a href a)
|
||||
set -l offers (echo $offers | htmlq -t span.title)
|
||||
|
||||
|
||||
# Serialize data into JSON
|
||||
|
||||
Reference in New Issue
Block a user