I am trying to remove a character from my string by doing the following
kickoff = tree.xpath('//*[@id="page"]/div[1]/div/main/div/article/div/div[1]/section[2]/p[1]/b[1]/text()')
kickoff = kickoff.replace("'", "")
This gives me an AttributeError error: the list object does not have a replace attribute
Based on php background, I'm not sure what is the right way to do this?
source
share