title: Appending extracted links in list but the list give the whole tag instead of link while printing
body: <p>This is my code</p>
  <pre><code>
  from bs4 import BeautifulSoup
  import requests, lxml
  import re
  from urllib.parse import urljoin
  from googlesearch import search
  import pandas as pd
  
  query = 'A M C College of Engineering, Bangalore'
  link = []
  
  for i in search(query, tld='co.in', start=0, stop=1):
      print(i)
      soup = BeautifulSoup(requests.get(i).text, 'lxml')
      for link in soup.select(&quot;a[href$='.pdf']&quot;):
          if re.search(r'nirf', str(link), flags=re.IGNORECASE):
              fUrl = urljoin(i, link['href'])
              print(fUrl)
              link.append(fUrl)
  print(link)
  df = pd.DataFrame(link, columns=['PDF LINKS'])
  print(df)
  
  </code></pre>
  <p>Here is my output after running the code:</p>
  <pre><code>
  https://www.amcgroup.edu.in/AMCEC/index.php
  https://www.amcgroup.edu.in/AMCEC/image/Download/NIRFENGG.pdf
  https://www.amcgroup.edu.in/AMCEC/image/Download/NIRFMBA.pdf
  https://www.amcgroup.edu.in/AMCEC/image/Download/NIRF_2019.pdf
  https://www.amcgroup.edu.in/AMCEC/image/Download/NIRF_2020.pdf
  # Printing list with links but getting tags
  &lt;a href=&quot;image/gallery/Swami Vivekananda.pdf&quot; target=&quot;_black&quot;&gt;For Invitation Click here...&lt;/a&gt;
  # Dataframe where I want to store list
                        PDF LINKS
  0  For Invitation Click here...
  </code></pre>
  <p>I should get the list of links which is shown in the output but when printing the list it gives me the whole tag instead of link. Also I want to push the all the links that I got into a single row of dataframe like this:</p>
  <pre><code>       PDF LINKS
  0  link1 link2 link3    #for query1
  1  link1 link2          #for another query
  </code></pre>
  <p>How can I achieve this. And what is the problem with my code why I am getting tag instead of list.
  Thanks in advance.</p>