Giter Site home page Giter Site logo

mingming-ctr / baidu-image-downloader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 01joy/baidu-image-downloader

0.0 0.0 0.0 74.27 MB

百度图片批量下载器

Home Page: http://www.bitjoy.net/2015/08/13/baidu-image-downloader-python3-pyqt5-eric6-cx_freeze4/

Python 100.00%

baidu-image-downloader's Introduction

百度图片批量下载器

使用python3 + pyqt5 + eric6 + cx_Freeze4完成,详细内容请看我的博客

文件含义

|--__pycache__:python缓存文件内容
|
|--_eric6project:eric6项目文件内容
|
|--build:cx_Freeze4打包内容
|
|--dist:cx_Freeze4打包生成的可执行文件
|
|--BaiduImageDownloader.e4p:eric6项目文件
|
|--BaiduImageDownloader.png:界面截图
|
|--DownloadEngine.py:python3多线程下载类
|
|--Ui_main.py:qt5界面布局代码
|
|--__init__.py:自动生成的文件,空
|
|--main.py:项目主流程
|
|--main.ui:qt gui界面文件
|
|--setup.py:cx_Freeze4打包脚本

重要文件是main.py和DownloadEngine.py

使用方法

程序猿:

依次安装python-3.4.3.amd64.msiPyQt5-5.5-gpl-Py3.4-Qt5.5.0-x64.exeeric6-6.0.8.zip

  1. 下载该项目所有代码,在当前路径执行python main.py
  2. 下载该项目所有代码,导入eric6,选中main.py,按F2执行

人类:

WIN7 64位用户直接下载BaiduImageDownloader-0.2-amd64.msi安装,在安装目录,双击main.exe运行。

已知bug

  1. 如果存储目录设置为某个根目录,图片写入失败,因为根目录是c:/的形式,会导致生成c://a.jpg这样的文件,但是写入失败,多了个斜杠/;如果是其他目录c:/img,则拼接为c:/img/a.jpg正确。
  2. 关键词为校花,图片尺寸为特大时,程序崩溃,好像是JSON decode的某个问题
  3. http://image.baidu.com/i?tn=resultjson&ie=utf-8&word=%s 百度图片取json的API失效,请另寻他法

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.