>°))))彡 Fisherman
  • Home
  • Project
  • Show Case
  • Contact
  • ProShop
  • About

Python

A collection of 2 posts
Python文件的全备份和差异备份
Python

Python文件的全备份和差异备份

代码: #!/usr/bin/env python import time,os,sys,cPickle fileInfo = {} def logger(time,fileName,status,fileNum): f = open('backup.log','a') f.write("%s\t%s\t%s\t\t%s\n" % (time,fileName,status,fileNum)) def tar(sDir,dDir,fileNum): command = "tar zcf %s %s >/dev/null 2>
Sep 16, 2021 2 min read
Python多线程抓取代理服务器
Python

Python多线程抓取代理服务器

Python爬虫多线程抓取代理服务器。 代码如下: #!/usr/bin/env python #coding:utf-8 #BLOG: davidchau.cn import urllib2 import re import threading import time import MySQLdb rawProxyList = [] checkedProxyList = [] #抓取代理网站 targets = [] for i in xrange(1,42): target = r"http://www.proxy.com.ru/list_%d.html" % i targets.append(target) #抓取代理服务器正则 p = re.compile(r'''
Sep 16, 2021 5 min read
Page 1 of 1
>°))))彡 Fisherman © 2025
  • Linkedin
  • Facebook
  • ProShop
Powered by Ghost