Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 97778

Is there a way to disable the cookies that come with scraping an images link?

$
0
0

I am scraping some phone images off of Bell's Website and the cookies seem to come with. Im not downloading the image, im simply collecting the links to the image. Im looking to see if I can disable that or somehow get the images without the cookies [I suspect I may have to download the images].

This is my code:

     def ImageLinkFinder():
                phoneImagesList = []

                phoneImagesListRaw = driver.find_elements_by_css_selector('.device-img')

                for image in phoneImagesListRaw:
                    image = image.get_attribute("src")
                    phoneImagesList.append(image)

                return phoneImagesList

Viewing all articles
Browse latest Browse all 97778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>