Created
December 7, 2017 10:15
-
-
Save vim13/2a1fe6e1f693909d5aa99129fb6f3d38 to your computer and use it in GitHub Desktop.
ハッピー宝くじ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>チーム(ヽ´ん`)年末ハッピー宝くじ【フォロー&RTキャンペーン】 特設ページ</title> | |
<link rel="icon" href="favicon.png" sizes="16x16" type="image/png"> | |
<link rel="stylesheet" href="style.css" type="text/css"> | |
</head> | |
<body> | |
<div class='content'> | |
<p><h1>チーム(ヽ´ん`)年末ハッピー宝くじ【フォロー&RTキャンペーン】 特設ページ</h1></p> | |
</div> | |
<div class='content'> | |
<p>抽選ライブビューイング 12月23日 時〜<br /><iframe src="https://player.twitch.tv/?channel=sszkdwf" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620"></iframe><br /><a href="https://www.twitch.tv/sszkdwf?tt_content=text_link&tt_medium=live_embed" style="font-weight:normal; font-size:10px; text-decoration:underline;">sszkdwfのライブビデオをwww.twitch.tvから視聴する</a></p> | |
</div> | |
<div class='content'> | |
<p>自分の番号を確認</p> | |
<form action="search.cgi" method="get" target="_blank"> | |
<p>あなたのTwitterID @ <input type="text" name="your_name" size="12" /></p> | |
<p><input type="submit" value="送信" /><p> | |
</form> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding:utf-8 -*- | |
import cgi | |
form = cgi.FieldStorage() | |
if form.has_key("your_name"): | |
form['your_name'].value | |
print "Location: https://twitter.com/search?f=tweets&q=%22%40" + form['your_name'].value + "%20%E3%81%82%E3%81%AA%E3%81%9F%E3%81%AE%E7%95%AA%E5%8F%B7%E3%81%AF%E3%80%8C%22&src=typd\n\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment