title: Web scraping after a filter has been applied to data
body: <p>I'm trying to take data of the premier league website : <a href="https://www.premierleague.com/clubs/4/club/stats?se=15" rel="nofollow noreferrer">https://www.premierleague.com/clubs/4/club/stats?se=15</a></p>
  <p>My problem is when I'm taking the data from the site mentioned above I get the data from this site:
  <a href="https://www.premierleague.com/clubs/4/club/stats" rel="nofollow noreferrer">https://www.premierleague.com/clubs/4/club/stats</a></p>
  <p>So the data and URL changes after filtering to a different season but does not appear to change when I'm trying to take it from the site.</p>
  <p>My code :</p>
  <pre><code>from bs4 import BeautifulSoup
  import requests
  import numpy as np
  
  ChelseaReq  = requests.get(&quot;https://www.premierleague.com/clubs/4/club/stats?se=15&quot;)
  ChelseaData = ChelseaReq.text
  
  soup = BeautifulSoup(ChelseaData, &quot;html.parser&quot;)
  dataSet = np.array([])
  dataSet1 = np.array([])
  chelsea_db = {}
  for stattext in soup.find_all(&quot;div&quot;,class_ =&quot;normalStat&quot;):
  
      chelsea_stat_numbers = stattext.span.text.split()[-1]
      chelsea_stat_numbers = chelsea_stat_numbers.replace(',','')
      chelsea_stat_numbers = chelsea_stat_numbers.replace('%','')
      dataSet = np.append(dataSet,float(chelsea_stat_numbers))
  
      chelsea_stat_attributes = ','.join(stattext.span.text.split()[0:-1])
      chelsea_stat_attributes = chelsea_stat_attributes.replace(',',' ')
      dataSet1 = np.append(dataSet1,chelsea_stat_attributes)
  
  for A,B in zip(dataSet1,dataSet):
      chelsea_db[A] = B
  
  chelsea_db
  </code></pre>
  <p>This prints the total data instead of the filtered data.
  How would I change it to return the filtered data instead?</p>
  <p>e.g :</p>
  <pre><code>current output = 
  'Goals': 1936.0,
  'Goals per match': 1.71,
  'Shots': 9954.0,  ... etc 
  
  (after filtering the data on the website's filter button to a single season)
  my goal =  
  'Goals': 36,
  'Goals per match': 1.71,
  'Shots': 160,  ... etc 
  </code></pre>