You are viewing a single comment's thread. Return to all comments →
Python 3
import re import sys html = sys.stdin.read() pattern=r'href=\"([^-]*?)\"[^>]*>(<[^>]*>)?\s?([^>]*?)<' matches = re.findall(pattern, html) for match in matches: print(",".join((match[0], match[2])))
Seems like cookies are disabled on this browser, please enable them to open this website
Detect HTML links
You are viewing a single comment's thread. Return to all comments →
Python 3