推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
cloudBird
V2EX  ›  Python

基于 Python tkinter 的豆瓣电影助手(可以学习下,没啥技术含量)

  •  
  •   cloudBird ·
    shengqiangzhang · Feb 17, 2019 · 2754 views
    This topic created in 2777 days ago, the information mentioned may be changed or developed.

    项目简介

    这个项目源于大三某课程设计。平常经常需要搜索一些电影,为了方便使用,就将原来的项目重新改写了。由于是基于 python tkinter 进行桌面端开发的,所以相对 WEB 端来说,可能不是特别方便。

    配置说明

    1. 打开 http://phantomjs.org/download.html,根据自己的操作系统下载对应的 phantomjs
    2. 打开当前面目录下的**<u>getMovieInRankingList.py</u>**,定位到第 86 行,将executable_path=phantomjs-2.1.1-macosx/bin/phantomjs修改成你自己的路径,如executable_path=xxx/bin/phantomjs
    3. 打开 pycharm,依次安装以下包
    • pip install Pillow
    • pip install selenium==2.48.0

    功能截图

    包含功能

    • [x] 根据关键字搜索电影
    • [x] 根据排行榜(TOP250)搜索电影
    • [x] 显示 IMDB 评分及其他基本信息
    • [x] 提供多个在线视频站点,无需 vip
    • [x] 提供多个云盘站点搜索该视频,以便保存到云盘
    • [x] 提供多个站点下载该视频
    • [ ] 等待更新

    相关技术

    • Python tkinter 模块 GUI 可视化
    • Python 基本爬虫方式
    • Python 正则提取数据
    • selenium 模拟浏览器行为

    存在问题

    目前没有加入反爬虫策略,如果运行出现 403 forbidden 提示,则说明暂时被禁止,解决方式如下:

    • 加入 cookies
    • 采用随机延时方式
    • 采用 IP 代理池方式(较不稳定)

    源码地址

    https://github.com/shengqiangzhang/doubanMovieTool

    https://github.com/shengqiangzhang/doubanMovieTool

    https://github.com/shengqiangzhang/doubanMovieTool

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2695 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 13:58 · PVG 21:58 · LAX 06:58 · JFK 09:58
    ♥ Do have faith in what you're doing.