0

I am trying to use dryscrape to scrape a web page, but is possible to save a particular image from page? It is a normal <img> tag.

1
  • Improved the English of the page and made the question more specific. Mar 28, 2017 at 9:24

2 Answers 2

0

From looking at the documentation at https://dryscrape.readthedocs.io/, it does not look like dryscrape supports downloading files. You will have to use a module such as Requests to do this.

0

Yes you can download image with Dryscrape like that

img_url = sess.xpath("//img")[0]['href']
sess.visit(img_url)
sess.render("image.png")

Try this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.