Coder Social home page Coder Social logo

python-imdb's People

Contributors

nandhp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

python-imdb's Issues

Get IMDB ID from title

I check out your python imdb script, and it works nicely also with aka titles :). Is it also possible to get the IMBD ID (like tt0000111)?

Error running example.py

I am trying to run "example.py" and get this error: "IOError: [Errno 2] No such file or directory: 'imdb.zip.idx'". I am not sure what I am missing.

Running queries

Hello! I am new to using python to query data. I downloaded the files and followed the instructions to create imdb.zip and imdb.zip.idx.
Now how do I use a file, say "example.py" to actually run queries? When I tried just running "python example.py", I got an error.
Sorry for my ignorance! Any help is appreciated!

error

Alyssa Byrnes

ASCII-related error when using example.py

When I use the example.py file, I get an error after about 25 movies:

Traceback (most recent call last):
  File "example.py", line 13, in <module>
    print u'%s has rating %s/10 (%d ratings)' % (title, r.score, r.nratings)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 4: ordinal not in range(128)

I have looked on the internet, and I know I should do something with encode('utf-8'), however, I can't seem to find the place in the code where I should add this.

example.py

Hello!

I have imdb.zip and imdb.zip.idx properly downloaded. I downloaded just ratings, aka-titles, and movies, as suggested. When I run example.py, I don't get an error, but nothing prints. The titles table seems to not be populating.

Data Format

I'm wondering what format the imdb.zip data file is in, ideally for reading. I intend to do some processing which involves iterating through movies, and I can't find a way to do anything besides search with this. As far as I can tell, this program does a fine job of cleaning and organizing the raw files from the IMDb, but no way to iterate. Is this possible, and/or is the data format documented (or standard) in a way that I can iterate myself?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.