2014-02-02, 07:24
Hi all hope You can point me in correct way,
I am trying to scrap my site:
http://fastpc.site11.com/indexx.html
There is 2 videos
I am able to scrap this site that:
and results are
can some one point me how can i tell xmbc to read them content and display as a link? to play those files?
Thanks for any explanations.
I have tried to make default.py and addon.xml but with no success got script error, even trying Hello World tutorial.
I am trying to scrap my site:
http://fastpc.site11.com/indexx.html
There is 2 videos
I am able to scrap this site that:
Quote:import urllib2,urllib,re
url='http://fastpc.site11.com/indexx.html'
req = urllib2.Request(url)
req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
response = urllib2.urlopen(req)
link=response.read()
response.close()
thumbs=re.compile('<img src="(.+?)" ').findall(link)
nameofmovie=re.compile('<span class="style12">(.+?)<span class="style481">').findall(link)
sizeofmovie=re.compile('<strong>Movie Size:</strong>(.+?)</span></td>').findall(link)
movieinfo=re.compile('\n(.+?)<b').findall(link)
movielink=re.compile('<div align="center"> <a href="(.+?)">').findall(link)
print movielink
print nameofmovie
print sizeofmovie
and results are
Quote:Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
['clip.avi', 'clip2323.avi']
['ROFL ', 'ROFL 2']
[' 1mb', ' 1.2mb']
>>>
can some one point me how can i tell xmbc to read them content and display as a link? to play those files?
Thanks for any explanations.
I have tried to make default.py and addon.xml but with no success got script error, even trying Hello World tutorial.