How can I get image from url in PHP or Jquery or in both?

前端 未结 5 1546
萌比男神i
萌比男神i 2021-01-29 14:24

Can anybody tell me, how can I get image for a particular site by its url only? As that is done on the google search page. I have searched web but I didn\'t get any satisfactory

5条回答
  •  一向
    一向 (楼主)
    2021-01-29 15:13

    I would suggest that you make an http request to the page then you make a regular expression on the response to get the src attribute vale of img tag.

提交回复
热议问题