I am trying to scrape text from the highlights and full commentary section of the following link of the cricbuzz page. The text is just not coming up after trying for a few days. Sorry but I am a beginner and I don"t really know a lot about webscraping.
I have tried a few other sections and I was able to scrape text and tables from them, but this section has tabbed or clickable text data which I don't know how to scrape for this particular page. Following is my code so far for the highlights section:
code:
from urllib.request import urlopen as req
from bs4 import BeautifulSoup as soup
my_url = "https://www.cricbuzz.com/cricket-match-highlights/20567/ausw-vs-nzw-10th-match-group-b-icc-womens-world-t20-2018"
uclient = req(my_url)
page_html = uclient.read()
uclient.close()
page_soup = soup(page_html, "html.parser")
highlights = page_soup.find_all("div",{"class":"cb-col cb-col-67 cb nws-lft-col"})
for highlight in highlights:
text_highlight = highlights.text
print(text_highlight)