多线程爬虫批量下载pcgame图片url 保存为xml的实现代码
实现代码如下:#coding=gbkfrom xml.dom import minidom,Nodeimport urllib2,re,osdef readsrc(src):try:url = urllib2.urlopen(src)content = url.read()#.decode('utf
实现代码如下:#coding=gbkfrom xml.dom import minidom,Nodeimport urllib2,re,osdef readsrc(src):try:url = urllib2.urlopen(src)content = url.read()#.decode('utf
实现代码如下:#coding:utf-8 import urllib.request import xml.dom.minidom import sqlite3 import threading import time class logger(object): def log(self,*msg)