diff --git a/ada.py b/ada.py new file mode 100644 index 0000000..47cf2fd --- /dev/null +++ b/ada.py @@ -0,0 +1,15 @@ +import urllib.request +import html2text +from bs4 import BeautifulSoup + +f = urllib.request.urlopen('http://www.espncricinfo.com/indian-premier-league-2015/engine/match/829709.html') +soup = BeautifulSoup(f) + +a = soup.find_all("a" , class_="playerName") +length = len(a) +length = length - 1 +while(length): + b = a[length].get_text() + length = length - 1 + print(b) +