#!/usr/bin/env python
# -*- coding: utf-8 -*-

from selearea import get_ast
from selearea import get_workarea
from selenium import webdriver

if __name__ == "__main__":
    
    webpages = {"http://www.bis.put.poznan.pl/", 
                "http://www.bis.put.poznan.pl/evPages/show/id/182"}
        
    ast_list = list()

    driver = webdriver.Firefox()

    for page in webpages:
        ast = get_ast(page, driver)
        ast_list.append( ast )
    
    for workarea in get_workarea(ast_list):
        print workarea
        
    driver.close()
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from selenium import webdriver
from selearea import get_ast, get_workarea

if __name__ == "__main__":
    urls = [
            "http://www.bis.put.poznan.pl/",
            "http://www.bis.put.poznan.pl/evPages/show/id/182"
    ]

    driver = webdriver.Firefox()

    asts = [get_ast(url, driver) for url in urls]

    for workarea in get_workarea(asts):
        print workarea

    driver.close()

make it prettier prettier