Show curl errors
This commit is contained in:
parent
5419b401b4
commit
fee0c9dafa
|
@ -15,7 +15,7 @@ jobs:
|
|||
run: |
|
||||
UA='User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0'
|
||||
URL='https://tes.collegesource.com/publicview/TES_publicview01.aspx?rid=f080a477-bff8-46df-a5b2-25e9affdd4ed&aid=27b576bb-cd07-4e57-84d0-37475fde70ce'
|
||||
HTML="$(curl -s -H "$UA" "$URL")"
|
||||
HTML="$(curl -s -S -H "$UA" "$URL")"
|
||||
echo "$HTML" | grep -A2 "<title>"
|
||||
NUM_PAGES="$(echo "$HTML" | grep -e 'lblInstWithEQPaginationInfo' | grep -Poie '(?<=of )[0-9]*')"
|
||||
echo "Found $NUM_PAGES pages"
|
||||
|
|
Loading…
Reference in New Issue