Skip to main content

Get douabn information to a summary text.

Project description

DoubanInfo

抓取豆瓣信息并生成简介文本, 目前支持电影类(电影/剧集/动漫/综艺)和书籍类。

Get douabn information to a summary text.

Functions(功能介绍)

  • 输出简介文本
  • 输出Json格式信息
  • 自动将输出信息复制到前剪切板

Useage(使用方法)

参数说明

-h, --help show this help message and exit -u URL, --url URL Input your douban-url(豆瓣链接) -c COOKIE, --cookie COOKIE Input your douban-cookie(豆瓣cookie,用于抓取部分只有登录才能看到的资源) -j, --json Output as json format(输出json格式的结果) -cp, --copy Copy the output to the clipboard(将结果添加到剪切板)

示例

doubaninfo -u douban-url -c douban-cookie(不强制)

示例1:

doubaninfo -u https://movie.douban.com/subject/26353671/

示例2:

doubaninfo -u https://movie.douban.com/subject/26353671/ -c 'your cookie'

示例3:

di -u https://movie.douban.com/subject/26353671/ -c 'your cookie'

Install 安装方法

1.安装Python环境

2.在PowerShell(Windows)/ Terminal.app(MacOS)/ command-line interface(Linux)下输入

pip3 install doubaninfo

Or

pip install doubaninfo

Upgrade 更新方法

pip3 install --upgrade doubaninfo

Or

pip install --upgrade doubaninfo

Reference

[1] DouBan-Spider

[2] 电影信息查询脚本

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

doubaninfo-0.0.4.tar.gz (11.2 kB view hashes)

Uploaded Source

Supported by

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