Reputation: 533
So I making a Tumblr bot in python with twill (yea I know I could use API, but i want to use multiple accounts (50+) and I don't want to create an API for every account))
And how can I make the uploading procedure through twill? I succesfully log in.
My Code:
site = ("http://tumblr.com/login")
def PhotoUpload():
twill.commands.go("http://www.tumblr.com/new/photo")
twill.commands.submit()
def ShowInfo():
print twill.commands.info()
print twill.commands.showforms()
print twill.commands.showlinks()
def Login():
twill.commands.go(site)
twill.commands.fv("1","signup_email","[email protected]")
twill.commands.fv("1","signup_password",password)
twill.commands.submit()
def Main():
Login()
PhotoUpload()
Main()
Upvotes: 0
Views: 433