网站采集的时候,遇到类似乱码的复杂网址怎么办?

答案是:使用如下网站的url解码功能:

http://www.jsons.cn/urlencode

 

例如:解码前是:

https://api.wordpress.org/themes/info/1.2/?callback=jQuery36008566688358498167_1659578216846&action=query_themes&request%5Bper_page%5D=12&request%5Blocale%5D=en_US&request%5Bfields%5D%5Bdescription%5D=true&request%5Bfields%5D%5Bsections%5D=false&request%5Bfields%5D%5Btested%5D=true&request%5Bfields%5D%5Brequires%5D=true&request%5Bfields%5D%5Bdownloaded%5D=false&request%5Bfields%5D%5Bdownloadlink%5D=true&request%5Bfields%5D%5Blast_updated%5D=true&request%5Bfields%5D%5Bhomepage%5D=true&request%5Bfields%5D%5Btheme_url%5D=true&request%5Bfields%5D%5Bparent%5D=true&request%5Bfields%5D%5Btags%5D=true&request%5Bfields%5D%5Brating%5D=true&request%5Bfields%5D%5Bratings%5D=true&request%5Bfields%5D%5Bnum_ratings%5D=true&request%5Bfields%5D%5Bextended_author%5D=true&request%5Bfields%5D%5Bphoton_screenshots%5D=true&request%5Bfields%5D%5Bactive_installs%5D=true&request%5Bfields%5D%5Brequires_php%5D=true&request%5Bbrowse%5D=new&request%5Bpage%5D=5&_=1659578216848

解码后是:

https://api.wordpress.org/themes/info/1.2/?callback=jQuery36008566688358498167_1659578216846&action=query_themes&request[per_page]=12&request[locale]=en_US&request[fields][description]=true&request[fields][sections]=false&request[fields][tested]=true&request[fields][requires]=true&request[fields][downloaded]=false&request[fields][downloadlink]=true&request[fields][last_updated]=true&request[fields][homepage]=true&request[fields][theme_url]=true&request[fields][parent]=true&request[fields][tags]=true&request[fields][rating]=true&request[fields][ratings]=true&request[fields][num_ratings]=true&request[fields][extended_author]=true&request[fields][photon_screenshots]=true&request[fields][active_installs]=true&request[fields][requires_php]=true&request[browse]=new&request[page]=5&_=1659578216848