PW Akshay

Generation

generate functionFri, 02 Dec 2022

scrape this website "https://www.programming-helper.com/generate-function" results using python

import requests from bs4 import BeautifulSoup def scrape(): url = "https://www.programming-helper.com/generate-function" r = requests.get(url) soup = BeautifulSoup(r.text, 'html.parser') results = soup.find_all('div', attrs={'class':'col-sm-12'}) for result in results: print(result.text) scrape()

Questions about programming?Chat with your personal AI assistant