PW Akshay

Generation

generate functionFri, 02 Dec 2022

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

from bs4 import BeautifulSoup import requests def scrape_function(): html = requests.get("https://www.programming-helper.com/generate-function") soup = BeautifulSoup(html.content, 'html.parser') return soup.find('input', {'id':'function-result'}).get('value') scrape_function()

Questions about programming?Chat with your personal AI assistant