随笔分类 - Python
摘要:#Author:Mini#!/usr/bin/env pythonimport urllib.requestimport reimport urllib.errorimport threadingheaders=("User-Agent","Mozilla/5.0 (Windows NT 10.0;
阅读全文
摘要:#Author:Mini#!/usr/bin/env pythonimport reimport urllib.requestimport timeimport urllib.errordef use_proxy(proxy_addr,url): try: req=urllib.request.Re
阅读全文
摘要:#Author:Mini#!/usr/bin/env pythonimport urllib.requestimport reimport urllib.errorheaders=("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:
阅读全文
摘要:#Author:Mini#!/usr/bin/env pythonimport urllib.requestimport reimport urllib.errorheaders=("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:
阅读全文
摘要:#Author:Mini#!/usr/bin/env pythonimport urllib.requestimport urllib.errorimport redata=urllib.request.urlopen("http://news.sina.com.cn/").read()data1=
阅读全文
摘要:#Author:Mini#!/usr/bin/env pythonimport urllib.requesturl1="http://blog.sina.com.cn/s/blog_470071c90102x8jc.html"headers=("User-Agent","Mozilla/5.0 (W
阅读全文
摘要:301 moved permanently 302 found 303 not modified 400 bad request 401 unauthorized 403 forbidden 404 not found 500 internal server error 501 not implem
阅读全文
摘要:http request:**************************************************************get:****.com/sss?aa=bb&cc=dd ("aa"=key;"bb"=value) #Author:Mini#!/usr/bin/e
阅读全文
摘要:urllib.request.rechieve("www",filename="") urllib.request.cleanup() a=urllib.request.urlopen() a.info() a.getcode() a.geturl() ***********************
阅读全文
摘要:common web craling: scr url server url database server ... read got info achieve goal spective web craling scr url(specific) web craling 1 url save fi
阅读全文
摘要:uname uname -r cat /proc/cupinfo cat /pro/meminfo data cal 2017 # data -s 2017-09-27 #data -s 09:10:30 df -lh du -sh dir #fdisk -l (conpare disk) # fs
阅读全文
摘要:RPM #rpm -qa|grep java(cat app) #rpm -e --nodeps xxxxx(remote) #rpm -ivh xxx.rpm(unconnect the web and set up app) #(unzip) unzip **.zip zip yy.zip fi
阅读全文
摘要:terminal: # $ su ($ #) su - username (# $) useradd (#) passwd(#) pwd ls(list) ls -l(ll) ls -t(time) ls -a(all) "." the list now ".." the father list (
阅读全文