Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Site updated at 2012-06-19 07:40:11 UTC

  • Loading branch information...
commit 2e946862a50a990a633381381f3f5fcd29c1e639 1 parent 082bea8
@wongyouth authored
View
10 atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Wongyouth's Blog]]></title>
<link href="http://wongyouth.github.com/atom.xml" rel="self"/>
<link href="http://wongyouth.github.com/"/>
- <updated>2012-06-19T10:18:14+08:00</updated>
+ <updated>2012-06-19T15:39:48+08:00</updated>
<id>http://wongyouth.github.com/</id>
<author>
<name><![CDATA[Wongyouth]]></name>
@@ -14,11 +14,17 @@
<entry>
- <title type="html"><![CDATA[tmall砸金蛋活动脚本]]></title>
+ <title type="html"><![CDATA[tmall砸金蛋活动]]></title>
<link href="http://wongyouth.github.com/blog/2012/06/18/tmall-za-jin-dan/"/>
<updated>2012-06-18T19:32:00+08:00</updated>
<id>http://wongyouth.github.com/blog/2012/06/18/tmall-za-jin-dan</id>
<content type="html"><![CDATA[<p>今天淘宝在砸猫猫,砸金蛋对抗京东店庆日。砸金蛋让人砸到手酸啊。
+于是乎写个脚本砸&#8230;</p>
+
+<!-- more -->
+
+
+<p>今天淘宝在砸猫猫,砸金蛋对抗京东店庆日。砸金蛋让人砸到手酸啊。
于是就写个脚本砸,虽然机会太微妙,不过看着自动砸挺开心哈。</p>
<p>运行环境 ruby</p>
View
18 blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/index.html
@@ -228,7 +228,19 @@ <h1 class="entry-title">用octopress来写博客并发布到Github上</h1>
<div class="sharing">
- <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://wongyouth.github.com/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/" data-via="" data-counturl="http://wongyouth.github.com/blog/2012/04/21/install-octopress-to-write-blogs-and-deploy-on-github-dot-com/" >Tweet</a>
+ <!-- JiaThis Button BEGIN -->
+ <div id="ckepop">
+ <span class="jiathis_txt">分享到:</span>
+ <a class="jiathis_button_icons_1"></a>
+ <a class="jiathis_button_icons_2"></a>
+ <a class="jiathis_button_icons_3"></a>
+ <a class="jiathis_button_icons_4"></a>
+ <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
+ <a class="jiathis_counter_style"></a>
+ <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1340085332390649" charset="utf-8"></script>
+ </div>
+ <!-- JiaThis Button END -->
+
@@ -261,7 +273,7 @@ <h1 class="entry-title">用octopress来写博客并发布到Github上</h1>
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -315,8 +327,6 @@ <h1 class="entry-title">用octopress来写博客并发布到Github上</h1>
-
-
</aside>
View
18 blog/2012/04/21/install-ruby-environment-on-ubuntu/index.html
@@ -219,7 +219,19 @@ <h1 class="entry-title">Ubuntu下安装ruby开发环境</h1>
<div class="sharing">
- <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://wongyouth.github.com/blog/2012/04/21/install-ruby-environment-on-ubuntu/" data-via="" data-counturl="http://wongyouth.github.com/blog/2012/04/21/install-ruby-environment-on-ubuntu/" >Tweet</a>
+ <!-- JiaThis Button BEGIN -->
+ <div id="ckepop">
+ <span class="jiathis_txt">分享到:</span>
+ <a class="jiathis_button_icons_1"></a>
+ <a class="jiathis_button_icons_2"></a>
+ <a class="jiathis_button_icons_3"></a>
+ <a class="jiathis_button_icons_4"></a>
+ <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
+ <a class="jiathis_counter_style"></a>
+ <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1340085332390649" charset="utf-8"></script>
+ </div>
+ <!-- JiaThis Button END -->
+
@@ -250,7 +262,7 @@ <h1 class="entry-title">Ubuntu下安装ruby开发环境</h1>
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -304,8 +316,6 @@ <h1 class="entry-title">Ubuntu下安装ruby开发环境</h1>
-
-
</aside>
View
20 blog/2012/04/26/git-branch/index.html
@@ -177,7 +177,19 @@ <h1 class="entry-title">Git分支常用操作</h1>
<div class="sharing">
- <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://wongyouth.github.com/blog/2012/04/26/git-branch/" data-via="" data-counturl="http://wongyouth.github.com/blog/2012/04/26/git-branch/" >Tweet</a>
+ <!-- JiaThis Button BEGIN -->
+ <div id="ckepop">
+ <span class="jiathis_txt">分享到:</span>
+ <a class="jiathis_button_icons_1"></a>
+ <a class="jiathis_button_icons_2"></a>
+ <a class="jiathis_button_icons_3"></a>
+ <a class="jiathis_button_icons_4"></a>
+ <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
+ <a class="jiathis_counter_style"></a>
+ <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1340085332390649" charset="utf-8"></script>
+ </div>
+ <!-- JiaThis Button END -->
+
@@ -189,7 +201,7 @@ <h1 class="entry-title">Git分支常用操作</h1>
<a class="basic-alignment left" href="/blog/2012/04/26/git-tagging/" title="Previous Post: Git标签常用操作">&laquo; Git标签常用操作</a>
- <a class="basic-alignment right" href="/blog/2012/06/18/tmall-za-jin-dan/" title="Next Post: tmall砸金蛋活动脚本">tmall砸金蛋活动脚本 &raquo;</a>
+ <a class="basic-alignment right" href="/blog/2012/06/18/tmall-za-jin-dan/" title="Next Post: tmall砸金蛋活动">tmall砸金蛋活动 &raquo;</a>
</p>
</footer>
@@ -210,7 +222,7 @@ <h1 class="entry-title">Git分支常用操作</h1>
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -264,8 +276,6 @@ <h1 class="entry-title">Git分支常用操作</h1>
-
-
</aside>
View
18 blog/2012/04/26/git-tagging/index.html
@@ -222,7 +222,19 @@ <h1 class="entry-title">Git标签常用操作</h1>
<div class="sharing">
- <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://wongyouth.github.com/blog/2012/04/26/git-tagging/" data-via="" data-counturl="http://wongyouth.github.com/blog/2012/04/26/git-tagging/" >Tweet</a>
+ <!-- JiaThis Button BEGIN -->
+ <div id="ckepop">
+ <span class="jiathis_txt">分享到:</span>
+ <a class="jiathis_button_icons_1"></a>
+ <a class="jiathis_button_icons_2"></a>
+ <a class="jiathis_button_icons_3"></a>
+ <a class="jiathis_button_icons_4"></a>
+ <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
+ <a class="jiathis_counter_style"></a>
+ <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1340085332390649" charset="utf-8"></script>
+ </div>
+ <!-- JiaThis Button END -->
+
@@ -255,7 +267,7 @@ <h1 class="entry-title">Git标签常用操作</h1>
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -309,8 +321,6 @@ <h1 class="entry-title">Git标签常用操作</h1>
-
-
</aside>
View
35 blog/2012/06/18/tmall-za-jin-dan/index.html
@@ -5,16 +5,13 @@
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
<meta charset="utf-8">
- <title>tmall砸金蛋活动脚本 - Wongyouth's Blog</title>
+ <title>tmall砸金蛋活动 - Wongyouth's Blog</title>
<meta name="author" content="Wongyouth">
<meta name="description" content="今天淘宝在砸猫猫,砸金蛋对抗京东店庆日。砸金蛋让人砸到手酸啊。
-于是就写个脚本砸,虽然机会太微妙,不过看着自动砸挺开心哈。 运行环境 ruby gem install capybara # install capybara
-ruby zha.rb # zha.rb脚本 zha.rb1
-2
-3
-4 &hellip;">
+于是乎写个脚本砸&#8230; 今天淘宝在砸猫猫,砸金蛋对抗京东店庆日。砸金蛋让人砸到手酸啊。
+于是就写个脚本砸,虽然机会太微妙,不过看着自动砸挺开心哈。 运行环境 ruby gem install capybara # &hellip;">
<!-- http://t.co/dKP3o1e -->
@@ -72,7 +69,7 @@
<header>
- <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
+ <h1 class="entry-title">Tmall砸金蛋活动</h1>
<p class="meta">
@@ -98,6 +95,12 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
<div class="entry-content"><p>今天淘宝在砸猫猫,砸金蛋对抗京东店庆日。砸金蛋让人砸到手酸啊。
+于是乎写个脚本砸&#8230;</p>
+
+<!-- more -->
+
+
+<p>今天淘宝在砸猫猫,砸金蛋对抗京东店庆日。砸金蛋让人砸到手酸啊。
于是就写个脚本砸,虽然机会太微妙,不过看着自动砸挺开心哈。</p>
<p>运行环境 ruby</p>
@@ -268,7 +271,19 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
<div class="sharing">
- <a href="http://twitter.com/share" class="twitter-share-button" data-url="http://wongyouth.github.com/blog/2012/06/18/tmall-za-jin-dan/" data-via="" data-counturl="http://wongyouth.github.com/blog/2012/06/18/tmall-za-jin-dan/" >Tweet</a>
+ <!-- JiaThis Button BEGIN -->
+ <div id="ckepop">
+ <span class="jiathis_txt">分享到:</span>
+ <a class="jiathis_button_icons_1"></a>
+ <a class="jiathis_button_icons_2"></a>
+ <a class="jiathis_button_icons_3"></a>
+ <a class="jiathis_button_icons_4"></a>
+ <a href="http://www.jiathis.com/share" class="jiathis jiathis_txt jtico jtico_jiathis" target="_blank"></a>
+ <a class="jiathis_counter_style"></a>
+ <script type="text/javascript" src="http://v3.jiathis.com/code/jia.js?uid=1340085332390649" charset="utf-8"></script>
+ </div>
+ <!-- JiaThis Button END -->
+
@@ -299,7 +314,7 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -353,8 +368,6 @@ <h1 class="entry-title">Tmall砸金蛋活动脚本</h1>
-
-
</aside>
View
8 blog/archives/index.html
@@ -9,7 +9,7 @@
<meta name="author" content="Wongyouth">
- <meta name="description" content="Blog Archive 2012 tmall砸金蛋活动脚本
+ <meta name="description" content="Blog Archive 2012 tmall砸金蛋活动
Jun 18 2012 posted in ruby Git分支常用操作
Apr 26 2012 posted in git Git标签常用操作
Apr 26 2012 posted in git &hellip;">
@@ -82,7 +82,7 @@ <h1 class="entry-title">Blog Archive</h1>
<article>
-<h1><a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a></h1>
+<h1><a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a></h1>
<time datetime="2012-06-18T19:32:00+08:00" pubdate><span class='month'>Jun</span> <span class='day'>18</span> <span class='year'>2012</span></time>
<footer>
@@ -162,7 +162,7 @@ <h1 class="entry-title">Blog Archive</h1>
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -216,8 +216,6 @@ <h1 class="entry-title">Blog Archive</h1>
-
-
</aside>
View
2  blog/categories/blog/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: blog | Wongyouth's Blog]]></title>
<link href="http://wongyouth.github.com/blog/categories/blog/atom.xml" rel="self"/>
<link href="http://wongyouth.github.com/"/>
- <updated>2012-06-19T10:18:14+08:00</updated>
+ <updated>2012-06-19T15:39:48+08:00</updated>
<id>http://wongyouth.github.com/</id>
<author>
<name><![CDATA[Wongyouth]]></name>
View
4 blog/categories/blog/index.html
@@ -103,7 +103,7 @@ <h1 class="entry-title">Category: Blog</h1>
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -157,8 +157,6 @@ <h1 class="entry-title">Category: Blog</h1>
-
-
</aside>
View
2  blog/categories/git/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: git | Wongyouth's Blog]]></title>
<link href="http://wongyouth.github.com/blog/categories/git/atom.xml" rel="self"/>
<link href="http://wongyouth.github.com/"/>
- <updated>2012-06-19T10:18:14+08:00</updated>
+ <updated>2012-06-19T15:39:48+08:00</updated>
<id>http://wongyouth.github.com/</id>
<author>
<name><![CDATA[Wongyouth]]></name>
View
4 blog/categories/git/index.html
@@ -117,7 +117,7 @@ <h1 class="entry-title">Category: Git</h1>
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -171,8 +171,6 @@ <h1 class="entry-title">Category: Git</h1>
-
-
</aside>
View
2  blog/categories/github/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: github | Wongyouth's Blog]]></title>
<link href="http://wongyouth.github.com/blog/categories/github/atom.xml" rel="self"/>
<link href="http://wongyouth.github.com/"/>
- <updated>2012-06-19T10:18:14+08:00</updated>
+ <updated>2012-06-19T15:39:48+08:00</updated>
<id>http://wongyouth.github.com/</id>
<author>
<name><![CDATA[Wongyouth]]></name>
View
4 blog/categories/github/index.html
@@ -103,7 +103,7 @@ <h1 class="entry-title">Category: Github</h1>
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -157,8 +157,6 @@ <h1 class="entry-title">Category: Github</h1>
-
-
</aside>
View
10 blog/categories/ruby/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: ruby | Wongyouth's Blog]]></title>
<link href="http://wongyouth.github.com/blog/categories/ruby/atom.xml" rel="self"/>
<link href="http://wongyouth.github.com/"/>
- <updated>2012-06-19T10:18:14+08:00</updated>
+ <updated>2012-06-19T15:39:48+08:00</updated>
<id>http://wongyouth.github.com/</id>
<author>
<name><![CDATA[Wongyouth]]></name>
@@ -14,11 +14,17 @@
<entry>
- <title type="html"><![CDATA[tmall砸金蛋活动脚本]]></title>
+ <title type="html"><![CDATA[tmall砸金蛋活动]]></title>
<link href="http://wongyouth.github.com/blog/2012/06/18/tmall-za-jin-dan/"/>
<updated>2012-06-18T19:32:00+08:00</updated>
<id>http://wongyouth.github.com/blog/2012/06/18/tmall-za-jin-dan</id>
<content type="html"><![CDATA[<p>今天淘宝在砸猫猫,砸金蛋对抗京东店庆日。砸金蛋让人砸到手酸啊。
+于是乎写个脚本砸...</p>
+
+<!-- more -->
+
+
+<p>今天淘宝在砸猫猫,砸金蛋对抗京东店庆日。砸金蛋让人砸到手酸啊。
于是就写个脚本砸,虽然机会太微妙,不过看着自动砸挺开心哈。</p>
<p>运行环境 ruby</p>
View
6 blog/categories/ruby/index.html
@@ -79,7 +79,7 @@ <h1 class="entry-title">Category: Ruby</h1>
<article>
-<h1><a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a></h1>
+<h1><a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a></h1>
<time datetime="2012-06-18T19:32:00+08:00" pubdate><span class='month'>Jun</span> <span class='day'>18</span> <span class='year'>2012</span></time>
<footer>
@@ -117,7 +117,7 @@ <h1 class="entry-title">Category: Ruby</h1>
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -171,8 +171,6 @@ <h1 class="entry-title">Category: Ruby</h1>
-
-
</aside>
View
2  blog/categories/ubuntu/atom.xml
@@ -4,7 +4,7 @@
<title><![CDATA[Category: ubuntu | Wongyouth's Blog]]></title>
<link href="http://wongyouth.github.com/blog/categories/ubuntu/atom.xml" rel="self"/>
<link href="http://wongyouth.github.com/"/>
- <updated>2012-06-19T10:18:14+08:00</updated>
+ <updated>2012-06-19T15:39:48+08:00</updated>
<id>http://wongyouth.github.com/</id>
<author>
<name><![CDATA[Wongyouth]]></name>
View
4 blog/categories/ubuntu/index.html
@@ -103,7 +103,7 @@ <h1 class="entry-title">Category: Ubuntu</h1>
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -157,8 +157,6 @@ <h1 class="entry-title">Category: Ubuntu</h1>
-
-
</aside>
View
150 index.html
@@ -10,11 +10,7 @@
<meta name="description" content="今天淘宝在砸猫猫,砸金蛋对抗京东店庆日。砸金蛋让人砸到手酸啊。
-于是就写个脚本砸,虽然机会太微妙,不过看着自动砸挺开心哈。 运行环境 ruby gem install capybara # install capybara
-ruby zha.rb # zha.rb脚本 zha.rb1
-2
-3
-4 &hellip;">
+于是乎写个脚本砸&#8230; ">
<!-- http://t.co/dKP3o1e -->
@@ -75,7 +71,7 @@
<header>
- <h1 class="entry-title"><a href="/blog/2012/06/18/tmall-za-jin-dan/">Tmall砸金蛋活动脚本</a></h1>
+ <h1 class="entry-title"><a href="/blog/2012/06/18/tmall-za-jin-dan/">Tmall砸金蛋活动</a></h1>
<p class="meta">
@@ -101,143 +97,15 @@ <h1 class="entry-title"><a href="/blog/2012/06/18/tmall-za-jin-dan/">Tmall砸金
<div class="entry-content"><p>今天淘宝在砸猫猫,砸金蛋对抗京东店庆日。砸金蛋让人砸到手酸啊。
-于是就写个脚本砸,虽然机会太微妙,不过看着自动砸挺开心哈。</p>
-
-<p>运行环境 ruby</p>
-
-<pre><code>gem install capybara # install capybara
-ruby zha.rb # zha.rb脚本
-</code></pre>
-
-<figure class='code'><figcaption><span>zha.rb</span></figcaption><div class="highlight"><table><tr><td class="gutter"><pre class="line-numbers"><span class='line-number'>1</span>
-<span class='line-number'>2</span>
-<span class='line-number'>3</span>
-<span class='line-number'>4</span>
-<span class='line-number'>5</span>
-<span class='line-number'>6</span>
-<span class='line-number'>7</span>
-<span class='line-number'>8</span>
-<span class='line-number'>9</span>
-<span class='line-number'>10</span>
-<span class='line-number'>11</span>
-<span class='line-number'>12</span>
-<span class='line-number'>13</span>
-<span class='line-number'>14</span>
-<span class='line-number'>15</span>
-<span class='line-number'>16</span>
-<span class='line-number'>17</span>
-<span class='line-number'>18</span>
-<span class='line-number'>19</span>
-<span class='line-number'>20</span>
-<span class='line-number'>21</span>
-<span class='line-number'>22</span>
-<span class='line-number'>23</span>
-<span class='line-number'>24</span>
-<span class='line-number'>25</span>
-<span class='line-number'>26</span>
-<span class='line-number'>27</span>
-<span class='line-number'>28</span>
-<span class='line-number'>29</span>
-<span class='line-number'>30</span>
-<span class='line-number'>31</span>
-<span class='line-number'>32</span>
-<span class='line-number'>33</span>
-<span class='line-number'>34</span>
-<span class='line-number'>35</span>
-<span class='line-number'>36</span>
-<span class='line-number'>37</span>
-<span class='line-number'>38</span>
-<span class='line-number'>39</span>
-<span class='line-number'>40</span>
-<span class='line-number'>41</span>
-<span class='line-number'>42</span>
-<span class='line-number'>43</span>
-<span class='line-number'>44</span>
-<span class='line-number'>45</span>
-<span class='line-number'>46</span>
-<span class='line-number'>47</span>
-<span class='line-number'>48</span>
-<span class='line-number'>49</span>
-<span class='line-number'>50</span>
-<span class='line-number'>51</span>
-<span class='line-number'>52</span>
-<span class='line-number'>53</span>
-<span class='line-number'>54</span>
-<span class='line-number'>55</span>
-<span class='line-number'>56</span>
-<span class='line-number'>57</span>
-<span class='line-number'>58</span>
-<span class='line-number'>59</span>
-<span class='line-number'>60</span>
-<span class='line-number'>61</span>
-</pre></td><td class='code'><pre><code class='ruby'><span class='line'><span class="c1"># encoding: utf-8</span>
-</span><span class='line'><span class="c1">#</span>
-</span><span class='line'><span class="c1"># 淘宝砸金蛋脚本</span>
-</span><span class='line'><span class="c1"># 当前目录建立 tmall 文件放入帐号:密码,分号隔开</span>
-</span><span class='line'><span class="c1">#</span>
-</span><span class='line'><span class="c1"># mailto wongyouth@gmail.com</span>
-</span><span class='line'><span class="c1"># blog http://wongyouth.github.com</span>
-</span><span class='line'>
-</span><span class='line'><span class="nb">require</span> <span class="s1">&#39;rubygems&#39;</span>
-</span><span class='line'><span class="nb">require</span> <span class="s1">&#39;capybara&#39;</span>
-</span><span class='line'><span class="nb">require</span> <span class="s1">&#39;capybara/dsl&#39;</span>
-</span><span class='line'><span class="kp">include</span> <span class="no">Capybara</span><span class="o">::</span><span class="no">DSL</span>
-</span><span class='line'>
-</span><span class='line'><span class="no">Capybara</span><span class="o">.</span><span class="n">default_driver</span> <span class="o">=</span> <span class="ss">:selenium</span>
-</span><span class='line'><span class="no">Capybara</span><span class="o">.</span><span class="n">app_host</span> <span class="o">=</span> <span class="s1">&#39;http://www.tmall.com&#39;</span>
-</span><span class='line'>
-</span><span class='line'><span class="k">def</span> <span class="nf">login</span>
-</span><span class='line'> <span class="n">username</span><span class="p">,</span> <span class="n">password</span> <span class="o">=</span> <span class="no">IO</span><span class="o">.</span><span class="n">read</span><span class="p">(</span><span class="s1">&#39;tmall&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">split</span><span class="p">(</span><span class="s1">&#39;:&#39;</span><span class="p">)</span>
-</span><span class='line'>
-</span><span class='line'> <span class="n">visit</span><span class="p">(</span><span class="s1">&#39;http://login.tmall.com&#39;</span><span class="p">)</span>
-</span><span class='line'>
-</span><span class='line'> <span class="n">setup_frame</span><span class="p">(</span><span class="s1">&#39;loginframe&#39;</span><span class="p">)</span>
-</span><span class='line'> <span class="n">within_frame</span><span class="p">(</span><span class="s1">&#39;loginframe&#39;</span><span class="p">)</span> <span class="k">do</span>
-</span><span class='line'> <span class="n">fill_in</span> <span class="s1">&#39;TPL_username&#39;</span><span class="p">,</span> <span class="ss">:with</span> <span class="o">=&gt;</span> <span class="n">username</span>
-</span><span class='line'> <span class="n">fill_in</span> <span class="s1">&#39;TPL_password&#39;</span><span class="p">,</span> <span class="ss">:with</span> <span class="o">=&gt;</span> <span class="n">password</span>
-</span><span class='line'> <span class="n">click_button</span> <span class="s1">&#39;登录&#39;</span>
-</span><span class='line'> <span class="k">end</span>
-</span><span class='line'><span class="k">rescue</span> <span class="o">=&gt;</span> <span class="n">e</span>
-</span><span class='line'> <span class="nb">puts</span> <span class="n">e</span>
-</span><span class='line'><span class="k">end</span>
-</span><span class='line'>
-</span><span class='line'><span class="k">def</span> <span class="nf">setup_frame</span><span class="p">(</span><span class="nb">name</span><span class="p">)</span>
-</span><span class='line'> <span class="n">setup_jquery</span>
-</span><span class='line'> <span class="n">page</span><span class="o">.</span><span class="n">execute_script</span> <span class="sx">%Q{</span>
-</span><span class='line'><span class="sx"> jQuery(&#39;iframe&#39;).attr(&#39;name&#39;, &#39;</span><span class="si">#{</span><span class="nb">name</span><span class="si">}</span><span class="sx">&#39;);</span>
-</span><span class='line'><span class="sx"> }</span>
-</span><span class='line'><span class="k">end</span>
-</span><span class='line'>
-</span><span class='line'><span class="k">def</span> <span class="nf">setup_jquery</span>
-</span><span class='line'> <span class="n">page</span><span class="o">.</span><span class="n">execute_script</span> <span class="sx">%Q{</span>
-</span><span class='line'><span class="sx"> var jq = document.createElement(&#39;script&#39;);</span>
-</span><span class='line'><span class="sx"> jq.src = &quot;http://code.jquery.com/jquery-latest.min.js&quot;;</span>
-</span><span class='line'><span class="sx"> document.getElementsByTagName(&#39;head&#39;)[0].appendChild(jq);</span>
-</span><span class='line'><span class="sx"> }</span>
-</span><span class='line'> <span class="c1"># wait to load jquery</span>
-</span><span class='line'> <span class="nb">sleep</span> <span class="mi">2</span>
-</span><span class='line'><span class="k">end</span>
-</span><span class='line'>
-</span><span class='line'><span class="k">def</span> <span class="nf">zha</span>
-</span><span class='line'> <span class="n">visit</span><span class="p">(</span><span class="s1">&#39;/&#39;</span><span class="p">)</span>
-</span><span class='line'> <span class="mi">10000</span><span class="o">.</span><span class="n">downto</span><span class="p">(</span><span class="mi">1</span><span class="p">)</span><span class="o">.</span><span class="n">each</span> <span class="k">do</span>
-</span><span class='line'> <span class="n">find</span><span class="p">(</span><span class="s1">&#39;#J_Vol_Brick_Btn&#39;</span><span class="p">)</span><span class="o">.</span><span class="n">click</span>
-</span><span class='line'> <span class="nb">sleep</span> <span class="mi">1</span>
-</span><span class='line'> <span class="k">end</span>
-</span><span class='line'><span class="k">rescue</span>
-</span><span class='line'> <span class="nb">sleep</span> <span class="mi">5</span>
-</span><span class='line'> <span class="k">retry</span>
-</span><span class='line'><span class="k">end</span>
-</span><span class='line'>
-</span><span class='line'><span class="n">login</span>
-</span><span class='line'><span class="n">zha</span>
-</span></code></pre></td></tr></table></div></figure>
-
-
+于是乎写个脚本砸&#8230;</p>
</div>
+ <footer>
+ <a rel="full-article" href="/blog/2012/06/18/tmall-za-jin-dan/">阅读全文 &rarr;</a>
+ </footer>
+
</article>
@@ -721,7 +589,7 @@ <h1 class="entry-title"><a href="/blog/2012/04/21/install-ruby-environment-on-ub
<ul id="recent_posts">
<li class="post">
- <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动脚本</a>
+ <a href="/blog/2012/06/18/tmall-za-jin-dan/">tmall砸金蛋活动</a>
</li>
<li class="post">
@@ -775,8 +643,6 @@ <h1 class="entry-title"><a href="/blog/2012/04/21/install-ruby-environment-on-ub
-
-
</aside>
View
6 sitemap.xml
@@ -20,14 +20,14 @@
</url>
<url>
<loc>http://wongyouth.github.com/blog/2012/06/18/tmall-za-jin-dan/</loc>
- <lastmod>2012-06-19T10:18:14+08:00</lastmod>
+ <lastmod>2012-06-19T15:38:35+08:00</lastmod>
</url>
<url>
<loc>http://wongyouth.github.com/blog/archives/</loc>
- <lastmod>2012-06-19T10:18:14+08:00</lastmod>
+ <lastmod>2012-06-19T15:38:35+08:00</lastmod>
</url>
<url>
<loc>http://wongyouth.github.com/</loc>
- <lastmod>2012-06-19T10:18:14+08:00</lastmod>
+ <lastmod>2012-06-19T15:38:35+08:00</lastmod>
</url>
</urlset>
Please sign in to comment.
Something went wrong with that request. Please try again.