import requests
from bs4 import BeautifulSoup


def parse_page(url):
    """
    根据 url 下载页面并转换成 soup 对象
    :param url: 页面 url 链接
    :return: soup 对象
    """
    page = requests.get(url).content
    return BeautifulSoup(page, 'html.parser')