Trouble Downloading a CSV Dataset from Google Images

Hi! I’m having trouble downloading a dataset from google images using these lines of 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')));

I’m trying to download all the links to images on a page as a csv file, but when I run this code, it just downloads a blank file of 0KB.

Please tell me what I’m doing wrong! Thank you so much!