更新时间:2023-02-23 16:58:30
直接正则好了,简单粗暴:
pattern = re.compile(r'<td>(\d+) / (\d+)</td>') m = pattern.findall(html_doc) for item in m: print(item[0]) print(item[1])
python - BeautifulSoup如何解析HTML的问题
如何使用BeautifulSoup在Python中解析Google搜索结果
< >更改为& lt;和& gt;同时在python中用beautifulsoup解析html
如何使用Python和Beautifulsoup从脚本标签获取JavaScript变量
如何在python BeautifulSoup或任何其他模块中获取javascript输出
如何解决python不支持中文路径的问题?
如何解决python中找不到文件的问题?