python - Requests library sending POST to get a value -


my question is: how can oauth_verifier value sending requests mighty requests library in python ?

i'm trying avoid having launch browser oauth_verifier value that's used obtain oauth_token , oauth_secret.

using browser process quite simple. pass oauth_token , oauth_callback oauth/auhorize endpoint url

https://www.tumblr.com/oauth/authorize?oauth_token=bvnvttjyppndeuciuhdjpootikeamd5wrbfrbkguzmf4l8x4yz&oauth_callback=http%3a%2f%2flocalhost%2f 

then can authorize pressing green button "allow" ("permitir" in spanish).

right click > open image in new tab see full size

enter image description here

after this, page redirected get param, oauth_verifier, need obtain token , token secret keys.

but i'm trying avoid doing login python requests library, , submiting form or sending post/get requests allow , oauth_verifier parameter without browser.

here headers / cookies / params generated when browsing oauth/authorize?... url.

right click > open image in new tab see full size

enter image description here

here post generated after clicking "allow" green button:

right click > open image in new tab see full size

enter image description here

it has status code "302 moved temporarily" , redirects url results in other request, oauth_verifier parameter needed.

enter image description here


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -