<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def get_urls(htmlDoc, limit=200):
    '''takes in html document as string, returns links to dots'''
    soup = BeautifulSoup( htmlDoc )
    anchors = soup.findAll( 'a' )
    urls = {}

    counter = 0
    for i,v in enumerate( anchors ):

        href = anchors[i].get( 'href' )

        if ('dots' in href and counter < limit):
            href = href.split('/')[2]
            text = anchors[i].text.split(' ')[0].replace('/', '_')
            urls[ text ] = href
            counter += 1

    return urls