Open evaddas opened 1 year ago
Hi @evaddas, the image from original
field from your example is downloadable. Please share an ID of a search with unexpected original
images.
Other images are also valid for me. How to reproduce this bug?
curl -s --compressed "https://serpapi.com/search?q=superhero+girl+cartoon+tv+show&tbm=isch&api_key=$SERPAPI_KEY" \
| jq -cr '.images_results[].original' \
| xargs -i -P10 wget -P /tmp/download_images_$(date +%s)/ {}
ls /tmp/download_images_1678195371/
# Omitted... Lists 100 images.
P.S. I've formatted the JSON snippet in your post.
When executing a Google Search Search Type as "isch - Google Images", the
original
Field in theimages_results
list does not always contain a direct link to the image.In some cases, the
original
field links to a page with the image embedded in an<img>
tag.This makes it impossible to download the image using the link.
See the example for a search with keywords "superhero girl cartoon tv show" via the Playground.