def main():
    options = proccess_arguments()
    
    countries = Countries(options)
    
    text = web.get_page_with_cookies_using_cookiejar(URL)
    soup = BeautifulSoup(text)
    for tag in soup.findAll('a', href=True):
        if 'country=' in tag['href']:
            countries.add(tag.text)
            
    countries.sort()
    
    #countries.debug()
    
    html = HtmlWriter(countries)
    html.start()
    
    webbrowser.open_new_tab(OUTPUT)
Exemple #2
0
def test_get_page_with_cookies_using_cookiejar():
    assert web.get_page_with_cookies_using_cookiejar(GOOGLE)