Jan-13-2018, 07:18 AM
Just remove download,and use Requests(is what should by used anyway in the download reference).
from bs4 import BeautifulSoup import requests url = 'http://example.webscraping.com/places/default/view/Australia-14' url_get = requests.get(url) soup = BeautifulSoup(url_get.content, 'html.parser') contry = soup.find('tr', id="places_country__row") print(contry.text)
Output:Country: Australia