3D Realms Forums

3D Realms Forums (https://forums.3drealms.com/vb/index.php)
-   Software Forum (https://forums.3drealms.com/vb/forumdisplay.php?f=23)
-   -   looking for an auto-posting script for vBulletin (https://forums.3drealms.com/vb/showthread.php?t=38888)

ixfd64 06-08-2013 02:42 PM

looking for an auto-posting script for vBulletin
 
I'm looking for a script (preferably in Python) that can automatically make posts on vBulletin forums. For example, I might want to scrape news from the web and post it on a forum every, say, one hour.

Most of the software I found are vBulletin hacks that require server access. I need something that I can run on my computer. The closest thing I could find is the Mechanize library. Are there any better choices?

I might be able to write such a script myself, but I'd rather not reinvent the wheel when possible.

Thanks in advance.

Dopefish7590 06-19-2013 04:26 PM

Re: looking for an auto-posting script for vBulletin
 
Are you familiar with HTTP requests..? I took a quick look, and provided you managed to get ahold of an authenticated session, all it appears it would really require would be to write something that POSTs to /vb/newreply.php... A simple feat in most languages.

For example, the request for this post initially looked like this:
Code:

Name        Value
securitytoken        <snipped>
ajax        1
ajax_lastpost        1370724159
message        Are you familiar with HTTP requests... Provided you managed to get ahold of an authenticated session, all it would really require would be to write something that POSTs to ajax.php...
wysiwyg        0
styleid        0
fromquickreply        1
s       
securitytoken        <snipped>
do        postreply
t        38888
p        who cares
specifiedpost        0
parseurl        1
loggedinuser        6599

The securitytoken I believe is the PHP session ID, whereas the remainder of the parameters are pretty self-explanitory.

ixfd64 06-21-2013 10:31 PM

Re: looking for an auto-posting script for vBulletin
 
I'll take a look at it. Thanks!


All times are GMT -6. The time now is 06:54 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.

Website is 1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.