imdb rating/vote only offline
 

imdb rating/vote only offline

Started by bofh19, 23 August, 2010, 21:30:13

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bofh19

i know that there is already a script for imdb which shows a lot of data for a movie from imdb..
but that takes from internet..and till the result is out..the hub is hanged ..and my net is slow...so i wrote an offline imdb script...
i did copy all the taking values part from lUk3f1l3w4lK3R 's script http://forum.ptokax.org/index.php?topic=8691.0 script...i dont know how parse in lua..
anyway....
get the ratings file from http://ftp//ftp.fu-berlin.de/pub/misc/movies/database/ratings.list.gz its imdb site and can be used     (i guess)
extract it you will get a ratings.list file ..
now it has a lot of stuff...to parse..and i dont know lua properly so..

  • first remove all the data till line number 297..that is the top 250 movies ones
  • and all the license data at the ending of file
  • then install python 2.6 or any 2.* version..and run yearparse.py with that...this generates a ratings2.list...

now this ratings2.list can be used with the script..

the script has 3 commands !imdb !imdball and !imdbh (similar) to  lUk3f1l3w4lK3R script...it displays votes and movie names series
all series have a (tv) at the end....
below is the result for the command !imdb shawshank redemption
[00:43:37] <?iMDB?>  Below Are The results displayed on your search request for " shawshank redemption "
[00:43:37] <?iMDB?>  If it doesnt show what you are searching for then try another search term.
[00:43:37] <?iMDB?> 

		Votes		Rating		Movie(tv show)

		52		7.4		Hope Springs Eternal: A Look Back at 'The Shawshank Redemption' (2004) (V)
		510017		9.2		The Shawshank Redemption (1994)

		Processed 331261 Movies from database found 2 matches
		nothing is case sensitive now


i will try to post the modified ratings file also .. but my net is slow ..  :( :( :(
im not allowed to upload .py files so giving in zip..
Live Free or Die

bofh19

Live Free or Die

smarty2890


nightcrawler

Votes      Rating      Movie(tv show)

                      30.0.01003      39   4.0  "Avengers Assemble!" (2010)
                      1000211001     157   5.2  "Avengers" (1999)
                      ..12122...       8   4.8  "Avengers" (1999) {Avengers Assemble: Part One (#1.1)}
                      ...412.1..       7   4.6  "Avengers" (1999) {Avengers Assemble: Part Two (#1.2)}
                      ..226.....       5   4.2  "Avengers" (1999) {Comes a Swordsman (#1.4)}
                      ...2.8....       5   5.5  "Avengers" (1999) {Command Decision (#1.6)}
                      ..22222...       5   4.7  "Avengers" (1999) {Earth and Fire: Part One (#1.12)}
                      ..224.2...       5   4.2  "Avengers" (1999) {Earth and Fire: Part Two (#1.13)}
                      2..422....       5   4.0  "Avengers" (1999) {Egg-Streme Vengeance (#1.10)}
                      ...28.....       5   4.7  "Avengers" (1999) {Remnants (#1.5)}
                      .....312.2       8   7.5  "Bleach" (2004) {The Avengers (#3.6)}
                      0....0142.      12   6.1  "Gunsmoke" (1955) {The Avengers (#11.14)}
                      ...0012202      86   8.0  "Married with Children" (1987) {Psychic Avengers (#6.19)}
                      0000000123    2034   8.4  "The Avengers" (1961)
                      ...0020201      22   7.2  "The Avengers" (1961) {A Chorus of Frogs (#2.24)}
                      0000011222      70   7.3  "The Avengers" (1961) {A Funny Thing Happened on the Way to the Station (#5.13)}
                      0.0.111220      57   6.9  "The Avengers" (1961) {A Sense of History (#4.24)}
                      0000002111      63   7.2  "The Avengers" (1961) {A Surfeit of H2O (#4.8)}
                      0..0001123      82   7.9  "The Avengers" (1961) {A Touch of Brimstone (#4.21)}
                      ....002131      35   7.7  "The Avengers" (1961) {All Done with Mirrors (#7.8)}
                      1...011102      39   6.6  "The Avengers" (1961) {Bizarre (#7.33)}
                      ....131200      22   6.7  "The Avengers" (1961) {Box of Tricks (#2.17)}
                      ....002114      29   8.7  "The Avengers" (1961) {Brief for Murder (#3.1)}
                      ...0.13003      23   7.9  "The Avengers" (1961) {Build a Better Mousetrap (#3.21)}
                      .....31113      30   8.2  "The Avengers" (1961) {Bullseye (#2.4)}
                      0000011211      73   7.5  "The Avengers" (1961) {Castle De'ath (#4.5)}


As seen above the table dont match with the list can u make it look nice

the-master

No, we can't, the list is fine, you should adjust your clients settings to get a proper output.
keep on sharing :)

nightcrawler

Thats what i am asking is how could, how to adjust these settings to look good

the-master

by changing the clients fonts.
size can make a huge differents.
keep on sharing :)

SMF spam blocked by CleanTalk