Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

zhkuo zhkuo24

🎯
Focusing
View GitHub Profile
@zhkuo24
zhkuo24 / getweather.py
Last active Aug 29, 2015
获取天气预报信息
View getweather.py
# -*- coding utf-8 -*-
# 获取天气预报信息
import urllib.request as request
import re
import pdb
def gethtml(url):
html = request.urlopen(url).read().decode()
return html
def getweather(html):
try:
@zhkuo24
zhkuo24 / getimag.py
Last active Jun 14, 2016
从百度贴吧页面下载图片
View getimag.py
# -*- coding: utf-8 -*-
import re #正则表达式库
import urllib.request
import urllib
import os
import pdb
def getHtml(url):
#req = urllib.request.Request(url)
page = urllib.request.urlopen(url)
html = page.read()
@zhkuo24
zhkuo24 / wiki.md
Last active Aug 29, 2015
用vim+vimwiki+GitHub构建个人wiki的过程
View wiki.md

搭建个人wiki

  • 安装vim和vimwiki插件。
  • 首先安装vim。
  • 安装vimwiki插件。修改vimrc配置文件。
    {{{ set nocompatible filetype plugin on
    syntax on }}}