XBMC Community Forum  

Go Back   XBMC Community Forum > Development > Plugin/Script (Python) Development

Plugin/Script (Python) Development Developers forum for XBMC Python Plugins/Scripts. Scripters/coders only!
Not for posting feature requests, bugs, or end-user support requests!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2004-03-18, 20:12   #1
Amything
Junior Member
 
Join Date: Mar 2004
Posts: 9
Amything is on a distinguished road
Default

passed 2 days i have been figuring out how to parse html to display what i want and have been able to get it to work. it's very simple and i get the desired results in my pc python shell.

here is the script:

Quote:
import urllib2, re
for line in urllib2.urlopen('http://www.mbl.is/mm/frettir/'): * * * * * * * * * * * * * *
* *#get headline
* *if 'class="tm"' in line:
* * * *line = re.sub(r'<.*?>', '', line)
* * * *print line

* *#get newstext
* *if 'class="frettatexti"' in line:
* * * *line = re.sub(r'<.*?>', '', line)
* * * *print line
i really don't have a clue how to make it appear in xbmc. do i have to gather the text into a file which i then display? how does this work?

like i said i'm a complete dummie, if i can just get this to display in any way or form i'd be happy and can go from there.

thank you.
Amything is offline   Reply With Quote
Old 2004-03-18, 21:16   #2
alx5962
Senior Member
 
Join Date: Jan 2004
Posts: 174
alx5962 is on a distinguished road
Default

i really advice you to analyze the windowexample script.
'print' only print infos in the debug mode (white button).
so you have to use the xbmc library to display infos on screen
alx5962 is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I set XBMC to mono output? zragnarok XBMC for Xbox Specific Support 1 2006-03-21 12:30
XBMC for Xbox output quality? coolh XBMC for Xbox Specific Support 11 2005-12-01 22:57
Stream pc output directly to xbmc draeron XBMC for Xbox Specific Support 0 2005-09-24 18:19
Can I stream my DirectSound output to Xbmc? jubcoo XBMC for Xbox Specific Support 1 2004-05-10 18:56


All times are GMT +2. The time now is 16:13.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project