How to use rust get a web page content

I want to use rust code to get the web page content ,like the wget command in linux, I donot know to wich library to use, and I also want to parse the html dom use the selector or xpath , anyone can help me ,thanks.

You should use hyper (docs) for fetching a page. html5ever is an HTML parser but IIRC it doesn't have a simple DOM representation.

kuchiki is probably the DOM inspection library you want (I don't know if it's finished yet)