import requests from txdpy import webptablesl res=requests.get('http://zsb.tiangong.edu.cn/2022/0907/c196a79135/page.htm') res.encoding = res.apparent_encoding res=res.text xpath='//table' trs=(webptablesl(res,xpath)) for tr in trs: print(tr) codingwebcodeappurl