Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Python Coding
#5
As hint says - it's a key in a movie['box office'] dict

from imdb import IMDb

client = IMDb()
movie = client.get_movie('4154796')
print(movie['box office'])
print(movie['box office']['Cumulative Worldwide Gross'])
Output:
{'Budget': '$356,000,000 (estimated)', 'Opening Weekend United States': '$357,115,007, 28 Apr 2019', 'Cumulative Worldwide Gross': '$2,796,274,401, 12 Sep 2019'} $2,796,274,401, 12 Sep 2019
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
Python Coding - by anh3phecan - Sep-28-2019, 05:52 AM
RE: Python Coding - by buran - Sep-28-2019, 06:29 AM
RE: Python Coding - by zipit - Sep-28-2019, 01:53 PM
RE: Python Coding - by anh3phecan - Sep-28-2019, 07:51 PM
RE: Python Coding - by buran - Sep-28-2019, 08:00 PM
RE: Python Coding - by anh3phecan - Sep-28-2019, 09:24 PM
RE: Python Coding - by buran - Sep-29-2019, 07:32 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020