Skip to content

Instantly share code, notes, and snippets.

@lisongx
lisongx / gist:1517515
Created December 24, 2011 15:04
download the hacker monthly issue
from fabric.api import local, run
from pyquery import PyQuery as pq
BASE_URL = "http://hackermonthly.com/"
HACKER_URL = "http://hackermonthly.com/issues.html"
d = pq(url=HACKER_URL)
issue_list = d("#issues li a")
def get_issue(inex, node):
d = pq(node)