Redsox haberlerinden başlığını ve açıklamasını almayı denemek için kullanıyorum aşağıdaki kod var. Çalışıyorum ama küçük bir detay için. etiketleri gösteriliyor. Onları nasıl yok edebilirim?Python ve BeautifulSoup URL ayrıştırması
print "Title: %s " % (title.text)
print "Summary: %s " % (desc.text)
Sen BeautifulSoup ile daha iyi yapabilirsiniz, ancak bu çalışması için hızlı bir yoldur: Bu
Title: <title>Shaw or Panda? Hot corner duel heats up</title>
Summary: <description>With two weeks until Opening Day, the hottest topic in Red Sox camp is the competition at the hot corner between incumbent Pablo Sandoval and the emerging Travis Shaw.</description>
>>>
http://stackoverflow.com/questions/16206380/python-beautifulsoup-how-to-remove-all-tags-from-an-element –
Dokümanları okumak isteyebilirsiniz http://www.crummy.com/software/BeautifulSoup/bs4/doc/# get-text –