4

I want to download images "through" the same session that my PhantomJS instance has created. This means I can't just get the src attribute of the image and download it using urllib or requests or equivalent.

How do I do one of

(1) open a new tab in the PhantomJS session and browse to the image, saving the file to disk? (2) Right Click on the image that was loaded in the original page request and save to disk? (3) Some other method that "piggy-backs" off of the currently running PhantomJS session for downloading an image?

Trindaz
  • 17,029
  • 21
  • 82
  • 111
  • Dup http://stackoverflow.com/questions/6813704/how-to-download-an-image-using-selenium-any-version ? – Amey Mar 26 '14 at 20:28
  • 1
    @Amey I would say not a duplicate because mine is uniquely about PhantomJS, so the related drivers may have different APIs. – Trindaz Mar 26 '14 at 20:54

0 Answers0