title: scraping web link from 247sports
body: <p>I am trying to grab a <a href="https://247sports.com/PlayerSport/Trevor-Lawrence-at-Cartersville-116605/RecruitRankHistory/" rel="nofollow noreferrer">rankings history weblink</a> from one url by using the following scraping code</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  
  url = 'https://247sports.com/Player/Trevor-Lawrence-61350/college-212444/'
  
  pageTree = requests.get(url, headers=headers)
  Soup = BeautifulSoup(pageTree.content, 'html.parser')
  
  past_link = Soup.find_all('ul', {'class':'ranks-list'})
  
  past_link
  </code></pre>
  <p>I was able to generate this output</p>
  <pre><code>[&lt;ul class=&quot;ranks-list&quot;&gt;
   &lt;li&gt;
   &lt;b&gt;Natl.&lt;/b&gt;
   &lt;a href=&quot;https://247sports.com/Season/2018-Football/CompositeRecruitRankings/?InstitutionGroup=HighSchool&quot;&gt;
   &lt;strong&gt;1&lt;/strong&gt;
   &lt;/a&gt;
   &lt;a class=&quot;rank-history-link&quot; href=&quot;https://247sports.com/PlayerSport/Trevor-Lawrence-at-Cartersville-116605/RecruitRankHistory/&quot;&gt;
                       History
                   &lt;/a&gt;
   &lt;/li&gt;
   &lt;li&gt;
   &lt;b&gt;PRO&lt;/b&gt;
   &lt;a href=&quot;https://247sports.com/Season/2018-Football/CompositeRecruitRankings/?InstitutionGroup=HighSchool&amp;amp;Position=PRO&quot;&gt;
   &lt;strong&gt;1&lt;/strong&gt;
   &lt;/a&gt;
   &lt;/li&gt;
   &lt;li&gt;
   &lt;b&gt;GA&lt;/b&gt;
   &lt;a href=&quot;https://247sports.com/Season/2018-Football/CompositeRecruitRankings/?InstitutionGroup=HighSchool&amp;amp;State=GA&quot;&gt;
   &lt;strong&gt;1&lt;/strong&gt;
   &lt;/a&gt;
   &lt;/li&gt;
   &lt;li&gt;
   &lt;b&gt;All-Time&lt;/b&gt;
   &lt;a href=&quot;https://247sports.com/Sport/Football/AllTimeRecruitRankings/&quot;&gt;
   &lt;strong&gt;6&lt;/strong&gt;
   &lt;/a&gt;
   &lt;/li&gt;
   &lt;/ul&gt;]
  
  </code></pre>
  <p>But going any further with something like as a &quot;past_link.find_all('a')&quot; led to running into errors. What do you think should be the next step from here? Any assistance is truly appreciated. Thanks in advance.</p>