You are viewing a single comment's thread. Return to all comments →
import re regex = r'href=\"\/questions\/(\d+).*?class=\"question-hyperlink\">([^<]+)<.*?class="relativetime">([^<]+)<' singleline = "" try: while True: line = input() singleline += line except EOFError: ... matches = re.findall(regex, singleline) for ans in matches: print(';'.join(ans))
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 →