xpath实战-苏州租房
url:
https://sz.5i5j.com/zufang?channel_name=baidu_sem_track&channel_link_type=web&hash_key=21oblcfX5ajZyIj5bQPY&callback_id=wHfPdxtr&sat_cf=2&_data_version=0.6.1&project=production&_channel_track_key=Ss2qoXEL&tid=s&link_version=1&channel_keyword_id=603922787868&channel_ad_id=74893168614&channel_account_id=580&channel_keyword=%E5%A5%BD%E7%9A%84%E7%A7%9F%E6%88%BF%E7%BD%91%E7%AB%99&channel_adgroup_id=8322107248&channel_campaign_id=307675413&bd_vid=11877343600235098308
1.根据calss='pList rentList'获取所有li标签对象:
2.逐层查找标签数据: