我有这样的字符串蟒蛇:易子/解析
<img src="http://www.askgamblers.com/cache/97299a130feb2e59a08a08817daf2c0e6825991f_begado-casino-logo-review1.jpg" /><br/>
Begado is the newest online casino in our listings. As the newest
member of the Affactive group, Begado features NuWorks slots and games
for both US and international players.
<img src="http://feeds.feedburner.com/~r/AskgamblesCasinoNews/~4/SXhvCskjiYo" height="1" width="1"/>
我需要从第一img
标签获得src
我可以做到这一点无论如何容易吗?
你的意思是'src'? –
你的意思是'src'属性? – Vikas
任何时候我看到HTML,我的大脑立即去BeautifulSoup(http://www.crummy.com/software/BeautifulSoup/bs3/documentation.html)。检查这里(http://stackoverflow.com/questions/5815747/beautifulsoup-getting-href)的一个类似的问题。 – RocketDonkey