I'm just trying to scrape the title of an input Wikipedia page but I get Bad Title after running
Here's the code
import requests
from bs4 import BeautifulSoup
wiki = input('Enter the wiki:')
url = "https://en.wikipedia.org/wiki/{wiki}"
response = requests.get(url)
soup = BeautifulSoup(response.content, 'html.parser')
title = soup.find(id="firstHeading")
print(title.string)
I wanted to eventually summaries the whole page but cant seem to get past printing the title