Android Question Download html files with complete internal links

Diego Roman

Member
Licensed User
Hi.
I need to download web pages and get all their complete internal links but with httpUtils2 I have the problem that although I download the html file well, this file is downloaded with truncated internal links. For example if the website has a link either internal or to another web that should be:

https://www.7zip.com/download/7zip.exe

the html file downloaded with httputils2 only has:

<a href="7zip.exe"> download </a>

and likewise it happens with links to other pages or its own website.
Please I need you to tell me how to download a web page and get all complete internal links. I need to get all the full links to download files related to the target website, I need to download images or another type of file.
Thanks in advance.
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
the html file downloaded with httputils2 only has:

<a href="7zip.exe"> download </a>
so the file is in the same folder on the web like the html.
YOU need to parse the html and find all references and download them.

GOOD LUCK! This is a hard (difficult) job you started.

There is no automatic way.
 
Last edited:
Upvote 0
Top