I am currently working through Lesson 2, attempting to download images from google.
I successfully dowloaded the urls I needed from google images using the following code:
urls = Array.from(document.querySelectorAll(’.rg_di .rg_meta’)).map(el=>JSON.parse(el.textContent).ou);
window.open(‘data:text/csv;charset=utf-8,’ + escape(urls.join(’\n’)));
The problem I am having is when I used ‘download_images(path/file, dest, max_pics=20, max_workers=0)’ the images appear to download to the path. However, when I try to view them there is often no image to be displayed.
This is the case, even when I have verified that there is an image using the url in a separate window. Why is the image not displaying in the path. Is there something I am doing wrong?