Render HTML with MP

Discussion in 'Plugin Development' started by doug, June 7, 2011.

  1. doug
    • Premium Supporter

    doug MP Donator

    Joined:
    September 22, 2010
    Messages:
    81
    Likes Received:
    12
    Occupation:
    Formerly in Telecom. Now a full-time dad
    Location:
    Calgary
    Ratings:
    +12 / 0
    Home Country:
    Canada Canada
    Show System Specs
    Hi,
    Inspired by a plugin that displays weather from the BBC, I'm looking at developing a plugin to display weather from the Environment Canada website.



    I don't have access to the underlying database or data they use, so from what I can see, the easiest thing for me to do is simply scrape a portion of the desired page (allowed by their terms of use) and display it in MP. Can MP render HTML or is there some plugin that does this? Or do I have to parse the HTML do extract the portion I want and then display in MP? Or perhaps is there an easier way to approach this.

    Thanks,
    Doug
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. mbuzina
    • Premium Supporter

    mbuzina Retired Team Member

    Joined:
    April 11, 2005
    Messages:
    2,839
    Likes Received:
    627
    Location:
    Germany
    Ratings:
    +723 / 4
    Home Country:
    Germany Germany
    Show System Specs
    Hi Doug

    MP does not render HTML by itself - there are several Web Browser Plugins which use different browsers as addins. I would recommend scraping and parsing the html to display in a skin.
     
    • Like Like x 1
  4. Albert
    • Premium Supporter

    Albert MP2 Developer

    Joined:
    February 18, 2008
    Messages:
    1,297
    Likes Received:
    1,125
    Gender:
    Male
    Occupation:
    Dipl.-Inform.
    Location:
    Freiburg im Breisgau, Germany
    Ratings:
    +1,130 / 1
    Home Country:
    Germany Germany
    AW: Render HTML with MP

    doug, MP2 already has a Weather plugin. Look at the code there. It has already a scraper and is extensible to use other scrapers as well.
     
    • Like Like x 1
  5. doug
    • Premium Supporter

    doug MP Donator

    Joined:
    September 22, 2010
    Messages:
    81
    Likes Received:
    12
    Occupation:
    Formerly in Telecom. Now a full-time dad
    Location:
    Calgary
    Ratings:
    +12 / 0
    Home Country:
    Canada Canada
    Show System Specs
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!