import requests
from bs4 import BeautifulSoup


def priprav_bs(url, params):
    """BeautifulSoup z celé stránky
    url: str
    params: dict
    Vrátí: bs4.BeautifulSoup
    """
    headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:80.0) Gecko/20100101 Firefox/80.0'}
    r = requests.get(url, params=params, headers=headers)
    r.encoding = 'utf-8'
    return BeautifulSoup(r.text, 'html.parser')