I am trying to extract the content of a single \"value\" attribute in a specific \"input\" tag on a webpage. I use the following code:
import urllib f = urll
For me:
This can be fetched by below snippet.
page = requests.get("https://www.abcd.com") soup = BeautifulSoup(page.content, 'html.parser') colorName = soup.find(id='color') print(color['value'])