Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
172
rated 0 times [  175] [ 3]  / answers: 1 / hits: 33640  / 15 Years ago, sun, january 24, 2010, 12:00:00

I’m writing a little private app to automatically log into my internet banking every day, and download the latest transactions. I’m writing it as a Django app, so I’m working in Python.



My internet banking doesn’t seem to work without JavaScript — I think it uses JavaScript to assign a session ID of some sort. Fetching the sign-in page via httplib gives me a page telling me JavaScript’s required.



So, I’m now looking for libraries that fetch web pages, and execute the JavaScript on them. Pretty much headless browsers.



I’m fiddling about Selenium at the moment. I think it’ll do the job, although it is designed for testing web apps, so I was wondering if there was anything with similar capabilities designed for more general purposes than testing.



Any Python alternatives to Selenium for this sort of thing?


More From » python

 Answers
31

since you use selenium I think you have already installed firefox. if so get an extension like firebug or tamper data and see what http-requests the javascript code will do while logging in.



if you have the url and the parameters needed you can easily program a python client with httplib or urllib2.



in firebug you find the requested urls under NET. tamper data will be self descriptive. ;-)


[#97760] Wednesday, January 20, 2010, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
aubriechantalr

Total Points: 380
Total Questions: 95
Total Answers: 86

Location: Guadeloupe
Member since Sat, Aug 22, 2020
4 Years ago
;