我有这个链接:
http://www.downloadcrew.com/article/14769-free_studio
我有这个代码:
import urllib
from bs4 import BeautifulSoup
import time
url = "http://www.downloadcrew.com/article/14769-free_studio"
pageUrl = urllib.urlopen(url)
time.sleep(2)
soup = BeautifulSoup(pageUrl)
for b in soup.select("h1#articleTitle"):
a = b.contents[0].strip()
print "app_name: "+a
输出是:
app_name: Free Studio 2013 v6.1.12.925
但我需要输出是这样的:
app_name: Free Studio 2013
version: v6.1.12.925
我怎么可能做到这一点?