You are viewing a single comment's thread. Return to all comments →
import re import sys t=sys.stdin.read() a=re.findall(r"(?<=questions\/)\d+(?=\/)",t) b=re.findall(r"(?<=hyperlink\"\>).+(?=\<\/a\>)",t) c=re.findall(r"(?<=relativetime\"\>).+(?=\<)",t) l=list() for i in range(len(a)): l.append(a[i]) l.append(b[i]) l.append(c[i]) print(";".join(l)) l=[]
Seems like cookies are disabled on this browser, please enable them to open this website
Build a Stack Exchange Scraper
You are viewing a single comment's thread. Return to all comments →