PacktPublishing/Learn-Python-by-Building-Data-Science-Applications

Chapter 7 Function parse_battle_page

smart-patrol opened this issue · 1 comments

In Chapter 7 it has the function parse_battle_page

Absent from the book and this repo is the function _default_collect() in it.

Unable to reproduce results without this sub function.

def parse_battle_page(url):
    ''' main function to parse battle urls from wikipedia
    '''
    try:
        dom = _default_collect(url) # dom
    except Exception as e:
        warnings.warn(str(e))
        return {}
...