at CERN. Then, it introduces the idea of linked information systems, and compares them with less flexible ways of finding information. https:/ /www.w3.org/History/1989/proposal.html “
urna nisi, quis volutpat erat hendrerit non. Nam vulputate dapibus. Praesent vel viverra nisi. Mauris aliquet nunc non turpis scelerisque, eget. • Suco de cevadiss deixa as pessoas mais interessantiss. • Todo mundo vê os porris que eu tomo • Ninguém vê os tombis que eu levo! Si u mundo tá muito paradis? Toma um mé que o mundo vai girarzis! Viva Forevis aptent taciti sociosqu ad litora torquent Não sou faixa preta cumpadi, sou preto inteiris, inteiris. Mais vale um bebadis conhecidiss, que um alcoolatra anonimiss.
urna nisi, quis volutpat erat hendrerit non. Nam vulputate dapibus. Praesent vel viverra nisi. Mauris aliquet nunc non turpis scelerisque, eget. • Suco de cevadiss deixa as pessoas mais interessantiss. • Todo mundo vê os porris que eu tomo • Ninguém vê os tombis que eu levo! Si u mundo tá muito paradis? Toma um mé que o mundo vai girarzis! Viva Forevis aptent taciti sociosqu ad litora torquent Não sou faixa preta cumpadi, sou preto inteiris, inteiris. Mais vale um bebadis conhecidiss, que um alcoolatra anonimiss. TÍTULO
urna nisi, quis volutpat erat hendrerit non. Nam vulputate dapibus. Praesent vel viverra nisi. Mauris aliquet nunc non turpis scelerisque, eget. • Suco de cevadiss deixa as pessoas mais interessantiss. • Todo mundo vê os porris que eu tomo • Ninguém vê os tombis que eu levo! Si u mundo tá muito paradis? Toma um mé que o mundo vai girarzis! Viva Forevis aptent taciti sociosqu ad litora torquent Não sou faixa preta cumpadi, sou preto inteiris, inteiris. Mais vale um bebadis conhecidiss, que um alcoolatra anonimiss. SUBLINHADO
urna nisi, quis volutpat erat hendrerit non. Nam vulputate dapibus. Praesent vel viverra nisi. Mauris aliquet nunc non turpis scelerisque, eget. • Suco de cevadiss deixa as pessoas mais interessantiss. • Todo mundo vê os porris que eu tomo • Ninguém vê os tombis que eu levo! Si u mundo tá muito paradis? Toma um mé que o mundo vai girarzis! Viva Forevis aptent taciti sociosqu ad litora torquent Não sou faixa preta cumpadi, sou preto inteiris, inteiris. Mais vale um bebadis conhecidiss, que um alcoolatra anonimiss. LISTA
urna nisi, quis volutpat erat hendrerit non. Nam vulputate dapibus. Praesent vel viverra nisi. Mauris aliquet nunc non turpis scelerisque, eget. • Suco de cevadiss deixa as pessoas mais interessantiss. • Todo mundo vê os porris que eu tomo • Ninguém vê os tombis que eu levo! Si u mundo tá muito paradis? Toma um mé que o mundo vai girarzis! Viva Forevis aptent taciti sociosqu ad litora torquent Não sou faixa preta cumpadi, sou preto inteiris, inteiris. Mais vale um bebadis conhecidiss, que um alcoolatra anonimiss. NEGRITO
4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from lxml import html >>> import requests >>> page = requests.get("http://localhost:8888/index.html") >>> tree = html.fromstring(page.content) >>> print(tree) <Element html at 0x10eaf7d68>
4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from lxml import html >>> import requests >>> page = requests.get("http://localhost:8888/index.html") >>> tree = html.fromstring(page.content) >>> print(tree) <Element html at 0x10eaf7d68> >>> print(tree.tag) html
4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from lxml import html >>> import requests >>> page = requests.get("http://localhost:8888/index.html") >>> tree = html.fromstring(page.content) >>> print(tree) <Element html at 0x10eaf7d68> >>> print(tree.tag) html >>> len(tree) 2 >>
4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from lxml import html >>> import requests >>> page = requests.get("http://localhost:8888/index.html") >>> tree = html.fromstring(page.content) >>> print(tree) <Element html at 0x10eaf7d68> >>> print(tree.tag) html >>> len(tree) 2 >>> tree[0] <Element head at 0x10eaf7ef8> >>> tree[1] <Element body at 0x10eaf7db8> >>> for node in tree: ... print(node) ... <Element head at 0x10eaf7ef8> <Element body at 0x10eaf7db8>
4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.76)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from lxml import html >>> import requests >>> page = requests.get("http://localhost:8888/index.html") >>> tree = html.fromstring(page.content) >>> print(tree) <Element html at 0x10eaf7d68> >>> print(tree.tag) html >>> len(tree) 2 >>> tree[0] <Element head at 0x10eaf7ef8> >>> tree[1] <Element body at 0x10eaf7db8> >>> for node in tree: ... print(node) ... <Element head at 0x10eaf7ef8> <Element body at 0x10eaf7db8> html head body p div span ul li li li title img
at 0x10eaf7db8> >>> body = tree[1] >>> len(body) 2 >>> body[0] <Element p at 0x10eaf7d68> >>> body[1] <Element div at 0x10eaf7ef8> >>> for node in body: ... print(node) ... <Element p at 0x10eaf7d68> <Element div at 0x10eaf7ef8> html head body p div span ul li li li title img
p at 0x10eaf7d68> >>> body[1] <Element div at 0x10eaf7ef8> >>> for node in body: ... print(node) ... <Element p at 0x10eaf7d68> <Element div at 0x10eaf7ef8> >>> for node in body: ... print(node) ... for subnode in node: ... print(' ',subnode) ... <Element p at 0x10eaf7d68> <Element div at 0x10eaf7ef8> <Element span at 0x10eaf7d68> <Element ul at 0x10eaf7d18> <Element img at 0x10eaf7ea8> html head body p div span ul li li li title img
at 0x10eaf7d68>] >>> tree.xpath('head/title')[0] <Element title at 0x10eaf7d68> >>> tree.xpath('head') [<Element head at 0x10eaf7d18>] >>> tree.xpath('head/title')[0].text 'Minha Pagina' >>> tree.xpath('head/title') [<Element title at 0x10eaf7d68>] >>> tree.xpath('body/div/ul') [<Element ul at 0x10eaf7d68>] >>> tree.xpath('body/*/ul') [<Element ul at 0x10eaf7d68>] html head body p div span ul li li li title img >>> tree.xpath('//ul') [<Element ul at 0x10eaf7d68>]
<Element li at 0x10eb120e8>] >>> tree.xpath('body/div/ul/li')[1] <Element li at 0x10eb120e8> >>> tree.xpath('//li') [<Element li at 0x10eaf7ea8>, <Element li at 0x10eaf7f98>, <Element li at 0x10eb120e8>] >>> tree.xpath('body/div/ul/li')[1].text 'Aleluia' >>> tree.xpath('//li')[1].text 'Aleluia' >>> tree.xpath('*/li') [] html head body p div span ul li li li title img
tree.xpath("//@src='https://cdn4.iconfinder.com/data/icons/reaction/32/happy-128.png'") True >>> tree.xpath('//img')[0].get('src') 'https://cdn4.iconfinder.com/data/icons/reaction/32/happy-128.png' >>> tree.xpath("//img[@src]") [<Element img at 0x10eb12098>] html header body p div span ul li li li title img >>> tree.xpath('//@src') ['https://cdn4.iconfinder.com/data/icons/reaction/32/happy-128.png'] http://www.w3schools.com/xsl/xpath_syntax.asp