title: Scrape Dynamically Loaded Href attribute with Selenium and BeautifulSoup4
body: <p>I trying to scrape a Dynamically loaded href attribute with Selenium and BeautifulSoup4.</p>
  <p>When i view-source the website the href attribute is empty But When i click on inspect element the href attribute will have a link. Means that the href attribute is dynamically loaded. How can i extract that link?</p>
  <p>I am Trying with Following Code</p>
  <pre class="lang-py prettyprint-override"><code>def Scrape_Udemy():
      driver.get('https://couponscorpion.com/marketing/complete-guide-to-pinterest-pinterest-growth-2020/')
      content = driver.page_source
      soup = BeautifulSoup(content, 'html.parser')
      course_link = soup.find_all('div',{'class':&quot;rh_button_wrapper&quot;})
      for i in course_link:
          link = i.find('a',href=True)
          if link is None:
             print('No Links Found')
          print(link['href'])
  </code></pre>
  <p>But when i run the function this is printing []. I am using Chrome Driver How can i solve this. I want to <strong>scrape</strong> FREE COUPON CODE link from Url <a href="https://couponscorpion.com/marketing/complete-guide-to-pinterest-pinterest-growth-2020/" rel="nofollow noreferrer">https://couponscorpion.com/marketing/complete-guide-to-pinterest-pinterest-growth-2020/</a></p>