<body> <span id="line2"></span>NUM=2039 <span id="line3"></span>NAME0=Record_Continuously/2018-04-24/71/MP_2018-04-24_10-27-02_60.mov <span id="line4"></span>SIZE0=15747369 <span id="line5"></span>NAME1=Record_Continuously/2018-04-24/71/MP_2018-04-24_10-26-01_60.mov <span id="line6"></span>SIZE1=15725278
from lxml import html import requests page = requests.get('http://192.168.1.99/form/getStorageFileList') tree = html.fromstring(page.content) clips = tree.xpath('//span[@="NAME"]/text()') print(clips)
<span>
clips = tree.xpath('//span[@id="line2"]/following-sibling::*[1]/text()')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)