在网页中我有以下几个要素:如何检索onclick文本?
<a href="#" onClick="window.open('/link.php?webpage=45980a6f91ac0c850745e0500d612172" class="pagelink" >Page 1</a>
<a href="#" onClick="window.open('/link.php?webpage=45980a6f91ac0c850745e05676787895" class="pagelink" >Page 2</a>
<a href="#" onClick="window.open('/link.php?webpage=45980a6f91ac0c85786787666456fgg3" class="pagelink" >Page 3</a>
<a href="#" onClick="window.open('/link.php?webpage=45980a6f91ac0c850734234324756767" class="pagelink" >Page 4</a>
...
。
,我需要检索的类“pagelink”所有A标签的window.open功能的文字:
/link.php?webpage=45980a6f91ac0c850745e0500d612172
/link.php?webpage=45980a6f91ac0c850745e05676787895
/link.php?webpage=45980a6f91ac0c85786787666456fgg3
/link.php?webpage=45980a6f91ac0c850734234324756767
我怎样才能做到这一点与Python?
可能重复的[如何从网页检索这些元素?](http://stackoverflow.com/questions/4328167/how-to-retrieve-these-elements-from-a-webpage) – user225312 2010-12-01 19:38:27