title: AttributeError: 'NoneType' object has no attribute 'text' | Beautifulsoup
body: <pre><code>import requests
  from bs4 import BeautifulSoup
  from requests_html import HTMLSession
  
  #Request URL
  page = requests.get('https://www.fifa.com/worldcup/players.html')
  
  #Fetch webpage
  soup = BeautifulSoup(page.content,"html.parser")  
  
  player_age = soup.find("div",{"class":"fi-p__profile number__number"}).text.replace("\n","").strip()
  print(player_age)
  </code></pre>
  
  <p>Error: </p>
  
  <blockquote>
    <p>AttributeError: 'NoneType' object has no attribute 'text'</p>
  </blockquote>