<li><strong><codeclass="python hljs"><spanclass="hljs-string">'<str>'</span></code> - Max age as a string: <codeclass="python hljs"><spanclass="hljs-string">'1 week, 3 days'</span></code>, <codeclass="python hljs"><spanclass="hljs-string">'2 months'</span></code>, …</strong></li>
</ul>
<div><h2id="scraping"><ahref="#scraping"name="scraping">#</a>Scraping</h2><div><h4id="scrapespythonsurlversionnumberandlogofromitswikipediapage">Scrapes Python's URL, version number and logo from its Wikipedia page:</h4><pre><codeclass="python language-python hljs"><spanclass="hljs-comment"># $ pip3 install requests beautifulsoup4</span>
link = table.find(<spanclass="hljs-string">'th'</span>, text=<spanclass="hljs-string">'Website'</span>).next_sibling.a[<spanclass="hljs-string">'href'</span>]
ver = table.find(<spanclass="hljs-string">'th'</span>, text=<spanclass="hljs-string">'Stable release'</span>).next_sibling.strings.__next__()