简体   繁体   English

如何将图像 url 从 html 获取到 java

[英]How to get images url from html to java

Hello i'm tring to get the url's from Bing images.您好,我正在尝试从Bing图像中获取 url。 ie this link return cat images how can i get only the .png url's?这个链接返回猫图像我怎么能只得到 .png 网址?

If bing supplies an API, then you should use that.如果 bing 提供 API,那么您应该使用它。

If it does not, then you get the .html file and parse it.如果没有,那么您将获得 .html 文件并对其进行解析。 Last time I did something like this, I used JSoup library.上次我做这样的事情时,我使用了JSoup库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM