摘要: #Author:Mini#!/usr/bin/env pythonimport urllib.requestimport reimport urllib.errorheaders=("User-Agent","Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv: 阅读全文
posted @ 2017-10-03 15:48 兔子的尾巴_Mini 阅读(237) 评论(0) 推荐(0)
摘要: #Author:Mini#!/usr/bin/env pythonimport urllib.requestimport urllib.errorimport redata=urllib.request.urlopen("http://news.sina.com.cn/").read()data1= 阅读全文
posted @ 2017-10-03 00:15 兔子的尾巴_Mini 阅读(132) 评论(0) 推荐(0)
摘要: #Author:Mini#!/usr/bin/env pythonimport urllib.requesturl1="http://blog.sina.com.cn/s/blog_470071c90102x8jc.html"headers=("User-Agent","Mozilla/5.0 (W 阅读全文
posted @ 2017-10-02 17:14 兔子的尾巴_Mini 阅读(137) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-10-02 16:46 兔子的尾巴_Mini 阅读(133) 评论(0) 推荐(0)
摘要: http request:**************************************************************get:****.com/sss?aa=bb&cc=dd ("aa"=key;"bb"=value) #Author:Mini#!/usr/bin/e 阅读全文
posted @ 2017-10-02 16:22 兔子的尾巴_Mini 阅读(204) 评论(0) 推荐(0)
摘要: urllib.request.rechieve("www",filename="") urllib.request.cleanup() a=urllib.request.urlopen() a.info() a.getcode() a.geturl() *********************** 阅读全文
posted @ 2017-10-02 13:10 兔子的尾巴_Mini 阅读(239) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-09-30 20:43 兔子的尾巴_Mini 阅读(497) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-09-28 09:16 兔子的尾巴_Mini 阅读(157) 评论(0) 推荐(0)
摘要: 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 阅读全文
posted @ 2017-09-28 09:13 兔子的尾巴_Mini 阅读(167) 评论(0) 推荐(0)
摘要: terminal: # $ su ($ #) su - username (# $) useradd (#) passwd(#) pwd ls(list) ls -l(ll) ls -t(time) ls -a(all) "." the list now ".." the father list ( 阅读全文
posted @ 2017-09-26 11:40 兔子的尾巴_Mini 阅读(164) 评论(0) 推荐(0)