2011-12-08, 21:24
This is version 0.9.1 of a DOM parser(and other assorted functions) for XBMC.
This addon will go to Final 1.0, with YouTube 3.0.
The parseDOM function greatly cuts down on the time it takes to scrape a site, as compared to BeautifulSoup. The implementation structure is quite different from BeautifulSoup though.
Some scraper functions in the YouTube plugin have been cut from 20+s to <3s by changing from BeautifulSoup to parseDOM
Besides for this feature the addon also provides the following functions:
- An urllib2 wrapper function called fetchPage.
- Strip <tags> from a string.
- Convert call path value=key pairs to dictionary.
- Ask user for keyboard input.
- Ask user for numpad input.
- Replace certain html codes like & with the real character.
Implementation details can be found on the wiki.
http://wiki.xbmc.org/index.php?title=Add...mc_plugins
This is a dependency used by our other plugins, and we perform constant integration and unittesting during development
http://tc.tobiasussing.dk/jenkins/view/C...Functions/
Questions, requests, suggestions are welcome.
Note: Before the 1.0 final we do not promise the interface will stay locked.
After the 1.0 version there will be "DeprecatedFunction" warnings on changes for a limited time.
TheCollective
This addon will go to Final 1.0, with YouTube 3.0.
The parseDOM function greatly cuts down on the time it takes to scrape a site, as compared to BeautifulSoup. The implementation structure is quite different from BeautifulSoup though.
Some scraper functions in the YouTube plugin have been cut from 20+s to <3s by changing from BeautifulSoup to parseDOM
Besides for this feature the addon also provides the following functions:
- An urllib2 wrapper function called fetchPage.
- Strip <tags> from a string.
- Convert call path value=key pairs to dictionary.
- Ask user for keyboard input.
- Ask user for numpad input.
- Replace certain html codes like & with the real character.
Implementation details can be found on the wiki.
http://wiki.xbmc.org/index.php?title=Add...mc_plugins
This is a dependency used by our other plugins, and we perform constant integration and unittesting during development
http://tc.tobiasussing.dk/jenkins/view/C...Functions/
Questions, requests, suggestions are welcome.
Note: Before the 1.0 final we do not promise the interface will stay locked.
After the 1.0 version there will be "DeprecatedFunction" warnings on changes for a limited time.
TheCollective