Skip to content

Instantly share code, notes, and snippets.

@AE5
Created October 22, 2015 10:47
Show Gist options
  • Select an option

  • Save AE5/7a81c7e7588f1a4fb23f to your computer and use it in GitHub Desktop.

Select an option

Save AE5/7a81c7e7588f1a4fb23f to your computer and use it in GitHub Desktop.

Revisions

  1. AE5 created this gist Oct 22, 2015.
    7 changes: 7 additions & 0 deletions 2chpost.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    import requests

    def posting(board, thread, comment):
    values = 'json=1&task=post&board=%s&thread=%s&comment=%s' %(board, thread, comment)
    response = requests.post(URL, data=values.encode('utf-8'))
    return response.json()