本文整理汇总了Python中utils.addDir函数的典型用法代码示例。如果您正苦于以下问题:Python addDir函数的具体用法?Python addDir怎么用?Python addDir使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了addDir函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: TPNCat
def TPNCat(url, index):
cathtml = utils.getHtml(url, '')
match = re.compile('<ul class="scrolling cat(.*?)</ul>', re.DOTALL | re.IGNORECASE).findall(cathtml)
match1 = re.compile('href="([^"]+)[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(match[index])
for catpage, name in match1:
utils.addDir(name, catpage, 121, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:thepornnation.py
示例2: Categories
def Categories(url):
listhtml = utils.getHtml(url, '')
match = re.compile('<a href="(.+?)" title=".+?">\n.+?<div class="thumb">\n.+?<img class="thumb" src="(.+?)" alt="(.+?)"/>').findall(listhtml)
for catpage, img, name in match:
name = utils.cleantext(name)
utils.addDir(name, catpage, 341, img, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:hdzog.py
示例3: Categories
def Categories(url):
cathtml = utils.getHtml(url, '')
match = re.compile("<a href='/top/([^']+)'>.*?src='([^']+)' alt='([^']+)'", re.DOTALL | re.IGNORECASE).findall(cathtml)
for catid, img, name in match:
catpage = "http://anybunny.com/new/"+ catid
utils.addDir(name, catpage, 321, img)
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:NothingGnome,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:anybunny.py
示例4: Categories
def Categories(url):
cathtml = utils.getHtml(url, '')
match = re.compile('data-original="([^"]+)".*?href="([^"]+)">([^<]+)<.*?strong>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(cathtml)
for img, catpage, name, videos in match:
name = name + ' [COLOR blue]' + videos + ' videos[/COLOR]'
utils.addDir(name, catpage, 131, img)
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:xvideospanish.py
示例5: TPCat
def TPCat(url):
caturl = utils.getHtml(url, '')
match = re.compile('<img src="([^"]+)"[^<]+<[^"]+"([^"]+)">([^<]+)<', re.DOTALL | re.IGNORECASE).findall(caturl)
for thumb, caturl, cat in match:
caturl = "http://www.todayporn.com" + caturl + "page1.html"
utils.addDir(cat, caturl, 91, thumb, 1)
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:jake47,项目名称:WhiteCream-V0.0.1.bundle,代码行数:7,代码来源:todayporn.py
示例6: Main
def Main():
utils.addDir('Zoeken','http://www.ziggosporttotaal.nl/zoeken.html?s=',235,'https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/zst.png','',fanart='https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/fanart.jpg')
utils.addDir('Laatste video','http://www.ziggosporttotaal.nl/video/?sort=recent',233,'https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/zst.png','',fanart='https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/fanart.jpg')
utils.addDir('Meest bekeken','http://www.ziggosporttotaal.nl/video/?sort=most',233,'https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/zst.png','',fanart='https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/fanart.jpg')
utils.addDir('Voetbal','http://www.ziggosporttotaal.nl/video/1-voetbal/',233,'https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/zst.png','',fanart='https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/fanart.jpg')
utils.addDir('Racing','http://www.ziggosporttotaal.nl/video/22-racing/',233,'https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/zst.png','',fanart='https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/fanart.jpg')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:NLViewJeroen,项目名称:NLView-Repository,代码行数:7,代码来源:ziggosporttotaal.py
示例7: Cat
def Cat(url):
cathtml = utils.getHtml(url, '')
match = re.compile('0" value="([^"]+)">([^<]+)<', re.DOTALL | re.IGNORECASE).findall(cathtml)
for catpage, name in match:
catpage = 'http://k18.co/?cat=' + catpage
utils.addDir(name, catpage, 231, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:Mirocow,项目名称:WhiteCream-V0.0.2,代码行数:7,代码来源:k18.py
示例8: NLCAT
def NLCAT(url, site):
siteurl = sitelist[site]
link = utils.getHtml(url, '')
tags = re.compile('<div class="category".*?href="([^"]+)".*?<h2>([^<]+)<.*?src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(link)
for caturl, catname, catimg in tags:
catimg = siteurl + catimg
utils.addDir(catname,caturl,101,catimg,site)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:nltubes.py
示例9: EXMovies
def EXMovies(url):
cathtml = utils.getHtml(url, '')
match = re.compile('<div id="movies">(.*?)</div>', re.DOTALL | re.IGNORECASE).findall(cathtml)
match1 = re.compile('href="([^"]+)[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(match[0])
for catpage, name in match1:
utils.addDir(name, catpage, 117, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:elreyx.py
示例10: EROCat
def EROCat(url):
cathtml = utils.getHtml(url, '')
match = re.compile('<ul class="dropdown-menu">(.*?)</ul>', re.DOTALL | re.IGNORECASE).findall(cathtml)[0]
match1 = re.compile('href="(http://www.ero-tik.com/browse-[^"]+)"[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(match)
for catpage, name in match1:
utils.addDir(name, catpage, 261, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:RaspberryMCAdmin,项目名称:DevProjects,代码行数:7,代码来源:erotik.py
示例11: Cat
def Cat(url):
listhtml = utils.getHtml(url, '')
match = re.compile('<li><a href="([^"]+)" rel="tag">([^<]+)<', re.DOTALL | re.IGNORECASE).findall(listhtml)
for catpage, name in match:
name = utils.cleantext(name)
utils.addDir(name, catpage, 371, '', '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:freeomovie.py
示例12: Cat
def Cat(url):
listhtml = utils.getHtml(url, '')
match = re.compile('<a class="item" href="([^"]+)" title="([^"]+)".*?thumb" src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(listhtml)
for catpage, name, img in match:
name = utils.cleantext(name)
utils.addDir(name, catpage, 361, img, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:tubepornclassic.py
示例13: praias
def praias():
beachcams=[]
try:
temp= abrir_url(BeachcamURL + 'pt/livecams/')
beachcams=re.compile('<a href="/pt/livecams/(.+?)">(.+?)</a>').findall(temp)
except: print "Nao foi possivel obter as BeachCams"
try:
temp= abrir_url(SurflineURL + '/surf-report/portugal_2946/map/')
beachcams+=re.compile('\tbackground-image:url./surfdata/images/icon_hdcam_blue.gif.\n\t\t\t\t\n ;background-repeat:no-repeat;background-position:bottom left"\n href="(.+?)">(.+?)</a>').findall(temp)
except: print "Nao foi possivel obter as Surfline"
try:
temp=re.compile('Report<b class="caret">(.+?)</li></ul></li>').findall(abrir_url(SurftotalURL))[0]
beachcams+=re.compile('<a href="(.+?)" >(.+?)</a>').findall(temp)
except: print "Nao foi possivel obter as Surftotal"
beachcams.sort(key=lambda t: t[1])
for end,nome in beachcams:
nome=nome.replace('ã','ã').replace('ç','ç').replace('í','í').replace('´','á')
if re.search('surf-report',end):
end=SurflineURL + end
nome= '[B]%s[/B] (Surfline)' % nome
elif re.search('camaras-report',end):
end=SurftotalURL + end
nome= '[B]%s[/B] (Surftotal)' % nome
else:
end=BeachcamURL + 'pt/livecams/' + end
nome= '[B]%s[/B] (Beachcam.pt)' % nome
addDir(nome,end,27,tvporpath + art + 'versao-ver2.png',len(beachcams),'',False)
开发者ID:brunosantos,项目名称:plugin.video.kodi,代码行数:27,代码来源:praias.py
示例14: Main
def Main():
utils.addDir('[COLOR yellow]Featured[/COLOR]','https://chaturbate.com/?page=1',221,'','')
utils.addDir('[COLOR yellow]Female[/COLOR]','https://chaturbate.com/female-cams/?page=1',221,'','')
utils.addDir('[COLOR yellow]Couple[/COLOR]','https://chaturbate.com/couple-cams/?page=1',221,'','')
utils.addDir('[COLOR yellow]Male[/COLOR]','https://chaturbate.com/male-cams/?page=1',221,'','')
utils.addDir('[COLOR yellow]Transsexual[/COLOR]','https://chaturbate.com/transsexual-cams/?page=1',221,'','')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:neopack1,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:chaturbate.py
示例15: BGCat
def BGCat(url):
caturl = utils.getHtml(url, '')
match = re.compile(r'<li><a target="_self" href="([^"]+)"\s+title="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(caturl)
for videolist, name in match:
videolist = "http://www.beeg.com" + videolist
utils.addDir(name, videolist, 81, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:jake47,项目名称:WhiteCream-V0.0.1.bundle,代码行数:7,代码来源:beeg.py
示例16: PAQList
def PAQList(url, page, onelist=None):
if onelist:
url = url.replace("page/1/", "page/" + str(page) + "/")
listhtml = utils.getHtml(url, "")
if "pornaq" in url:
match = re.compile(
r'<h2>\s+<a title="([^"]+)" href="([^"]+)".*?src="([^"]+)" class="attachment-primary-post-thumbnail',
re.DOTALL | re.IGNORECASE,
).findall(listhtml)
for name, videopage, img in match:
name = utils.cleantext(name)
utils.addDownLink(name, videopage, 62, img, "")
elif "porn00" in url:
match = re.compile(
'<h2> <a title="([^"]+)" href="([^"]+)".*?src="([^"]+)" class="attachment-primary-post-thumbnail',
re.DOTALL | re.IGNORECASE,
).findall(listhtml)
for name, videopage, img in match:
name = utils.cleantext(name)
utils.addDownLink(name, videopage, 62, img, "")
if not onelist:
if re.search("<span class='current'>\d+?</span><span>", listhtml, re.DOTALL | re.IGNORECASE):
npage = page + 1
url = url.replace("page/" + str(page) + "/", "page/" + str(npage) + "/")
utils.addDir("Next Page (" + str(npage) + ")", url, 61, "", npage)
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:26,代码来源:hdporn.py
示例17: Categories
def Categories(url):
cathtml = utils.getHtml(url, '')
match = re.compile('<li class="cat-item.+?"><a href="(.+?)" title=".+?">(.+?)</a> \((.+?)\)', re.DOTALL | re.IGNORECASE).findall(cathtml)
for catpage, name, videos in match:
name = name + ' [COLOR deeppink](%s)[/COLOR]' % videos
utils.addDir(name, catpage, 471, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:Mirocow,项目名称:WhiteCream-V0.0.2,代码行数:7,代码来源:pornkinox.py
示例18: Categories
def Categories(url, index=0):
cathtml = utils.getHtml(url, '')
match = re.compile("<ul class='children'>(.*?)</ul>", re.DOTALL | re.IGNORECASE).findall(cathtml)
match1 = re.compile('href="([^"]+)[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(match[index])
for catpage, name in match1:
utils.addDir(name, catpage, 232, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:RaspberryMCAdmin,项目名称:DevProjects,代码行数:7,代码来源:playporn.py
示例19: Categories
def Categories(url):
cathtml = utils.getHtml(url, '')
match = re.compile('/tag/([^/]+)/" cla[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(cathtml)
for catpage, name in match:
catpage = "http://hentaihaven.org/ajax.php?action=pukka_infinite_scroll&page_no=1&grid_params=infinite_scroll=on&infinite_page=2&infinite_more=true¤t_page=taxonomy&front_page_cats=&inner_grid%5Buse_inner_grid%5D=on&inner_grid%5Btax%5D=post_tag&inner_grid%5Bterm_id%5D=53&inner_grid%5Bdate%5D=&search_query=&tdo_tag=" + catpage + "&sort=date"
utils.addDir(name, catpage, 461, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:Mirocow,项目名称:WhiteCream-V0.0.2,代码行数:7,代码来源:hentaihaven.py
示例20: PHCat
def PHCat(url):
cathtml = utils.getHtml(url, '')
match = re.compile('<ul class="dropdown-menu my-drop">(.*?)</ul>', re.DOTALL | re.IGNORECASE).findall(cathtml)
match1 = re.compile('href="([^"]+)[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(match[0])
for catpage, name in match1:
utils.addDir(name, catpage, 71, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:dreamykun,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:pornhive.py
注:本文中的utils.addDir函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论