0

I'm brand new to BeautifulSoup, and trying to use it to scrape the links from a list of links on a wikipage. Here's the code I'm using, but it doesn't seem to output anything:

import requests from bs4 import BeautifulSoup 

url = "https://wiki.cerner.com/pages/viewpage.action?spaceKey=reference&title=Clinical%20Content%20PowerForms%20Pages" 

r = requests.get(url)

soup = BeautifulSoup(r.content)

links = soup.find_all("PowerForm")

for link in links:
     if "PowerForm" in link.get("href"):
             print ("<a href='%s'>%s</a>" %(link.get("href"), link.text))

P.S. - this is my first stackoverflow post, so any advice on improving my post is appreciated.

Thanks in advance!

0 Answers0