Skip to content

Instantly share code, notes, and snippets.

@jeswang-gist
jeswang-gist / gist:2373487
Created April 13, 2012 03:43 — forked from Jeswang/getMV.py
python: Download MV from 音悦台
# coding=utf-8
from BeautifulSoup import *
import sys, httplib
import re
import os
import urllib,urllib2
def getMVName(url):
c=urllib2.urlopen(url)
@jeswang-gist
jeswang-gist / gist:2373486
Created April 13, 2012 03:43 — forked from Jeswang/tianyabook.py
python: download tianyabook to TXT
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
from BeautifulSoup import *
import urllib2
import codecs
def urlToTxt(url):
bookUrl = url
suffix = "html"