# -*- coding: utf-8 -*- # author: youxinyu # githb: yogayu from pyquery import PyQuery as pq f = open("step2/index.html", encoding='utf-8') html = f.read() f.close() doc = pq(html) tag = input() result = "" if tag == "meta": tag = doc('meta:nth-child(4)') attr = input() result = tag.attr(attr) else: tag = doc(tag) result = doc(tag).text() print (result, end='')