Im trying to scrape a website, so I managed to extract all the text that I wanted, using this template:
nameList = bsObj.findAll("strong")
for text in nameList:
string = text.get_text()
if "Title" in string:
print(text.get_text())
And I get the texts in this fashion:
Title 1: textthatineed
Title 2: textthatineed
Title 3: textthatineed
Title 4: textthatineed
Title 5: textthatineed
Title 6: textthatineed
Title 7: textthatineed ....
Is there any way that I can cut the string in python using beautifulsoup or any other way, and get only the "textthatineed" without "title(number): ".