From bc32a80a6b159bd25d3374163eb3a7bccf1c2773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=BD=AA=E6=9C=8B?= Date: Wed, 27 Jan 2021 21:54:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?update=20=E4=BB=A3=E7=A0=81=E5=B0=B1?= =?UTF-8?q?=E6=98=AF=E8=B4=A2=E5=AF=8C=20=E5=B0=B1=E6=98=AF=E4=BA=BA?= =?UTF-8?q?=E7=94=9F=E7=9A=84=E7=A7=AF=E7=B4=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SpiderImg/StrongSpiderv2.0.py | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/SpiderImg/StrongSpiderv2.0.py b/SpiderImg/StrongSpiderv2.0.py index 50721a9..929afec 100644 --- a/SpiderImg/StrongSpiderv2.0.py +++ b/SpiderImg/StrongSpiderv2.0.py @@ -1,23 +1,12 @@ # -*- coding: utf-8 -*- __author__ = 'Peng' -from bs4 import BeautifulSoup,Comment import urllib2 from urllib2 import urlopen,HTTPError -import MySQLdb -import json -import datetime import logging import sys -import re -import time -import random -import ConfigParser import threading -import threading -import Queue -import time from time import ctime,sleep -#获取infinity所有壁纸 +#获取infinity所有壁纸 适用于python2.7 # 配置日志信息 输出到控制台 logging.basicConfig(level=logging.INFO, @@ -40,9 +29,9 @@ def getInfinity(i): html = urlopen(request) data = html.read() imgName = str(i)+".jpg" - f = open("D:\\infinity\\"+imgName, 'wb') + f = open("C:\\infinity\\"+imgName, 'wb') f.write(data) - print u"正在保存的图片为",imgName + print ("正在保存的图片为",imgName) f.close() except HTTPError as e: print(e) From 521fddc032a8d544344c7ea40763daffab05e7cf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 27 Jan 2021 13:58:11 +0000 Subject: [PATCH 2/2] Bump pillow from 6.2.0 to 7.1.0 Bumps [pillow](https://github.com/python-pillow/Pillow) from 6.2.0 to 7.1.0. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/6.2.0...7.1.0) Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index ca7535f..c35e0e6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,7 +19,7 @@ lxml==3.8.0 numpy==1.13.3 olefile==0.44 parsel==1.2.0 -Pillow==6.2.0 +Pillow==7.1.0 pyasn1==0.2.3 pyasn1-modules==0.0.9 pycparser==2.17