maxibaby
Junior Member
- Apr 20, 2013
- 103
- 50
Hello so i started programming not so far ago, i started doing those udacity tutorials.
So, im working in Python and i want to create a Twitter account via Python.
What i've done so far? Well, as how i see things, twitter at twitter / signup displays a website with various forms.
These have names like : user[name] , user , user[user_password] and user[screen_name]
So what do i think ? well, what i need is just to send a POST method to this website with this info filled:
I did this on a basic HTML forms website i made my own, and could sucessfully do it with something like this:
With this easy code i made up to fill a form in my website , witch was recorded in a database and then i could see it from browser.
But for some reason this same method isn't working for twitter. Can someone tell me why it is , or where should i start seeing to improve
So, im working in Python and i want to create a Twitter account via Python.
What i've done so far? Well, as how i see things, twitter at twitter / signup displays a website with various forms.
These have names like : user[name] , user , user[user_password] and user[screen_name]
So what do i think ? well, what i need is just to send a POST method to this website with this info filled:
I did this on a basic HTML forms website i made my own, and could sucessfully do it with something like this:
Code:
>>> import urllib
>>> import urllib2
>>> query_args = { input_name:input_value , input_name:input_value , etc..}
>>> encoded_args = urllib.urlencode(query_args)
>>> url = 'local' << fixed so i can post
>>> print urllib2.urlopen(url, encoded_args).read()
With this easy code i made up to fill a form in my website , witch was recorded in a database and then i could see it from browser.
But for some reason this same method isn't working for twitter. Can someone tell me why it is , or where should i start seeing to improve