所以我用斜纹在 python 中制作了一个 Tumblr 机器人(是的,我知道我可以使用 API,但我想使用多个帐户(50+)并且我不想为每个帐户创建一个 API)
我怎样才能通过斜纹制作上传程序?我成功登录。
我的代码:
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","test@test.com")
twill.commands.fv("1","signup_password",password)
twill.commands.submit()
def Main():
Login()
PhotoUpload()
Main()