I am trying to build a simple kivy app for mobiles / desktops which uses Twitter to authenticate users at the login screen. I am using Tweepy with Python to authenticate the users.
The authentication process works fine when I run the code from command line. It generates a redirect url which I open in a browser to authenticate the user and then it generates a pin. The pin is copied and entered into the command line interface of the parent Python program as an input and the authentication process completes successfully.
Is there a way to copy the generated pin from the browser's html content and directly use it as an input in the program without any human intervention? This would enhance the user experience and people would not get confused as to what to do with the PIN. I was playing around with the weburl, urllib and htmlparser libraries in Python and was wondering if there any way to achieve this seamless behaviour?
I have also heard about something called "webview". Can that be used here? Is there any usage example that I can refer?
Please help.
Have you looked at the requests library?
Requests lets you issue HTML commands, and parse the received HTML.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/c9eb9e01-935b-4490-a5fb-239606f37951%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.
This might be a better question to ask at the Twitter API forum. You could support and persistence method you want in Kivy.
The requests library supports persistent sessions.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/746b9a5a-01b5-4579-b50e-1221a1412e85%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/746b9a5a-01b5-4579-b50e-1221a1412e85%40googlegroups.com.