Skip to main content

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))

Metadata

Release files for doubanlib 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for doubanlib 0.1.2
File Size Uploaded Provenance Actions
doubanlib-0.1.2.tar.gz 4.6 kB Without provenance Details for doubanlib-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for doubanlib 0.1.2
File Interpreter ABI Platform Actions
doubanlib-0.1.2-py3-none-any.whl Python 3 none any Details for doubanlib-0.1.2-py3-none-any.whl

Total release size: 9.3 kB

Release files / doubanlib-0.1.2.tar.gz

Download URL doubanlib-0.1.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5a53ac1a8aeccced0ac7b5d8a3a84d020b2929fbef8965d102088daeba8bdcc3
BLAKE2b-256 checksum
How to use checksums
ac3824b1f45f19f4b39071d7630fa4e714996152d648e8a6d641e4d6069ece95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Release files / doubanlib-0.1.2-py3-none-any.whl

Download URL doubanlib-0.1.2-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2ac53d1494ea6f340ab52634173be1c87538291418494133fce7ac936085bbef
BLAKE2b-256 checksum
How to use checksums
c78466dde5fe0ea02715850f6f9bf9be3d36cb6175562afc3386ae25fb8be64a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.7

Security for doubanlib 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page