Revision: 11
http://pykol.svn.sourceforge.net/pykol/?rev=11&view=rev
Author: misza13
Date: 2007-04-07 13:52:15 -0700 (Sat, 07 Apr 2007)
Log Message:
-----------
Creating the Mall() class, with dumb item searching.
Added Paths:
-----------
mall.py
Added: mall.py
===================================================================
--- mall.py (rev 0)
+++ mall.py 2007-04-07 20:52:15 UTC (rev 11)
@@ -0,0 +1,20 @@
+# -*- coding: utf-8 -*-
+
+import re
+
+import kolsite
+
+class Mall:
+ def __init__(self, Site):
+ self.Site = Site
+
+ def searchItem(self, what, limit=None):
+ formdata = {'whichitem' : what}
+ if limit:
+ formdata['cheaponly'] = 1
+ formdata['shownum'] = limit
+ response, data = self.Site.postForm('searchmall.php',formdata)
+
+ print response.status
+ print response.getheaders()
+ print data
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|