An api tool for DouBan movie
Project description
Introduce
This is an api tool for DouBan movie,so that you can get the basic information from movies.
Usage
an example of usage
from doubanlib.movies import DouBan
from doubanlib.movies import MovieInfo
# Set the headers
headers = {'User-Agent': 'Hello'}
DouBan.set_headers(headers=headers)
# You can also set the optional proxy
# DouBan.set_proxy(proxy={'http': '203.89.126.250:80'})
# 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
# 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.1.1.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for doubanlib-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 392f0a8021627ba2ab3670e1a5333b0e8698278a0ecf0c5d126caef36f0a348d |
|
MD5 | 6ccce85a38c700f3c945ef5421863270 |
|
BLAKE2b-256 | 84c0a79c74bc50fe5291adf03c6fce8817ce4412cd3f6538f338f5f33f829d45 |