Comments (1)
Thanks for letting me know you like this package. I had fun developing it.
The method you want is releases()
. Countries have different rating systems, so releases()
will return release data for each country, including:
- The ISO 3166 country code
- The certification (or movie rating)
- The release date
- A primary release flag
Here's an example of how to extract the certification (or movie rating) information for each country:
>>> import tmdbsimple as tmdb
>>> tmdb.API_KEY = 'YOUR_API_KEY_HERE'
>>> movie = tmdb.Movies(603)
>>> response = movie.releases()
>>> for country in movie.countries:
... print(country['iso_3166_1'] + ': ' + country['certification'])
...
US: R
CZ: 12
NO: A
GB: 15
IT: T
DE: 16
FI: K-16
BR: 12 anos
HU: 12
NL: 12
JP: PG-12
CA: 14A
AQ:
FR: U
BG: C
KR: 12세 관람가
AU: M
Check out The Movie Database documentation for more information about the endpoints, which correspond to the methods in tmdbsimple
. For example, go to the REFERENCE
section of the menu on the left side. Click on Movies
, then click on /movie/{id}/releases
, then click on GET
. From the Response
on the right, you can determine how to extract the information of interest.
from tmdbsimple.
Related Issues (20)
- How to iterate over pages using tmdb.Movies("*") HOT 1
- keywords method in Movies have no kwargs HOT 1
- SSL issues recently? HOT 3
- Can't find "Watch" endpoint HOT 4
- HTTP requests concurrency problems v2.7.0 HOT 12
- Movies, People, Tv HOT 4
- Discover movies
- List of genres HOT 5
- Connection Error while calling Function HOT 1
- Movies credits incorrect request HOT 2
- No module named 'tmdbsimple' HOT 2
- poster_path is None even tho a poster exists HOT 2
- Feature request: Add support for watch providers
- Empty lists HOT 1
- Getting ssl errors recently HOT 1
- Dirty json response from tmdb
- 'Account' object has no attribute 'id' HOT 2
- Change language HOT 2
- Support for contributions to TMDB? HOT 1
- TV watch_providers does not return response HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tmdbsimple.