By Allen Wirfs-Brock
Introduction
# -*- coding: utf-8 -*- | |
import urllib | |
def get_kenmo(): | |
response = urllib.urlopen('http://engawa.2ch.net/poverty/subject.txt') | |
html = unicode(response.read(), "cp932", 'ignore').encode("utf-8") | |
for line in html.split("\n"): | |
if line != "": | |
print(line.split("<>", 2)[1]) |
犬より猫が好きですか? 1.はい,0.いいえ :1 | |
理系ですか? 1.はい,0.いいえ :1 | |
パンよりご飯が好きですか? 1.はい,0.いいえ :1 | |
★あなたは男ですね?(確率52.50%) 1.はい,0.いいえ : |
$ sudo pip install feedparser |
$ sudo pip install httplib2 |
1,000 円札:1枚 | |
100 円玉:3枚 | |
10 円玉:1枚 | |
1 円玉:1枚 |
<html> | |
<head> | |
</head> | |
<body style=""> | |
<p> </p> | |
<p> | |
<meta charset="UTF-8"> | |
<title>要約くん</title> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" /> |
<html> | |
<head> | |
</head> | |
<body style=""> | |
<p> </p> | |
<p> | |
<meta charset="UTF-8"></meta> | |
<title>比較くん</title> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0/jquery.mobile-1.1.0.min.css" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script> |
gox -output "bin/{{.OS}}_{{.Arch}}/{{.Dir}}" |
find . \! -name "*.zip" -type d -exec zip -r -j {}.zip {} \; -exec rm -R -d {} \; | |
By Allen Wirfs-Brock
Introduction