import sys import html5lib # html5lib is a Python package that implements the HTML5 parsing algorithm import xml.etree.ElementTree as ET import requests import urllib.request from urllib.request import urlopen from urllib.error import HTTPError from urllib.parse import urljoin, urlparse, urlunparse import os, sys from urllib.request import urlopen from bs4 import BeautifulSoup from bs4 import BeautifulSoup, SoupStrainer import time print('''
''') for line in sys.stdin: line = line.rstrip() href, code, msg = line.split(" ", 2) # print(href, code, msg) if code == '200': print('

{}

'.format(href, href)) else: print('

{} RIP LINK

'.format(href, href)) print(''' ''')