def soup_get_links(data, mytype, mywhat):
    soup = BeautifulSoup(data)
    mytab = []
    linki_pl = soup.find(mytype, mywhat)
    if linki_pl:
        tag_a = linki_pl.findAll('a')
        if len(tag_a)>0:
            for mytag in tag_a:
                myt1 = ''
                if 0 > len(mytag.text):
                    myt1 =  mytag.text
                else:
                    myt1 = getHostName(mytag['href'])
                mytab.append({"link": mytag['href'], "text": myt1, "id":mywhat})
        #lektor_pl
        #wersja_eng
    return mytab
dataset/ETHPy150Open mrknow/filmkodi/plugin.video.mrknow/lib/mrknow_utils.py/soup_get_links/swapped operands of `>`