We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
# Enter your code here. Read input from STDIN. Print output to STDOUTimportreimportsys# txt1 = input() txt1=sys.stdin.read()matches1=re.findall(r'<ahref="\/questions\/(\d+)\/.+?\>+?([^<]+)(?:<\/a><\/h3>)',txt1,re.S)matches2=re.findall(r'asked.?<(?:[^>])+>([^<]+)<',txt1,re.S)fori,jinzip(matches1,matches2):print(f"{i[0]};{i[1]};{j}")
Cookie support is required to access HackerRank
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 →
My solution (Python):