how can I scrape text through span tags using beautful soup? scrape faculty members informations
from bs4 import BeautifulSoup
import requests
r = requests.get("http://www.uoj.ac.ae/ContentBan.aspx?m=15&p=4&sm=4")
soup = BeautifulSoup(r.content, 'html5lib')
for tag in soup.find_all('table'):
if tag.has_attr("class"):
if tag['class'] == 'MsoTableGrid':
for tag1 in soup.findAll('span'):
print tag1.text
I want to print the text inside span tags, but the output i get is:
Process finished with exit code 0