1

我正在尝试自动在喊话箱上发送消息:

http://www.i-tchat.com/shoutbox/shoutbox.php?idShoutbox=116303

当我使用此代码时,一切正常(没有错误),但消息未发送(已提交)

from twill.commands import *

url='http://www.i-tchat.com/shoutbox/shoutbox.php?idShoutbox=116303'
user= 'Toto'
mess="Test message"

go(url)
formclear('1')
fv("1", "username", user)
fv("1", "message", mess)
showforms()
submit('0')

任何想法 ?

4

1 回答 1

1

尝试

submit(url)

当您按下提交按钮时,您将被重定向回同一页面,您之前阅读过源代码吗?

于 2015-07-14T20:03:12.463 回答