I scraped one container which includes urls for example:
<a href="url">text</a>
I need all to be removed and only the text remain…
import urllib2, sys
from bs4 import BeautifulSoup
site = "http://mysite.com"
page = urllib2.urlopen(site)
soup = BeautifulSoup(page)
Is it possible?
1 Answer