post to web page with WWW::Mechanize agent.
- module: Config::WebPost
config:
url: http://www.pixiv.net/index.php
params:
pixiv_id: yuanying
pass: password-dayo
Public Instance Methods
run(data)click to toggle source
# File lib-plugins/yapra/plugin/config/web_post.rb, line 16defrun(data)
agent.post(config['url'], config['params'])
dataend