doganaydin/themoviedb — pull request #21 by therms (2013-06-18 19:52:09+00:00)
Title: Fuzzy title matching and ordering.

Use https://github.com/seatgeek/fuzzywuzzy in two new methods. `Movies.get_ordered_matches()` and `Movies.get_best_match()`.

Not sure if this is something worth having in the library, but they're quite useful for automated scraping.

The specific fuzzywuzzy method, I'm using, `ratio`, provides a percent-similarity between two strings. I compare the title from each result to the string the user searched for to obtain the string similarity and then order the results by that ratio.