Permalink
Browse files

uploaded the file to the server

still got some encoding problems to deal with.f**k
  • Loading branch information...
1 parent df4216f commit c44f0bd840dbb58951ccb0cf7576b1410ad2b965 @sunuslee committed Oct 25, 2011
Showing with 52 additions and 7 deletions.
  1. +29 −0 api_limit
  2. +1 −1 cache.py
  3. +3 −2 client.py
  4. +1 −1 do_ci
  5. +1 −1 gates
  6. BIN get_names.pyc
  7. +1 −1 run_forever.py
  8. BIN sendmail.pyc
  9. +1 −1 test_example_code/step2.py
  10. +14 −0 url2.py
  11. BIN url2.pyc
  12. BIN user_queue.pyc
  13. +1 −0 wait_queue
View
@@ -2762,3 +2762,32 @@
[LOG] Mon Oct 24 19:17:34 2011 http://api.douban.com/people/48046701/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319455054.39
[LOG] Mon Oct 24 19:19:35 2011 http://api.douban.com/people/sunus/collection?cat=天津&tag=&status=&start-index=1&max-results=50&alt=atom 1319455175.81
[LOG] Mon Oct 24 19:23:51 2011 http://api.douban.com/people/sunus/collection?cat=天津&tag=&status=&start-index=1&max-results=50&alt=atom 1319455431.76
+[LOG] Tue Oct 25 15:18:38 2011 http://api.douban.com/people/VVgoss/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527118.7
+[LOG] Tue Oct 25 15:18:41 2011 http://api.douban.com/people/51743357/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527121.70
+[LOG] Tue Oct 25 15:18:44 2011 http://api.douban.com/people/nannv/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527124.70
+[LOG] Tue Oct 25 15:18:47 2011 http://api.douban.com/people/51728723/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527127.70
+[LOG] Tue Oct 25 15:18:50 2011 http://api.douban.com/people/51713818/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527130.70
+[LOG] Tue Oct 25 15:18:53 2011 http://api.douban.com/people/Renml/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527133.70
+[LOG] Tue Oct 25 15:18:56 2011 http://api.douban.com/people/47113227/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527136.70
+[LOG] Tue Oct 25 15:18:59 2011 http://api.douban.com/people/47039943/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527139.70
+[LOG] Tue Oct 25 15:19:02 2011 http://api.douban.com/people/46902769/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527142.70
+[LOG] Tue Oct 25 15:19:05 2011 http://api.douban.com/people/46898166/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527145.70
+[LOG] Tue Oct 25 15:21:29 2011 http://api.douban.com/people/jianess/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527289.02
+[LOG] Tue Oct 25 15:27:34 2011 http://api.douban.com/people/49698231/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527655.00
+[LOG] Tue Oct 25 15:27:37 2011 http://api.douban.com/people/44297509/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527658.00
+[LOG] Tue Oct 25 15:27:40 2011 http://api.douban.com/people/KyleCaine/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527661.00
+[LOG] Tue Oct 25 15:27:43 2011 http://api.douban.com/people/44266164/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527664.00
+[LOG] Tue Oct 25 15:27:46 2011 http://api.douban.com/people/afril./collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527667.00
+[LOG] Tue Oct 25 15:27:49 2011 http://api.douban.com/people/afril./collection?cat=movie&tag=&status=&start-index=51&max-results=50&alt=atom 1319527670.00
+[LOG] Tue Oct 25 15:27:52 2011 http://api.douban.com/people/afril./collection?cat=movie&tag=&status=&start-index=101&max-results=50&alt=atom 1319527673.00
+[LOG] Tue Oct 25 15:27:55 2011 http://api.douban.com/people/44200283/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527676.00
+[LOG] Tue Oct 25 15:30:09 2011 http://api.douban.com/people/Nino-chen/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527809.19
+[LOG] Tue Oct 25 15:30:12 2011 http://api.douban.com/people/aishuishui0408/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527812.19
+[LOG] Tue Oct 25 15:30:15 2011 http://api.douban.com/people/47608649/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527815.1
+[LOG] Tue Oct 25 15:30:20 2011 http://api.douban.com/people/47604409/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527820.27
+[LOG] Tue Oct 25 15:30:23 2011 http://api.douban.com/people/47597717/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527823.2
+[LOG] Tue Oct 25 15:32:28 2011 http://api.douban.com/people/48201991/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527948.1
+[LOG] Tue Oct 25 15:32:31 2011 http://api.douban.com/people/48198730/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527951.10
+[LOG] Tue Oct 25 15:32:36 2011 http://api.douban.com/people/nxb19901127/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527956.2
+[LOG] Tue Oct 25 15:32:39 2011 http://api.douban.com/people/48192471/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527959.20
+[LOG] Tue Oct 25 15:32:44 2011 http://api.douban.com/people/48150802/collection?cat=movie&tag=&status=&start-index=1&max-results=50&alt=atom 1319527964.26
View
@@ -1,7 +1,7 @@
#!/usr/bin/env python3.1
# -*- coding: UTF-8 -*-
-IS_LOCAL = True
+IS_LOCAL = False
ROOTDIR = "/home/sunus/apache/" if IS_LOCAL == True else "/usr/local/apache2/"
status_chs = {"wishmovie":"想看", "watchingmovie":"在看", "watchedmovie":"看过",
"wishmusic":"想听", "listeningmusic":"在听", "listenedmusic":"听过",
View
@@ -7,6 +7,8 @@
import sys
import pickle
+IS_LOCAL = False
+auth_callback_url = 'http://localhost/cgi-bin/show_queue.py' if IS_LOCAL == True else 'http://184.164.137.154/cgi-bin/show_queue.py'
signature_method = oauth.OAuthSignatureMethod_HMAC_SHA1()
API_HOST = 'http://api.douban.com'
@@ -33,8 +35,7 @@ def login(self, key=None, secret=None, Parent=None, sid=None):
#print 'pl3ase paste the url in your webbrowser, complete the authorization then come back:'
#line = raw_input()
- #callback = 'http://www.douban.com/service/auth/authorize?oauth_token=' + key
- url = self.get_authorization_url(key, secret, 'http://localhost/cgi-bin/show_queue.py')
+ url = self.get_authorization_url(key, secret, auth_callback_url)
Parent.client = self
fp = open(sid, 'w')
pickle.dump((Parent, key, secret), fp)
View
2 do_ci
@@ -19,7 +19,7 @@ import os
import cache
import dl
-IS_LOCAL = True
+IS_LOCAL = False
ROOTDIR = "/home/sunus/apache/" if IS_LOCAL == True else "/usr/local/apache2/"
HOSTNAME = "http://localhost/" if IS_LOCAL == True else "http://184.164.137.154/"
LINK_DB_PEOPLE = "http://www.douban.com/people/"
View
2 gates
@@ -8,7 +8,7 @@ import sys
import url
import time
-IS_LOCAL = True
+IS_LOCAL = False
ROOTDIR = "/home/sunus/apache/" if IS_LOCAL == True else "/usr/local/apache2/"
HOSTNAME = "http://localhost/" if IS_LOCAL == True else "http://184.164.137.154/"
def gate_open(page):
View
Binary file not shown.
View
@@ -6,7 +6,7 @@
import time
import url2
-IS_LOCAL = True
+IS_LOCAL = False
ROOTDIR = "/home/sunus/apache/" if IS_LOCAL == True else "/usr/local/apache2/"
HOSTNAME = "http://localhost/" if IS_LOCAL == True else "http://184.164.137.154/"
DO_CI_PATH = '/home/sunus/apache/cgi-bin/do_ci' if IS_LOCAL == True else '/usr/local/apache2/cgi-bin/do_ci'
View
Binary file not shown.
@@ -29,7 +29,7 @@ def main():
print('uid:', uid)
if key:
client.client.login(key, secret)
-
+ sendmail.sendmail(client, 'sunus', 'step2_subject', 'step2_content')
print("</body>")
print("</html>")
View
14 url2.py
@@ -29,3 +29,17 @@ def get_longurl(Short_url):
f.write("{0} LONG URL IS UNAVAILABLE NOW! Short_url : {1}\n".format(time.ctime(), Short_url))
f.close()
return None
+
+def url_test():
+ url = 'http://www.douban.com'
+ print 'url test:\n'
+ print url
+ su = get_shortenurl(url)
+ print su
+ lu = get_longurl(su)
+ print lu
+ print 'test finished'
+
+
+if __name__ == '__main__':
+ url_test()
View
BIN url2.pyc
Binary file not shown.
View
Binary file not shown.
View
@@ -0,0 +1 @@
+sunus sunus http://www.douban.com/group/kaopulove/ 豆瓣最靠谱的恋爱小组。小组 天津 movie 0 1

0 comments on commit c44f0bd

Please sign in to comment.