Build a Stack Exchange Scraper

  • + 0 comments

    I feel like we're doing someone's job lol

    import sys, re
    
    inp = sys.stdin.read()
    i = re.findall(r'id="question-summary-(\d+)"', inp)
    q = re.findall(r'class="question-hyperlink">([^<]+)', inp)
    t = re.findall(r'class="relativetime">([^<]+)', inp)
    [print(*x, sep=';') for x in zip(i, q, t)]