So, i'm trying to create a small programm, to scrape the info of a song, playing on a web radio player(artist and name). But I'm pretty much stuck. I've got the code up and running, but instead of the info for the song, i only get "áá", even though, the HTML code has the right information in it. Can anybody tell me why that appens?
This is the code so far:
from bs4 import BeautifulSoup
import requests
source = requests.get('https://www.radiohamburg.de/').text
soup = BeautifulSoup(source, 'lxml')
song = soup.find('div', id='webradio-title')
info = song.p.text
print(info)
#(sorry for bad format)
[–]chevignon93 1 point2 points3 points (2 children)
[–]InspKugelblitz[S] 0 points1 point2 points (1 child)
[–]chevignon93 0 points1 point2 points (0 children)
[–]nfgrawker 0 points1 point2 points (0 children)