Answers for "find links in web page web scraping"

1

find links in web page web scraping

data = requests.get("www.ibm.com").text
soup = BeautifulSoup.(data, "html.parser")
for link in soup.find_all('a',href=True):  # in html anchor/link is represented by the tag <a>
    print(link.get('href'))
Posted by: Guest on April-09-2022

Python Answers by Framework

Browse Popular Code Answers by Language