Skip to content

Instantly share code, notes, and snippets.

@feilaoda
feilaoda / marktodo规范
Created January 17, 2013 02:52
marktodo规范
Marktodo: A syntax for TODO lists
#any.do#
=project name
-todo list
[-] todo item A
[=] doing item B
[+] done item C
+done list
[+] done item a
@feilaoda
feilaoda / gist:4043549
Created November 9, 2012 03:35 — forked from cuimuxi/gist:3719535
gevent crawler test
from gcrawler import GCrawler, Downloader
import unittest
import urllib2
import logging
import traceback
from datetime import datetime
import re
logging.basicConfig(level=logging.DEBUG)
@feilaoda
feilaoda / gist:4043548
Created November 9, 2012 03:35 — forked from cuimuxi/gist:3719516
gevent crawler
import gevent
from gevent import monkey, queue
monkey.patch_all()
import urllib2
from time import sleep
import traceback
import logging
@feilaoda
feilaoda / gist:3984714
Created October 31, 2012 03:59 — forked from observerss/gist:3798922
Google Keyword Tool Scraper(casperjs version)
// requires
var utils = require('utils');
var casper = require('casper').create()
var casper = require('casper').create({
verbose: true,
logLevel: "debug"
});
// setup globals
var email = casper.cli.options['email'] || 'REPLACE THIS EMAIL';