Why is BeautifulSoup not working correctly on the Heroku server?

Make the Telegram-bot that needs to parse a sporting event. There is here such request:
today = str(datetime.today()).split()[0]
url = 'https://www.championat.com/stat/football/#' + today
headers = {
 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'}
r = requests.get(url, headers=headers)
html = BeautifulSoup(r.text, 'html.parser')
[s.extract() for s in html('script')]

Locally and on the Heroku server, everything works fine. Next, I want to take multiple blocks using BeautifulSoup:
tournaments = html.findAll("div", {"class": "seo-results__tournament"})
matches = html.find("div", {"class": "seo results"}).findAll("ul")

Locally everything works fine, but how do I load a bot on Heroku, then .find always gives the result None. How can it be fixed?
April 3rd 20 at 18:56
0 answer

Find more questions by tags PythonBotsBeautiful SoupHerokuTelegram