I want to get the source link of the first image that appears in the Bing image search results for a specified search term.
I am currently using this command, but get no output:
curl -s "https://www.bing.com/images/search?q=cat&form=HDRSC2&first=1&tsc=ImageBasicHover" | grep -o '<a class="thumb" target="_blank" href="[^"]*'
Running only curl -s "https://www.bing.com/images/search?q=cat&form=HDRSC2&first=1&tsc=ImageBasicHover"
displays HTML code of the page.
What am I doing wrong?