An api tool for DouBan movie
Project description
Introduce
This is an api tool for DouBan movie(https://movie.douban.com/),you can get the basic information from movies.
Usage
an example of usage
from doubanlib.movies import MovieInfo
# Doctor Strange in the Multiverse of Madness which id is 30304994(https://movie.douban.com/subject/30304994).
obj = MovieInfo(30304994)
# Print the Description of the movie.
print('Description:{}'.format(obj.description))
complete usage
from doubanlib.movies import MovieInfo
# Doctor Strange in the Multiverse of Madness which id is 30304994(https://movie.douban.com/subject/30304994).
obj = MovieInfo(30304994)
# Print all the information of the movie.
print(
'ID:{}\nName:{}\nChinese_Name:{}\nYear:{}\nGenre:{}\nRegions:{}\nLanguage:{}\nRating:{}\nVotes:{}\nLength_Movie:{}\nDirectors:{}\nAlias:{}\nImage:{}\nDate_Published:{}\nActors:{}\nDescription:{}'
.format(obj.m_id, obj.name, obj.chineseName, obj.year, obj.genre,
obj.regions, obj.languages, obj.rating, obj.votes, obj.length_movie,
obj.directors, obj.alias, obj.image, obj.pubDate, obj.actors,
obj.actors, obj.description))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
doubanlib-0.0.8.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for doubanlib-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04d11170843db8b4c6b0028efc8e2f88adee09b436412616b7e8ecf68bcc7104 |
|
MD5 | 06ccf150a981185e596846ab0bd7b5f3 |
|
BLAKE2b-256 | ac11b64db42a3937efc75b5771a38cbe66a6e51d1213ca10b73d609b4d87ff9b |