【发布时间】:2013-03-14 02:30:04
【问题描述】:
arg = urllib2.urlopen(argv[1]).read()
soup = BeautifulSoup(arg)
a_tags = soup.find_all('a') #so this stores a list with all the <a href="" /a> tags
我只需要那些不链接到同一页面的那些(在 href 中没有符号 #)
任何人请......
【问题讨论】:
标签: python html python-2.7 tags beautifulsoup