import requests
from bs4 import BeautifulSoup


def get_hashtags_from_URL(URL):
    """Returns a list of hashtags from a given Tumblr-URL

    Parameters:
    URL (string): URL of meme-tagged page

    Returns:
    List of hashtags
   """
    results = []

    page = requests.get(URL)
    imageList = BeautifulSoup(page.content, 'html.parser')

    for link in imageList.findAll('a', {'class': 'post_tag'}):
        hashtag = link.text
        results.append(hashtag)

    return results