这是我下载的 HTML 文件的链接
https://drive.google.com/open?id=1z7A9U0qZSVtLMQDbsVtPyZVz9Zm73-ZQ
从这个文件最后你可以看到一些这样的数据
<div data-react-class="packs/v9/phone/containers/AreaCodeListing" data-react-props="{"areaCodes":[{"phone_prefix":"(202) 200","details":["Sprint"],"location":"Washington, DC","href":"/202-200"},{"phone_prefix":"(202) 201","details":["Verizon"],"location":"Washington, DC","href":"/202-201"},{"phone_prefix":"(202) 202","details":["General Service Carrier"],"location":"Washington, DC","href":"/202-202"},{"phone_prefix":"(202) 203","details":["T-Mobile"],"location":"Washington, DC","href":"/202-203"},{"phone_prefix":"(202) 204","details":["XO Communications"],"location":"Washington, DC","href":"/202-204"}我如何从这个页面提取href值?我认为JSON可以完成这项工作,但我被困在如何达到那个点以获得那个 json
或者有没有其他最好的方法从我下载的这个 HTML 页面中获取href值?
交互式爱情
泛舟湖上清波郎朗
狐的传说
30秒到达战场
随时随地看视频慕课网APP
相关分类