I'm trying to read a file with python and get each line as a parameter for a function. I've got a AttributeError: 'NoneType' object has no attribute 'text' error and I don't understand how to fix it.
from bs4 import BeautifulSoup
from requests_html import HTMLSession
session = HTMLSession()
response = session.get('https://pool.rplant.xyz/#')
soup = BeautifulSoup(response.content, 'html.parser')
nah = soup.find('span', {'id': 'statsPoolMc'}).text
print(nah)