Skip to content

Instantly share code, notes, and snippets.

View maltoze's full-sized avatar

maltoze maltoze

  • China
  • 03:18 (UTC +08:00)
View GitHub Profile
@maltoze
maltoze / vimrc
Created May 29, 2018 06:26 — forked from apelif/vimrc
set nocompatible " be iMproved, required
filetype off " required
" git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/vundle/
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
# -*- coding: utf-8 -*-
'''
抓取豆瓣北京租房小组中匹配的主题并发邮件通知
配合crontab使用
'''
import logging
import requests
import smtplib
import re
import time
from urllib import request, parse
from threading import Timer
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36',
}