Skip to content
C

Extract All Links

Easypython

Given a set of URLs, build a small HTML page containing one <a> tag per URL, then extract and print every href value.

Approach: construct the HTML with one anchor tag per URL, parse it, find every <a> tag, and read each one's href attribute.

Input: First line: the number of links n. Next n lines: one URL each.

Output: One line per link: its URL.

Input (stdin)

Output

Run your code to see output here...