LEVEL 2
import requests import re url = 'http://sis001.com/forum/forum-25-1.html' response = requests.get(url) response.encoding = 'GBK' html = response.text a = re.findall(r'<tbody id="normalthread.*?</tbody>', html, re.S) for i in a: b = re.findall(r'<span id="thread.*?"><a href="(.*?)">(.*?)</a></span>', i)[0] print(b)
查看详细资料
TOP
LEVEL 1
LEVEL 4