Permalink
Browse files

init

  • Loading branch information...
0 parents commit 203fa09829a4f8356bfbb8392404b8ae867d6d71 @jondynet committed Nov 21, 2011
Showing with 1,498 additions and 0 deletions.
  1. +31 −0 README.md
  2. +22 −0 get_proxy.py
  3. +26 −0 get_proxy2.py
  4. +1,366 −0 proxy.txt
  5. +53 −0 wangyihui.py
@@ -0,0 +1,31 @@
+一个刷票的脚本
+==============
+
+之前也有过几次刷投票或其他那啥的经验
+
+对于强大的验证码还是木有啥子好办法的。
+
+不过这次投票的目标网站是俺见过最狗血的了。。。看实现方式就知道了,哈哈
+
+这算是一次练习gevent的小应用吧。
+
+附几个代理服务器的网站,另外悼念一下俺的pubcc.com 这个是俺收集代理服务的小网站
+运行在GAE上,由于太自动化了而且自己也不常用代理,域名过期了忘了续费,呜呜。
+只能通过http://pubcc-com.appspot.com 访问了
+
+几个代理服务网站
+----------------
+
+* http://www.samair.ru/proxy/proxy-25.htm
+* http://proxy-list.org/en/index.php?sp=120&pp=any&pt=any&pc=any&ps=any
+* http://www.cybersyndrome.net/pla5.html
+* http://hidemyass.com/proxy-list/search-231187/2
+* http://www.digitalcybersoft.com/ProxyList/fresh-proxy-list.shtml
+* http://spys.ru/en/http-proxy-list/
+
+目标网站
+--------
+
+* http://www.xingfudaiyanren.com/Html/PhotoVote.asp?id=36&name=王易慧
+* http://www.xingfudaiyanren.com/Html/AmeavTotal.asp
+
@@ -0,0 +1,22 @@
+#coding:utf-8
+
+import urllib2
+from lxml import etree, html
+
+url = "http://www.samair.ru/proxy/proxy-%d.htm"
+
+def getproxy(url):
+ try:
+ rs = urllib2.urlopen(url).read()
+ except:
+ return
+ tree = html.fromstring(rs)
+ ip = tree.xpath('//table[@class="tablelist"]/tr/td')
+ for i in ip:
+ if i.text and ':' in i.text:
+ print i.text
+
+
+#getproxy('http://www.samair.ru/proxy/proxy-25.htm')
+for i in range(1,26):
+ getproxy(url % i)
@@ -0,0 +1,26 @@
+#coding:utf-8
+
+import urllib2
+from lxml import etree, html
+
+urls = [
+ 'http://spys.ru/en/http-proxy-list/',
+ 'http://spys.ru/en/http-proxy-list/1/',
+ 'http://spys.ru/en/http-proxy-list/2/',
+ 'http://spys.ru/en/http-proxy-list/3/',
+ ]
+
+def getproxy(url):
+ try:
+ rs = urllib2.urlopen(url).read()
+ except:
+ return
+ tree = html.fromstring(rs)
+ ip = tree.xpath('//td/font[@class="spy14"]')
+ for i in ip:
+ print i.next.text
+
+
+getproxy('http://spys.ru/en/http-proxy-list/')
+#for i in range(1,26):
+# getproxy(url % i)
Oops, something went wrong.

0 comments on commit 203fa09

Please sign in to comment.