title: Change attrs within HTML tag to view full content Python BeautifulSoup
body: <p>I am trying to view the full content of the website fortune.com/best-companies
  The original code has the following tag in its script :</p>
  
  <pre><code>&lt;nav id="bottom-panel-pagination" class="panel-pagination hasNextOnly"&gt;
      &lt;div data-event="view left" class="prev-page icon-new-left-arrow"&gt;&lt;/div&gt;
      &lt;div data-event="view right" class="next-page icon-new-right-arrow"&gt;&lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>
  
  <p>I want to change the class attribute "panel-pagination hasNextOnly" to "panel-pagination hasNoPagination" using BeautifulSoup. My python code looks like this :</p>
  
  <pre><code>import urllib2
  from bs4 import BeautifulSoup
  quote_page = "http://fortune.com/best-companies/"
  page = urllib2.urlopen(quote_page)
  soup = BeautifulSoup(page, "html.parser")
  fullpage = soup.find('nav', attrs = {'class' : 'panel-pagination hasNextOnly'})
  print fullpage
  </code></pre>
  
  <p>I want to change attrs = {'class' : 'panel-pagination hasNextOnly'} to attrs = {'class' : 'panel-pagination hasNoPagination'}</p>
  
  <p>The website should reload after this so that I can further scrap it. How do I do it? Please help.</p>