diff --git a/steam.fish b/steam.fish index a9eca4f..400e772 100644 --- a/steam.fish +++ b/steam.fish @@ -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