How to programmatically download image from website?

后端 未结 4 1623
面向向阳花
面向向阳花 2021-01-15 19:15

I need to download images from a website, and I have the login name and password, but if i just use URL to download the image, it will throw a exception: there is no value i

4条回答
  •  长情又很酷
    2021-01-15 19:56

    Use the HTTP Client libraries in order to write a spider for content access.

    I would suggest to record the HTTP traffic for login and content access and then rebuild the communication using the library, if you want to stick with Java.

    There are other libraries as well for other languages like Perl:LWP.

提交回复
热议问题