import requests
from bs4 import BeautifulSoup


def download_and_parse(url):
    """Download content from url and parse."""
    headers = {
        "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/\
537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
    }
    res = requests.get(url, headers=headers)
    parser = BeautifulSoup(res.text, "html")
    return parser