scrape "Jawaban terverifikasi ahli" in green box from the url https://brainly.co.id/tugas/148, possibly the color of green tick icon to the left of it also(tag <use xlink:href="#icon-verified"></use>
)
code
from pydash import get
from bs4 import BeautifulSoup
import requestsr=requests.get('https://brainly.co.id/tugas/148')
r=r.content#text
bsoup=BeautifulSoup(r,'html.parser')
for xlink_href in bsoup.find_all('use'):if xlink_href.has_attr('xlink:href'):print(xlink_href)icon=get(xlink_href,'xlink:href')green=(icon=='#icon-verified')if green: print('verified found ',green)
#<use xlink:href="#icon-verified"></use>
l=bsoup.find_all('h3')
print([i.text for i in l])
#<h3 class="sg-headline">Jawaban terverifikasi ahli
output
<use xlink:href="#icon-search"></use>
<use xlink:href="#icon-menu"></use>
<use xlink:href="#icon-messages"></use>
<use xlink:href="#icon-plus"></use>
<use xlink:href="#icon-points"></use>
<use xlink:href="#icon-check"></use>
<use xlink:href="#icon-arrow_left"></use>
<use xlink:href="#icon-arrow_right"></use>
<use xlink:href="#icon-plus"></use>
<use xlink:href="#icon-close"></use>
<use xlink:href="#icon-plus"></use>
<use xlink:href="#icon-plus"></use>
<use xlink:href="#icon-plus"></use>
<use xlink:href="#icon-arrow_down"></use>
<use xlink:href="#icon-arrow_up"></use>
['Pertanyaan baru di Biologi', '\nTentang kami\n', '\nBantuan\n', '\nDapatkan App Brainly\n']
not able to get #icon-verified use tag and "Jawaban terverifikasi ahli" from h3 tag