2013-04-11, 12:31
Need help with this ERROR: Error Contents: (u'\ube44',)
check what wrong with my code?
when i try to scrap like this:
addDir('NEW VIDEOS...','http://www.khmer2all.com/more.php?load=20',12,'')
def listcage(url):
link = GetContent(url)
newlink = ''.join(link.splitlines()).replace('\t','')
match=re.compile('<a href="(.+?)"><img src="(.+?)" alt="(.+?)" class="imag" width="107" height="72" /></a>').findall(newlink)
if(len(match) >= 1):
for vLink,vpic,vLinkName in match:
addDir(vLinkName,vLink,3,vpic)
check what wrong with my code?
when i try to scrap like this:
addDir('NEW VIDEOS...','http://www.khmer2all.com/more.php?load=20',12,'')
def listcage(url):
link = GetContent(url)
newlink = ''.join(link.splitlines()).replace('\t','')
match=re.compile('<a href="(.+?)"><img src="(.+?)" alt="(.+?)" class="imag" width="107" height="72" /></a>').findall(newlink)
if(len(match) >= 1):
for vLink,vpic,vLinkName in match:
addDir(vLinkName,vLink,3,vpic)