cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
763
Views
0
Helpful
0
Replies

How do I scrape the name/text of the hyperlinks using python?

round1extra
Level 1
Level 1

I wanted to extract the name of the links from this URL https://www.ccexpert.us/ccda/best-practices-for-hierarchical-layers.html-wigs-date however, I can't move on to the next step. below is my code so far

import requests as re
from bs4 import BeautifulSoup

URL = "https://www.ccexpert.us/ccda/best-practices-for-hierarchical-layers.html"
page = re.get(URL)
soup = BeautifulSoup(page.content, "html.parser")
results = soup.find(class_="post altr")

for result in results:
    print(result)

I still don't know how to go to the next step. Any help is very much appreciated. Thank you.

0 Replies 0
Review Cisco Networking for a $25 gift card