Python Tumblr Uploader Bot(带斜纹)

时间:2015-09-18 14:33:01

标签: python tumblr twill

所以我用twill在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()

0 个答案:

没有答案