Skip to main content

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


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.2.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

doubanlib-0.1.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file doubanlib-0.1.2.tar.gz.

File metadata

  • Download URL: doubanlib-0.1.2.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for doubanlib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5a53ac1a8aeccced0ac7b5d8a3a84d020b2929fbef8965d102088daeba8bdcc3
MD5 b7482187ea02c621facb43a03165a0d7
BLAKE2b-256 ac3824b1f45f19f4b39071d7630fa4e714996152d648e8a6d641e4d6069ece95

See more details on using hashes here.

File details

Details for the file doubanlib-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: doubanlib-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.7

File hashes

Hashes for doubanlib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2ac53d1494ea6f340ab52634173be1c87538291418494133fce7ac936085bbef
MD5 189d021d6f9256fb581013fd897edea8
BLAKE2b-256 c78466dde5fe0ea02715850f6f9bf9be3d36cb6175562afc3386ae25fb8be64a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page