0
def applemusic():
appleMusicUrl = f"https://music.apple.com/ua/search?term={songName}"
appleMusicUrl = appleMusicUrl.replace(" ", "%20")
response = requests.get(appleMusicUrl)
html = response.text
soup = BeautifulSoup(html, "html.parser")
songTab = soup.select_one('div[class="search__top-results"]').text
# nameofSong = songTab.select_one('li:first-child')
# artist = songTab.select_one('li:nth-child(2)')
file.write("Apple Music songs from Finder: \n" + songTab + "\n===========\n")
print(songTab)
applemusic()
Писал другие парсеры точно также. Все работало
Сейчас же говорит что у NoneType объекта нету атрибута text