title: how to scrape data from sub links inside a Wikipedia article?
body: <p>Is it possible to scrape data form sub-links present within a Wikipedia article</p>
  
  <pre><code>import bs4 as bs
  import urllib.request
  import re
  sauce = urllib.request.urlopen('https://en.wikipedia.org/wiki/Greenhouse_gas').read()
  soup=bs.BeautifulSoup(sauce,'lxml')
  links = soup.find("div",{"id" : "bodyContent"}).findAll("a" , href=re.compile("(/wiki/)+([A-Za-z0-9_:()])+"))
  
  for link in links:
      print(link['href'])
      webpage=urllib.request.urlopen(link['href'])
      soup=bs.BeautifulSoup(webpage,'lxml')
  </code></pre>