Skip to content

Instantly share code, notes, and snippets.

<html>
<head>
<script src="http://www.aiisen.com/commons/scripts/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$.getJSON("http://daimajia.duapp.com/baidu/?url=http://pan.baidu.com/s/1bn7tXHd&jsoncallback=?",
{www_url:"daimajia.duapp.com"},
function(json) {
document.write((json[0].download));
});
</script>
<script src="http://www.aiisen.com/commons/scripts/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
$.getJSON("http://www.aiisen.com/CsAjax.do?method=getCrossJson&jsoncallback=?",
{www_url:"www.aiisen.com"},
function(json) {
alert(json[0].www_url);
alert(json[0].www_name);
alert(json[0].items[0].p_name);
});
</script>
soup = BeautifulSoup(urllib2.urlopen("http://zhuti.xiaomi.com/compound?page=1&sort=New").read())
for thumb in soup.findAll("div", {"class" : "thumb"}):
print thumb
@xia0chun
xia0chun / 301.py
Last active January 1, 2016 18:09
# _*_ coding:utf-8 _*_
import urllib2
import os
#更改系统默认编码为UTF-8
import sys
reload(sys)
sys.setdefaultencoding('utf-8')
url = "http://zhuti.xiaomi.com/download/8bc190d9-c286-4a95-b38f-99a2a052e7c4"