Quick Scraper Question (Hope so:))

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
spiff Offline
Grumpy Bastard Developer
Posts: 12,185
Joined: Nov 2003
Reputation: 82
Post: #41
Code:
    <GetRating dest="5">
        <RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;" dest="5+">
            <expression>&lt;b&gt;([0-9.]+)/10&lt;/b&gt;[^&lt;]*&lt;a href=&quot;ratings&quot; class=&quot;tn15more&quot;&gt;([0-9,]+) votes&lt;/a&gt;</expression>
        </RegExp>
                <expression noclean="1"/>
    </GetRating>

see; one <RegExp>, two <expression>

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Schenk2302 Offline
Senior Member
Posts: 103
Joined: Feb 2009
Reputation: 4
Post: #42
spiff Wrote:
Code:
    <GetRating dest="5">
        <RegExp input="$$1" output="&lt;rating&gt;\1&lt;/rating&gt;&lt;votes&gt;\2&lt;/votes&gt;" dest="5+">
            <expression>&lt;b&gt;([0-9.]+)/10&lt;/b&gt;[^&lt;]*&lt;a href=&quot;ratings&quot; class=&quot;tn15more&quot;&gt;([0-9,]+) votes&lt;/a&gt;</expression>
        </RegExp>
                <expression noclean="1"/>
    </GetRating>

see; one <RegExp>, two <expression>

sorry, i'm to stupid; can't see where you wanna lead me Sad
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,185
Joined: Nov 2003
Reputation: 82
Post: #43
<expression> tags only makes sense wrapped in a <RegExp>. the latter one is surely NOT wrapped in a <RegExp> -> it's useless

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Schenk2302 Offline
Senior Member
Posts: 103
Joined: Feb 2009
Reputation: 4
Post: #44
spiff Wrote:<expression> tags only makes sense wrapped in a <RegExp>. the latter one is surely NOT wrapped in a <RegExp> -> it's useless

that's what i thought you try to tell me but if i delete it, parsing didn't work (or maybe only didn't work with scrap.exeConfused)

Thanks

Schenk
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,185
Joined: Nov 2003
Reputation: 82
Post: #45
any result from scrap.exe is irrelevant

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Schenk2302 Offline
Senior Member
Posts: 103
Joined: Feb 2009
Reputation: 4
Post: #46
spiff Wrote:any result from scrap.exe is irrelevant

Just tried it without in XBMC and it doesn't work, if i add the line, it'll work Nod, don't know why.
find quote
Schenk2302 Offline
Senior Member
Posts: 103
Joined: Feb 2009
Reputation: 4
Post: #47
Here we go again with stealing your time:

You know how i get the covers from cinefacts, because you set it up.

My question now: is it possible to add covers from a different site and get them all together from both sitesConfused

thanks for get me learnig Smile
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,185
Joined: Nov 2003
Reputation: 82
Post: #48
yes, have a look at the imdb scraper for instance. or how you add the fanart for that matter....

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
(This post was last modified: 2009-05-04 20:13 by spiff.)
find quote
Schenk2302 Offline
Senior Member
Posts: 103
Joined: Feb 2009
Reputation: 4
Post: #49
spiff Wrote:yes, have a look at the imdb scraper for instance. or how you add the fanart for that matter....


That's freaking me out, here's what i have so far:

Code:
<GetPosterLinkURL dest="5">
        <RegExp input="$$2" output="&lt;details&gt;\1&lt;/details&gt;" dest="5+">
                        <RegExp input="$$1" output="&lt;url function=&quot;GetPosterURL&quot;&gt;http://www.moviemaze.de/filme/\1/\2&lt;/url&gt;" dest="2+">
                <expression>&lt;a href=&quot;/filme/([0-9]+)/([^&quot;]*)&quot;</expression>
            </RegExp>
            <expression noclean="1"/>
        </RegExp>
    </GetPosterLinkURL>

    <GetPosterURL dest="5">
        <RegExp conditional="poster" input="$$1" output="&lt;details&gt;&lt;url function=&quot;GetPoster&quot;&gt;http://www.moviemaze.de/media/poster/\1/\2&lt;/url&gt;&lt;/details&gt;" dest="5">
            <expression>&lt;a href=&quot;/media/poster/([0-9]+)/([^&quot;]*)&quot;</expression>
        </RegExp>
    </GetPosterURL>

    <GetPoster dest="5">
        <RegExp input="$$2" output="&lt;details&gt;&lt;poster url=&quot;http://www.moviemaze.de/filme/\1/poster_lg\2.jpg&lt;/poster&gt;&lt;/details&gt;" dest="5">
            <RegExp input="$$1" output="&lt;thumb&gt;http://www.moviemaze.de/filme/\1/poster_lg\2.jpg&lt;/thumb&gt;" dest="2">
                <expression repeat="yes">/([0-9]+)/poster([0-9]+)</expression>
            </RegExp>
            <expression noclean="1"/>
        </RegExp>
    </GetPoster>

There must be something wrong in the last section GetPoster, but as always i can't find the way.

Thanks
Schenk
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,185
Joined: Nov 2003
Reputation: 82
Post: #50
there is no <poster> tag, where did you get that idea from?

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
Post Reply