title: need to make a program in python which lists all pages related to a search and filters the contact numbers from that page and prints them
body: <p>so basically I really tried to make a program in python which does what the title says but there are basically no tutorials on web scraping of this kind. So I am kind of stuck at the part where I get like the pages from google and like scan them and if a contact page exists go there and scan again and print the numbers, and seperate with different websites if possible. Now I did follow a tutorial and got to something that looks like this (I know its trash but I really don't know a lot):</p>
  <pre><code>from bs4.element import NavigableString, Tag
  import requests
  from bs4  import BeautifulSoup
  url = &quot;https://veragallardo.com/&quot;
  
  r =  requests.get(url)
  htmlcontent = r.content
  
  soup = BeautifulSoup(htmlcontent, 'html.parser')
  
  char_list = [&quot;contact&quot;,&quot;contact-us&quot;]
  for link in all_anchors:
      if(link.get('href') != '#'):
          linkText = (link.get('href'))
          all_links.add(link)
          print(linkText)
          if char_list in linkText:
  </code></pre>
  <pre><code>              .-.
  </code></pre>