CINXE.COM

小芯芯斜褖械薪懈械 # 1574

<!DOCTYPE HTML> <html> <head> <META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=utf-8"> <META HTTP-EQUIV="Case-control" CONTENT="NO-STORE"> <title> 小芯芯斜褖械薪懈械 # 1574 </title> <link href="https://anabar.ru/fou.css" rel=styleSheet type=text/css> </head> <body bgcolor="#c1c1c1" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <BASEFONT face="Verdana, Helvetica, Arial" size="0"> <font face="Verdana, Helvetica, Arial"> <table width="100%" height="60" cellspacing="0" cellpadding="2" border="0"> <tr bgcolor="#666666" nowrap><td valign="center"> <H1><FONT color=GRAY><TT>Some HAT...</TT></font></H1> </td></tr></table> <script>setCookieDelta( "manifold", "Python", 10000000 )</script> <table width="100%" cellspacing="0" cellpadding="4" border="0"> <tr bgcolor="#88ba88" nowrap><td nowrap> <span class="tfn">= <a href="https://anabar.ru" >袗薪邪斜邪褉.ru</a> =&gt; <a href="/forumz/anafo.py?manifold=Python" >Python-褎芯褉褍屑褘</a> =&gt; <a href="/forumz/anafo.py?forumid=4&page=1" >携蟹褘泻 锌褉芯谐褉邪屑屑懈褉芯胁邪薪懈褟 Python</a> =&gt; 褋芯芯斜褖械薪懈械 1574</span> </td></tr></table> <table width="100%" cellspacing="0" cellpadding="2" border="0"> <tr bgcolor="#c1c1c1"><td align="right" width="100%" class="tfn" nowrap>| <a href="/forumz/anafo.py?login" >袙褏芯写</a> | <a href="/forumz/anafo.py?delo=regNewUser" >袪械谐懈褋褌褉邪褑懈褟</a> |&nbsp; </td></tr> </table> <blockquote> <table cellspacing="0" cellpadding="0" border="0"> <tr><td> <table width="100%" cellspacing="0" cellpadding="5" border="0"> <tr ><td align="center" valign="top" width="80" rowspan="3"><span class="t">薪械褌 <br>褎芯褌芯</span></td><td><table cellspacing="0" cellpadding="0" border="0"> <tr><td bgcolor="#888888"> <table width="100%" cellspacing="0" cellpadding="1" border="0"> <tr bgcolor="#bbbbbb"><td align="right" valign="bottom" width="80" class="t">袗胁褌芯褉:&nbsp;</td><td class="bt" nowrap>&nbsp;<b>bollustrado</b></td></tr> <tr bgcolor="#cccccc"><td align="right" class="t">袛邪褌邪:&nbsp;</td><td class="t" nowrap>&nbsp;16-Mar-2012 15:04 (gmt = -3.0)</td></tr></table></td></tr></table></td></tr> <tr ><td align="justify"><center><h2>袩褉芯斜谢械屑邪 褋 lxml</h2></center> <span class="t"> <p class='first'>袩芯写褋泻邪卸懈褌械 锌谢蟹, 懈屑械械褌褋褟 褌邪泻芯泄 泻芯写:</p> <p><!-- code : python --> <pre width=52 style="background-color: #333; color: white; font-size: 120%; border: 3px solid #bba0a0; padding: 5px; -moz-border-radius: 20px;"><font face="monospace"> <font color="Gray">1 </font><font color="indianred">from</font> lxml.html <font color="indianred">import</font> parse <font color="Gray">2 </font>page = parse('<a href="http://habrahabr.ru/">http://habrahabr.ru/</a>').getroot() <font color="Gray">3 </font>hrefs = page.cssselect(&quot;a.topic&quot;) <font color="Gray">4 </font><font color="khaki">for</font> row <font color="khaki">in</font> hrefs: <font color="Gray">5 </font> <font color="palegreen">print</font>(row.get(&quot;href&quot;)) </font></pre> </p> <p>袙薪邪褔邪谢械 芯薪 褉邪斜芯褌邪谢, 薪芯 锌芯褌芯屑, 泻芯谐写邪 褟 薪械屑薪芯谐芯 锌芯褝褋锌械褉懈屑械薪褌懈褉芯胁邪谢, 芯薪 薪邪褔邪谢 胁褘写邪胁邪褌褜 锌褍褋褌褍褞 褋褌褉芯泻褍. 袩褉芯斜芯胁邪谢 褋薪芯褋懈褌褜 python, lxml, 薪械 锌芯屑芯谐邪械褌. 袩芯写褋泻邪卸懈褌械 锌谢蟹, 胁 褔械屑 屑芯卸械褌 斜褘褌褜 锌褉芯斜谢械屑邪?</p> </span></td></tr></table></td></tr></table> <br> <hr noshade class="gr" size="1" align="left" width="70%"> <span class="t">胁褋械 褋芯芯斜褖械薪懈褟 胁械褌胁懈:</span><br> <font face="Verdana, Helvetica, Arial"> <ul compact > <li class="t"><span style="background-color: RGBA(249, 201, 16, 0.3);"><font color="gray" size="-2">1574</font>&nbsp;<span class="t">袩褉芯斜谢械屑邪 褋 lxml</span>&nbsp;&nbsp;<b><font color="#222222">bollustrado</font></b>&nbsp;&nbsp;<font color="#808080" size="-2"><font color="#aaaaaa">|</font> 16-Mar-2012, 15:04 <font color="#aaaaaa">|</font></font> <font color="#405396" size="-2">锌褉芯褋屑芯褌褉芯胁:&nbsp;4804</font>&nbsp;&nbsp;&nbsp;<span class="t"><font color="#DD0000"> &#8656; &#9668;</font></span></span> </li> </ul> </font> <hr noshade class="gr" size="1" align="left" width="70%"> 袧械写芯褋褌邪褌芯褔薪芯 锌褉邪胁 写谢褟 薪邪锌懈褋邪薪懈褟 芯褌胁械褌邪 <hr noshade class="gr" size="1" align="left" width="70%"> </blockquote> <blockquote> <span class="t"><i>袙褉械屑褟 谐械薪械褉邪褑懈懈 褋褌褉邪薪懈褑褘 胁 褋械泻褍薪写邪褏: </i><b> 0.067</b></span> </blockquote> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10