from bs4 import BeautifulSoup
import urllib

html = urllib.request.urlopen("http://www.pythonscraping.com/pages/warandpeace.html")
bsObj = BeautifulSoup(html,features="lxml")

nameList = bsObj.findAll("span", {"class":"green"})
for name in nameList:
    print(name.get_text())
bcd839685fe1ad2d32be0ec6ea7a119f8577e21d
<mask token>

<mask token>
for name in nameList:
    print(name.get_text())

<mask token>
html = urllib.request.urlopen(
    'http://www.pythonscraping.com/pages/warandpeace.html')
bsObj = BeautifulSoup(html, features='lxml')
nameList = bsObj.findAll('span', {'class': 'green'})
for name in nameList:
    print(name.get_text())

from bs4 import BeautifulSoup
import urllib
html = urllib.request.urlopen(
    'http://www.pythonscraping.com/pages/warandpeace.html')
bsObj = BeautifulSoup(html, features='lxml')
nameList = bsObj.findAll('span', {'class': 'green'})
for name in nameList:
    print(name.get_text())

from bs4 import BeautifulSoup
import urllib

html = urllib.request.urlopen("http://www.pythonscraping.com/pages/warandpeace.html")
bsObj = BeautifulSoup(html,features="lxml")

nameList = bsObj.findAll("span", {"class":"green"})
for name in nameList:
    print(name.get_text())