import requests
from bs4 import BeautifulSoup


def scrape_hyperlinks(url):
    """Parses a web page and returns a list of all hyperlinks on it.

    Parameters
    ----------
    url : str
      URL of web page to scrape links from

    Returns
    -------
    links : list
      list of hyperlinks found

    """
    response = requests.get(url)
    soup = BeautifulSoup(response.content, "html.parser")

    links = [x.get('href') for x in soup.findAll('a')]
    return links