ID:160289
 
My not-so-crafty (anymore?) self is looking for a way to automatically crawl a certain website to take care of menial tasks for myself. The problem is that it requires a login using the POST method. Any way I can make the browser share cookies with world.Export() or some crap I know nothing about in order for me to login manually, and let the program get-ta-crawlin' on it's own?
Not sure if DM is the best language to do this in. Perhaps learn Python? Python has libraries to do POST stuff (I think) and handle cookies etc..
In response to Sgeo
hmmm, I suppose ill take your advice and pick up another language. just as soon as the marine corps loosens the noose. thank you very much
Well, I came back to this subject again, and I'm still really interested in accomplishing this task. I'm not sure why I'm being so stubborn with doing it in BYOND, but I would still like to find a way. Anybody have any ideas?

Can POST method variables be submitted via the URL?

If the desired website I'm attempting to access via the POST method uses md5 on the password, could I use javascript from within BYOND to login and simply include the javascript functions to create the hashs for my password to the site? Or, can I find the hashs for my password before-hand and include them in the POST submission?
In response to Koshigia
Can POST method variables be submitted via the URL?
No.

Anybody have any ideas?
Use an HTML form in the browser, and JavaScript to automatically submit it?
In response to Sgeo
Wow....that seemed like fail. You basically just said, "Go away this ain't the place." and he's going to do just that o.o. I mean just simply saying, "Python could do it." is enough.
In response to Choka
Hehe, I've been on BYOND, mo-uh-less, since 2001. I'm not going anywhere. =)
In response to Immibis

Use an HTML form in the browser, and JavaScript to automatically submit it?

That was my second question. I'm not too suave with javascript, html, and web editing in general. Maybe some old school byond dimes for some intensive assistance? =P

So does this solve my problem? I obtain the hashed password (the one the website in question is looking for), create a form from within byond to submit to the external site? I believe someone once told me that this would be unacceptable for security reasons.
DLL support should be able to handle this. We get that now, by the way. Also, see: http://www.byond.com/members/DreamMakers/forum?id=679323
In response to Koshigia
AFAIK BYONDimes are non-transferable now... (what are they, anyway? [that wasn't a rhetorical question]) but I made a library for this after reading your post. http://www.byond.com/developer/Immibis/postlib
It's my first library, and also my first hub entry, so sorry if it doesn't work.
In response to CaptFalcon33035
CaptFalcon33035 wrote:
DLL support should be able to handle this. We get that now, by the way. Also, see: http://www.byond.com/members/DreamMakers/forum?id=679323

Awesome. Muchos gracias :)