Change this loop to return specific set of channels

I am by no means a coder, but I need to adjust this bit of code to not return all the channels, but only.

The loop below returns 72 channels (names) currently from the url but I only want to return 6, from channel 30 to channel 36. How can I edit that for loop below to make that happen?

Code:
def Channels(murls):
    setCookie()
    i=1
    link = OPENURL('URLFORWEBSITE',cookie='NAME')
    link = cleanHex(link)
    link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace('  ','')  
    addLink2('[I][COLOR red]Refresh Links[/COLOR][/I]  (Click Here if Vidoes are not playing)','url',555,artpath+'empty.png',fanart)
    if '<a href="#" class="user-name">'+user+'</a>' in link:
        matchlist=re.compile('<li>([^<]+)</li><ul class="inner-ul">(.+?)</ul></a>').findall(link)
        for name,urls in matchlist:
            addPlay(name,urls,411,art+str(i)+'.png')
            i=i+1

Thanks in advance.

PlexMan