1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Add reply using Python script

Discussion in 'Custom Service/Development Requests' started by ghostwolfling, Apr 15, 2014.

  1. ghostwolfling

    ghostwolfling Member

    Hello there,

    I'm trying to reply to a thread using Python script (ofc it's authorized on my forum), but I don't really understand which params should I send. Nothing happens if I give it only "message" value like this:

    params = urllib.urlencode({'message' : 'test'})
    get = urllib2.Request("http://forumdomain/threads/threadname.60/add-reply" , params, headers)
    opener.open(get, params)

    So I am wondering which params should I send to the server to reply?
  2. Liam W

    Liam W Well-Known Member

    You'll need an awful lot of params, actually - including the csrf token.
  3. Aayush

    Aayush Well-Known Member

    I coded something like this in PHP, you can see some thread from me from a while ago In the dev section. I explained how to do this in the last post of the thread. Might be helpful.

    I am mobile atm, otherwise I would've linked you to the thread.

Share This Page