Skip to content
This repository has been archived by the owner on Feb 18, 2018. It is now read-only.

Commit

Permalink
fixed balance parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
lg committed Aug 10, 2010
1 parent 999be71 commit 46863e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README.md
@@ -1,4 +1,4 @@
Venmom 0.02 by Larry Gadea <trivex@gmail.com>.
Venmom 0.03 by Larry Gadea <trivex@gmail.com>.

This script will transfer your Venmo balance to your real bank account. It should be
safe to put this on a nightly cron.
Expand Down Expand Up @@ -29,6 +29,7 @@ CHANGELOG

- 0.01 - 2010-06-07 - Initial version
- 0.02 - 2010-07-23 - Fixed an ip detection bug. Confirmed working on latest venmo UI.
- 0.03 - 2010-08-10 - Fixed balance parsing caused by Venmo update.

LEGAL
-----
Expand Down
4 changes: 2 additions & 2 deletions venmom.py
@@ -1,4 +1,4 @@
# Venmom 0.02 by Larry Gadea <trivex@gmail.com>.
# Venmom 0.03 by Larry Gadea <trivex@gmail.com>.

USERNAME = "" #can also be your phone number
PASSWORD = ""
Expand Down Expand Up @@ -51,7 +51,7 @@ def http_error_302(self, req, fp, code, msg, headers):
})
res = urllib2.urlopen(req).read()

balance = float(re.search("\<td\>\$(.*?)\<\/td\>", res).group(1))
balance = float(re.search("class=\"large bold\"\>\$(.*?)\<\/span\>", res).group(1))
balance = min(balance, MAXIMUM)

if balance < MINIMUM:
Expand Down

0 comments on commit 46863e9

Please sign in to comment.