home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
IMDb Scraper with RottenTomatoes rating (check end of thread for final versions)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="mortstar" data-source="post: 640989" data-attributes="member: 66294"><p><strong>Re: IMDb Scraper with RottenTomatoes rating v1.4.4</strong></p><p></p><p>Just having a look at this....I suspect RottenTomatoes have changed their HTML coding because the score is being created from the number of reviews counted. i.e. I've just imported '<a href="http://www.rottentomatoes.com/m/millenium_le_film/" target="_blank">The Girl With the Dragon Tattoo</a>' which has an RT score of 88 from 189 counted reviews and the score is getting assigned as 1.9.</p><p></p><p>I've attached a log with debug scraping enabled, looks like we'll need RoChess' help again.</p><p></p><p>Current regex is</p><p>[CODE]<set name="rx_rotten_rating"></p><p> <![CDATA[</p><p> <span class="per[cf]e[nc]t".+?>(\d{1,3}?)</span></p><p> ]]></p><p> </set>[/CODE]</p><p></p><p>and the HTML from the example film I am trying to import is </p><p>[CODE]<div id="tomatometer" class="dialog chromeGreenMain"></p><p> <div class="dialog_content clearfix" rel="v:rating"></p><p> <div class="t"></div></p><p> <span typeof="v:Review-aggregate"></p><p> <div id="tomatometer_score" style="" rel="v:rating"></p><p> <span class="percent" property="v:average"></p><p> 88</span></p><p> <span property="v:best" content="100"/></p><p> <sup class="symbol ">%</sup></p><p> </div></p><p> <div id="tomatometer_bar"></p><p> <h6>Tomatometer</h6></p><p> <div id="tomatometer_bar_container"></p><p> <img class="fl" src="http://images.rottentomatoes.com/images/tomatometer/tomatometer_bar_over_left.png" width="6" height="19" alt="Template Image" /></p><p> <img class="fl" src="http://images.rottentomatoes.com/images/tomatometer/tomatometer_bar_over_middle.gif" width="193.0" height="19" alt="Template Image" /> </p><p> </div></p><p> <p id="tomatometer_bar_help" class="help" title="The Tomatometer measures the percentage of positive reviews from Approved Tomatometer Critics for a certain movie.">How does the Tomatometer work <img id="rater_mob_helpicon" src="http://images.rottentomatoes.com/images/icons/helpGreen_sm_whitebg.gif" alt="Help Icon" /></p></p><p> </div></p><p> <div id="tomatometer_certified_fresh" ></p><p> <span class="iconset iconset_rt_lg certifiedfresh_lg hide" title="Certified Fresh"></span></p><p> </div></p><p> <div id="tomatometer_data"></p><p> <p>Reviews Counted:<span property="v:count">189</span></p></p><p> <p id="tomatometer_data_fresh">Fresh:<span>166</span></p></p><p> <p id="tomatometer_data_rotten">Rotten:<span>23</span></p></p><p> <p>Average Rating:<span>7.6/10</span></p></p><p> </div>[/CODE]</p></blockquote><p></p>
[QUOTE="mortstar, post: 640989, member: 66294"] [b]Re: IMDb Scraper with RottenTomatoes rating v1.4.4[/b] Just having a look at this....I suspect RottenTomatoes have changed their HTML coding because the score is being created from the number of reviews counted. i.e. I've just imported '[url=http://www.rottentomatoes.com/m/millenium_le_film/]The Girl With the Dragon Tattoo[/url]' which has an RT score of 88 from 189 counted reviews and the score is getting assigned as 1.9. I've attached a log with debug scraping enabled, looks like we'll need RoChess' help again. Current regex is [CODE]<set name="rx_rotten_rating"> <![CDATA[ <span class="per[cf]e[nc]t".+?>(\d{1,3}?)</span> ]]> </set>[/CODE] and the HTML from the example film I am trying to import is [CODE]<div id="tomatometer" class="dialog chromeGreenMain"> <div class="dialog_content clearfix" rel="v:rating"> <div class="t"></div> <span typeof="v:Review-aggregate"> <div id="tomatometer_score" style="" rel="v:rating"> <span class="percent" property="v:average"> 88</span> <span property="v:best" content="100"/> <sup class="symbol ">%</sup> </div> <div id="tomatometer_bar"> <h6>Tomatometer</h6> <div id="tomatometer_bar_container"> <img class="fl" src="http://images.rottentomatoes.com/images/tomatometer/tomatometer_bar_over_left.png" width="6" height="19" alt="Template Image" /> <img class="fl" src="http://images.rottentomatoes.com/images/tomatometer/tomatometer_bar_over_middle.gif" width="193.0" height="19" alt="Template Image" /> </div> <p id="tomatometer_bar_help" class="help" title="The Tomatometer measures the percentage of positive reviews from Approved Tomatometer Critics for a certain movie.">How does the Tomatometer work <img id="rater_mob_helpicon" src="http://images.rottentomatoes.com/images/icons/helpGreen_sm_whitebg.gif" alt="Help Icon" /></p> </div> <div id="tomatometer_certified_fresh" > <span class="iconset iconset_rt_lg certifiedfresh_lg hide" title="Certified Fresh"></span> </div> <div id="tomatometer_data"> <p>Reviews Counted:<span property="v:count">189</span></p> <p id="tomatometer_data_fresh">Fresh:<span>166</span></p> <p id="tomatometer_data_rotten">Rotten:<span>23</span></p> <p>Average Rating:<span>7.6/10</span></p> </div>[/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
IMDb Scraper with RottenTomatoes rating (check end of thread for final versions)
Contact us
RSS
Top
Bottom