モバイルWebでつぶやいてみる

またうごかねええええええええええええええ(´;ω;`)
ツイート時に再ログインを促されるページのHTMLが返ってきます。
あとID/パスワードは自分で定義して下さい

またうごかねええええええええええええええ(´;ω;`)
ツイート時に再ログインを促されるページのHTMLが返ってきます。
あとID/パスワードは自分で定義して下さい

;
; MobileWEB
;
//
#include "hspinets.as"
//ID
id=""
pw=""
//
valuebuf=""
valuebuf2=""
buf=""
token=""
logined=""
chdir dir_cur
//
netinit
neturl "https://mobile.twitter.com/session"
netdlname "session.html"
netload ""
netterm
//
notesel a
noteload "session.html"
nkfcnv buf,a,"W"
notesel buf
split buf,"value=\"",dst,valuebuf2
split valuebuf2,"\"",token,dst
mes token
//
netinit
neturl "https://mobile.twitter.com/session"
loginpost = "authenticity_token="+token+"&username="+id+"&password="+pw+""
netrequest_post "",loginpost
repeat
netexec res
if res > 0 : break
if res < 0 : dialog"" :end
await 5
loop
netgetv logined
netterm
notesel logined
notesave "logined.html"
split logined,"force=",dst
if stat-1>=1:mes ""
split logined,"Sign in information is not correct",dst
if stat-1>=1:mes ""
//
netinit
neturl "https://mobile.twitter.com/home"
netdlname "main.html"
netload ""
notesel index
noteload "main.html"
split index,"<input name=\"authenticity_token\" type=\"hidden\" value=\"",dst,value2
split value2,"\"",token2,dst
mes token2
if token!token2:dialog""
tweetpost = "authenticity_token="+token+"&tweet[text]=TEST"
netrequest_post "",tweetpost
repeat
netexec res
if res > 0 : break
if res < 0 : dialog"" :end
await 5
loop
netgetv posted
netterm
dialog posted
stop
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX