```python:/Users/adityajain/Documents/Scraper/scaper.py
import requests
from bs4 import BeautifulSoup
import json
from lxml import html

# def scrape_company_urls(url):
#     response = requests.get(url)
    
#     if response.status_code != 200:
#         print(f"Failed to retrieve page. Status code: {response.status_code}")
#         return None
    
#     soup = BeautifulSoup(response.content, 'html.parser')
    
#     container = soup.find('div', class_='search_cardsContainer__jTGn4')
#     if container:
#         links = container.find_all('a', href=True)
#         # Extract company names, filter out '/de', and remove duplicates
#         company_names = list(set(
#             link['href'].split('/')[-1] for link in links if link['href'] != '/de'
#         ))
#         return json.dumps(company_names)
    
#     return None

# url = 'https://www.kununu.com/de/search?country=de&location=city-2fbd1016-893c-4ef0-bea2-7e709129d312'
# company_urls_json = scrape_company_urls(url)

# print(company_urls_json)

# ..............................................

def scrape_company_info(url):
    response = requests.get(url)
    
    if response.status_code != 200:
        print(f"Failed to retrieve page. Status code: {response.status_code}")
        return None
    
    tree = html.fromstring(response.content)
    
    # Extract Mitarbeiter:innen-Zufriedenheit
    employee_satisfaction = tree.xpath('//div[@class="index__block__7hodp"]/span[@class="h5 index__score__BktQY"]/text()')
    employee_satisfaction = employee_satisfaction[0].strip() if employee_satisfaction else None
    
    # Extract additional scores
    categories = tree.xpath('//div[@class="index__scoreBreakdownContainer__vG9I-"]//li[@class="index__item__F4hKn"]')
    scores = {}
    
    for category in categories:
        category_name = category.xpath('.//span[@class="index__itemName__GpEyp p-small-semibold"]/text()')
        category_score = category.xpath('.//span[@class="h5 index__score__BktQY"]/text()')
        
        if category_name and category_score:
            scores[category_name[0].strip()] = category_score[0].strip()
        
        factors = category.xpath('.//ul[@class="index__factorList__ZDKkP"]/li')
        for factor in factors:
            factor_name = factor.xpath('.//span[@class="index__factorName__ilaK1 p-tiny-regular text-dark-63"]/text()')
            factor_score = factor.xpath('.//span[@class="index__factorScore__sV-a1 h6"]/text()')
            
            if factor_name and factor_score:
                scores[factor_name[0].strip()] = factor_score[0].strip()
    
    return {
        'employee_satisfaction': employee_satisfaction,
        'scores': scores
    }

url = 'https://www.kununu.com/de/berlin-brands-group'
company_info = scrape_company_info(url)
print(company_info)


```


Write a scraper code that visits the link https://www.kununu.com/de/berlin-brands-group and fetches everything that is inside the following component:
<ul class="index__list__7ApgR"><li class="index__item__F4hKn"><button class="index__itemButton__0Qdxr" id="summary-satisfaction-show-career-button" type="button" aria-expanded="false"><span class="index__itemNameBlock__5MSld"><svg aria-label="chevron icon" class="_blue_1i9ay_577 _transition_15wgy_1" height="16" role="img" viewBox="0 0 16 16" width="16"><path clip-rule="evenodd" d="M4.23431 6.96575C4.07834 6.80931 4 6.60475 4 6.40007C4 6.1954 4.07834 5.99072 4.23431 5.8344C4.54636 5.52175 5.05325 5.52175 5.36578 5.8344L7.99991 8.46853L10.6342 5.8344C10.9461 5.52175 11.4532 5.52175 11.7655 5.8344C12.0782 6.14669 12.0782 6.65334 11.7655 6.96575L8.56559 10.1657C8.2533 10.4782 7.74676 10.4782 7.43423 10.1657L4.23431 6.96575Z" fill-rule="evenodd"></path></svg><span class="index__itemName__GpEyp p-small-semibold"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Career &amp; Salary</font></font></span></span><div class="index__block__7hodp"><span class="h5 index__score__BktQY"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.4</font></font></span><span class="index__stars__nfK6S index__small__9UYaa" data-fillcolor="butterscotch" data-score="3.5"></span></div></button><ul class="index__factorList__ZDKkP"><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.2</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">salary/benefits</font></font></span></li><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.5</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">image</font></font></span></li><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.4</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Career/Further Education</font></font></span></li></ul></li><li class="index__item__F4hKn index__expandButton__XGan8"><button class="index__itemButton__0Qdxr" id="summary-satisfaction-hide-culture-button" type="button" aria-expanded="true"><span class="index__itemNameBlock__5MSld"><svg aria-label="chevron icon" class="_blue_1i9ay_577 _up_15wgy_5 _transition_15wgy_1" height="16" role="img" viewBox="0 0 16 16" width="16"><path clip-rule="evenodd" d="M4.23431 6.96575C4.07834 6.80931 4 6.60475 4 6.40007C4 6.1954 4.07834 5.99072 4.23431 5.8344C4.54636 5.52175 5.05325 5.52175 5.36578 5.8344L7.99991 8.46853L10.6342 5.8344C10.9461 5.52175 11.4532 5.52175 11.7655 5.8344C12.0782 6.14669 12.0782 6.65334 11.7655 6.96575L8.56559 10.1657C8.2533 10.4782 7.74676 10.4782 7.43423 10.1657L4.23431 6.96575Z" fill-rule="evenodd"></path></svg><span class="index__itemName__GpEyp p-small-semibold"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">corporate culture</font></font></span></span><div class="index__block__7hodp"><span class="h5 index__score__BktQY"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.7</font></font></span><span class="index__stars__nfK6S index__small__9UYaa" data-fillcolor="butterscotch" data-score="3.5"></span></div></button><ul class="index__factorList__ZDKkP index__expandButton__XGan8"><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.8</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">working atmosphere</font></font></span></li><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.3</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">communication</font></font></span></li><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">4.3</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">cohesion among colleagues</font></font></span></li><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.6</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">work-life balance</font></font></span></li><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.6</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">supervisor behavior</font></font></span></li><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.8</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Interesting tasks</font></font></span></li></ul></li><li class="index__item__F4hKn index__expandButton__XGan8"><button class="index__itemButton__0Qdxr" id="summary-satisfaction-hide-work-button" type="button" aria-expanded="true"><span class="index__itemNameBlock__5MSld"><svg aria-label="chevron icon" class="_blue_1i9ay_577 _up_15wgy_5 _transition_15wgy_1" height="16" role="img" viewBox="0 0 16 16" width="16"><path clip-rule="evenodd" d="M4.23431 6.96575C4.07834 6.80931 4 6.60475 4 6.40007C4 6.1954 4.07834 5.99072 4.23431 5.8344C4.54636 5.52175 5.05325 5.52175 5.36578 5.8344L7.99991 8.46853L10.6342 5.8344C10.9461 5.52175 11.4532 5.52175 11.7655 5.8344C12.0782 6.14669 12.0782 6.65334 11.7655 6.96575L8.56559 10.1657C8.2533 10.4782 7.74676 10.4782 7.43423 10.1657L4.23431 6.96575Z" fill-rule="evenodd"></path></svg><span class="index__itemName__GpEyp p-small-semibold"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">work environment</font></font></span></span><div class="index__block__7hodp"><span class="h5 index__score__BktQY"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.5</font></font></span><span class="index__stars__nfK6S index__small__9UYaa" data-fillcolor="butterscotch" data-score="3.5"></span></div></button><ul class="index__factorList__ZDKkP index__expandButton__XGan8"><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.7</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">working conditions</font></font></span></li><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">3.3</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">environmental/social awareness</font></font></span></li></ul></li><li class="index__item__F4hKn index__expandButton__XGan8"><button class="index__itemButton__0Qdxr" id="summary-satisfaction-hide-diversity-button" type="button" aria-expanded="true"><span class="index__itemNameBlock__5MSld"><svg aria-label="chevron icon" class="_blue_1i9ay_577 _up_15wgy_5 _transition_15wgy_1" height="16" role="img" viewBox="0 0 16 16" width="16"><path clip-rule="evenodd" d="M4.23431 6.96575C4.07834 6.80931 4 6.60475 4 6.40007C4 6.1954 4.07834 5.99072 4.23431 5.8344C4.54636 5.52175 5.05325 5.52175 5.36578 5.8344L7.99991 8.46853L10.6342 5.8344C10.9461 5.52175 11.4532 5.52175 11.7655 5.8344C12.0782 6.14669 12.0782 6.65334 11.7655 6.96575L8.56559 10.1657C8.2533 10.4782 7.74676 10.4782 7.43423 10.1657L4.23431 6.96575Z" fill-rule="evenodd"></path></svg><span class="index__itemName__GpEyp p-small-semibold"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">diversity</font></font></span></span><div class="index__block__7hodp"><span class="h5 index__score__BktQY"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">4.1</font></font></span><span class="index__stars__nfK6S index__small__9UYaa" data-fillcolor="butterscotch" data-score="4"></span></div></button><ul class="index__factorList__ZDKkP index__expandButton__XGan8"><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">4.2</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">equality</font></font></span></li><li class="index__factorItem__3jsOU"><span class="index__factorScore__sV-a1 h6"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">4.0</font></font><span class="index__fullStar-butterscotch__pdNj9 index__star__Md5mX"></span></span><span class="index__factorName__ilaK1 p-tiny-regular text-dark-63"><font style="vertical-align: inherit;"><font style="vertical-align: inherit;">Dealing with older colleagues</font></font></span></li></ul></li></ul>