update web crawler function using python