How to download more images using javascript commands when creating my own dataset?

In lesson 2 of the FastAI Deep Learning course I used a script to extract urls of images of teddy bears. When I ran the script I was able to get about 50 or 60 urls. This was okay for my purposes but I wanted a little more images in order to make a better model. How can I modify the script that I ran to produce more urls? Here is the script:

urls=Array.from(document.querySelectorAll(’.rg_i’)).map(el=> el.hasAttribute(‘data-src’)?el.getAttribute(‘data-src’):el.getAttribute(‘data-iurl’));

&‘data:text/csv;charset=utf-8,’ + escape(urls.join(’\n’)));