File: pastehtml.py

package info (click to toggle)
python-catcher 0.1.7%2Bgit20140530-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 116 kB
  • ctags: 37
  • sloc: python: 257; makefile: 47
file content (9 lines) | stat: -rw-r--r-- 228 bytes parent folder | download
1
2
3
4
5
6
7
8
9
import requests


class PasteHTMLUploader:
    def upload(self, data):
        return requests.post(
            'http://pastehtml.com/upload/create?input_type=html&result=address',
            data={'txt': data}
        ).text