from pyquery import PyQuery as pq
res = pq(text)
seg_list = res('.section_list li')
seg=pq(seg)
seg_flight_num = seg('button[class="bul_r_info"]').text()
python解析页面元素 re pyquery xpath
最新推荐文章于 2024-03-14 12:44:56 发布
from pyquery import PyQuery as pq
res = pq(text)
seg_list = res('.section_list li')
seg=pq(seg)
seg_flight_num = seg('button[class="bul_r_info"]').text()