For the problem “attributeerror: ‘list’ object has no attribute ‘replace’” I tried to fix it, but it doesn’t work and returns the result I want. Here is my program: kickoff = tree.xpath('//*[@id="page"]/div[1]/div/main/div/article/div/div[1]/section[2]/p[1]/b[1]/text()') kickoff = kickoff.replace("'", "") and