Home > Back-end >  Crawl on zhihu out output url garbled problems plunged in the url
Crawl on zhihu out output url garbled problems plunged in the url

Time:04-18

String htmlurl="https://tophub.today/n/mproPpoq6O";

//links to the destination address
The Connection connect=Jsoup. Connect (htmlurl);
The Document Document=connect
. The header (" the user-agent ", "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36 ")
IgnoreContentType (true). The get ();
Elements url=document. Select (" table. The table "). The eq (0). The select (. "al"). The select (" a ");
Int j=0;
For (Element e: url) {
J +=1;
System. The out. Println (j + "" + e.a TTR event (" href"));
}
Crawl on zhihu out plunged the url of the
In
Output url garbled question
1/l? E=f4b9AaJundSScAgamI % 2 brioqfpynpujsglvagznjquzdrykqejih55y9etp59sfhzuloj1aufwsim4wjdyptrmdfgc0xyfhngautzd3lp8a7rqesy20auzicocy3yetzoora % 2 f9whziwszdsuk
2/l? E=36115 conkrinqho0vneuisrpfk7vflvvultrl35semri2ogbxtoarz56fagti8l5n0dyby % 2 bhehdmbd0gvpoo7mxcjtc % 2 f8qiyiwnmiqfyzbqxam1vvjzot8dnwnqzaqlqm6rw2w6fhutoqaw
3/l? E=2 b964iearh1hydfbeewnnd4ewhajcndt1qee9zmtch % 2 bfezknnzpjsnjlgf5kuzxmt08jcd8aydnvly1n0f7eleumatzqixinn2et7sqwdneg2uozwgt1jqigwartd % 2 f74n6x % 2 bf29%2 braevimpn
  • Related