def get_scrape_url(url):
    encoding = 'html.parser'
    resp = requests.get(url)
    http_encoding = (resp.encoding if ('charset' in resp.headers.get('content-type', '').lower()) else None)
    html_encoding = EncodingDetector.find_declared_encoding(resp.content, is_html=True)
    encoding = (html_encoding or http_encoding)
    soup = BeautifulSoup(resp.content, from_encoding=encoding)
    for link in soup.find_all('a', href=True):
        scrape_url = str(link['href'])
        if (contains(scrape_url, 's3.amazonaws.com') and contains(scrape_url, '.zip')):
            break
    file_name = scrape_url.split('/Kickstarter/')[1]
    return (scrape_url, file_name)
def get_scrape_url(url):
    encoding = 'html.parser'
    resp = requests.get(url)
    http_encoding = (resp.encoding if ('charset' in resp.headers.get('content-type', ).lower()) else None)
    html_encoding = EncodingDetector.find_declared_encoding(resp.content, is_html=True)
    encoding = (html_encoding or http_encoding)
    soup = BeautifulSoup(resp.content, from_encoding=encoding)
    for link in soup.find_all('a', href=True):
        scrape_url = str(link['href'])
        if (contains(scrape_url, 's3.amazonaws.com') and contains(scrape_url, '.zip')):
            break
    file_name = scrape_url.split('/Kickstarter/')[1]
    return (scrape_url, file_name)