parent
8bc56cdcbd
commit
38e4ae812c
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = cxg.de
|
||||
regexp = http://cxg.de
|
||||
regexp = "http://cxg.de"
|
||||
|
||||
[format]
|
||||
user = desc
|
||||
|
@ -10,5 +10,5 @@ page = page
|
|||
regexp = regexp
|
||||
|
||||
[defaults]
|
||||
page = /paste.php
|
||||
regexp = href="http://cxg.de/(.*)"
|
||||
page = "/paste.php"
|
||||
regexp = 'href="http://cxg.de/(.*)"'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = fpaste.org
|
||||
regexp = http://fpaste.org
|
||||
regexp = "http://fpaste.org"
|
||||
|
||||
[format]
|
||||
user = author
|
||||
|
@ -10,5 +10,5 @@ submit = submit
|
|||
expire_options = expire_options
|
||||
|
||||
[defaults]
|
||||
submit = paste it!
|
||||
submit = "paste it!"
|
||||
expire_options = 86400
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
[pastebin]
|
||||
basename = p.defau.lt
|
||||
regexp = http://p.defau.lt
|
||||
regexp = "http://p.defau.lt"
|
||||
|
||||
[format]
|
||||
content = code
|
||||
page = page
|
||||
|
||||
[defaults]
|
||||
page = /submit.php
|
||||
page = '/submit.php'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = paste.debian.net
|
||||
regexp = http://paste.debian.net
|
||||
regexp = "http://paste.debian.net"
|
||||
|
||||
[format]
|
||||
user = poster
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = paste.drizzle.org
|
||||
regexp = http://paste.drizzle.org
|
||||
regexp = "http://paste.drizzle.org"
|
||||
|
||||
[format]
|
||||
lang = language
|
||||
|
@ -11,8 +11,8 @@ regexp = regexp
|
|||
target_url = target_url
|
||||
|
||||
[defaults]
|
||||
page = /json/?method=pastes.newPaste
|
||||
post_format = json
|
||||
lang =
|
||||
regexp = \"data\": \"([^"]*)
|
||||
target_url = http://paste.drizzle.org/show/
|
||||
page = "/json/?method=pastes.newPaste"
|
||||
post_format = "json"
|
||||
lang = ""
|
||||
regexp = "\"data\": \"([^"]*)"
|
||||
target_url = "http://paste.drizzle.org/show/"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = paste.kde.org
|
||||
regexp = http://paste.kde.org
|
||||
regexp = "http://paste.kde.org"
|
||||
|
||||
[format]
|
||||
user = paste_user
|
||||
|
@ -15,8 +15,8 @@ regexp = regexp
|
|||
|
||||
[defaults]
|
||||
private = 0
|
||||
format = text
|
||||
format = "text"
|
||||
expire = 86400
|
||||
api = 1
|
||||
mode = xml
|
||||
regexp = <id>(.*)</id>
|
||||
regexp = "<id>(.*)</id>"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = paste.openstack.org
|
||||
regexp = http://paste.openstack.org
|
||||
regexp = "http://paste.openstack.org"
|
||||
|
||||
[format]
|
||||
lang = language
|
||||
|
@ -11,8 +11,8 @@ regexp = regexp
|
|||
target_url = target_url
|
||||
|
||||
[defaults]
|
||||
page = /json/?method=pastes.newPaste
|
||||
post_format = json
|
||||
lang =
|
||||
regexp = \"data\": \"([^"]*)
|
||||
target_url = http://paste.openstack.org/show/
|
||||
page = "/json/?method=pastes.newPaste"
|
||||
post_format = "json"
|
||||
lang = ""
|
||||
regexp = "\"data\": \"([^"]*)"
|
||||
target_url = "http://paste.openstack.org/show/"
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
[pastebin]
|
||||
basename = paste.pocoo.org
|
||||
regexp = "http://paste.pocoo.org"
|
||||
|
||||
[format]
|
||||
content = code
|
||||
format = language
|
||||
|
||||
[defaults]
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = paste.pound-python.org
|
||||
regexp = http://paste.pound-python.org
|
||||
regexp = "http://paste.pound-python.org"
|
||||
|
||||
[format]
|
||||
content = code
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = paste.ubuntu.com
|
||||
regexp = http://paste.ubuntu.com
|
||||
regexp = "http://paste.ubuntu.com"
|
||||
|
||||
[format]
|
||||
user = poster
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = paste.ubuntu.org.cn
|
||||
regexp = http://paste.ubuntu.org.cn
|
||||
regexp = "http://paste.ubuntu.org.cn"
|
||||
|
||||
[format]
|
||||
user = poster
|
||||
|
@ -9,4 +9,4 @@ format = class
|
|||
paste = paste
|
||||
|
||||
[defaults]
|
||||
paste = 发送
|
||||
paste = "发送"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = paste2.org
|
||||
regexp = http://paste2.org
|
||||
regexp = "http://paste2.org"
|
||||
|
||||
[format]
|
||||
title = description
|
||||
|
@ -10,5 +10,5 @@ page = page
|
|||
parent = parent
|
||||
|
||||
[defaults]
|
||||
page = new-paste
|
||||
page = 'new-paste'
|
||||
parent = 0
|
||||
|
|
|
@ -1,29 +1,25 @@
|
|||
[pastebin]
|
||||
basename = pastebin.com
|
||||
regexp = http://((([a-zA-Z0-9\-_\.]*)(pastebin\.com)))
|
||||
regexp = "http://((([a-zA-Z0-9\-_\.]*)(pastebin\.com)))"
|
||||
|
||||
[format]
|
||||
content = api_paste_code
|
||||
user = api_paste_name
|
||||
subdomain = api_paste_subdomain
|
||||
private = api_paste_private
|
||||
expiry = api_paste_expire_date
|
||||
format = api_paste_format
|
||||
email = api_paste_email
|
||||
content = paste_code
|
||||
user = paste_name
|
||||
subdomain = paste_subdomain
|
||||
private = paste_private
|
||||
expiry = paste_expire_date
|
||||
format = paste_format
|
||||
email = paste_email
|
||||
page = page
|
||||
submit = submit
|
||||
regexp = regexp
|
||||
api_dev_key = api_dev_key
|
||||
api_option = api_option
|
||||
|
||||
[defaults]
|
||||
submit = submit
|
||||
format = text
|
||||
private = 0
|
||||
expiry = 1M
|
||||
subdomain =
|
||||
email =
|
||||
api_dev_key = 253ce2f0a45140ee0a44ca99aa492260
|
||||
api_option = paste
|
||||
page = /api/api_post.php
|
||||
regexp = (.*)
|
||||
subdomain = ""
|
||||
email = ""
|
||||
page = "/api_public.php"
|
||||
regexp = "(.*)"
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
[pastebin]
|
||||
basename = pastie.org
|
||||
regexp = "http://pastie\.org"
|
||||
sizelimit = 100000
|
||||
|
||||
[format]
|
||||
page = page
|
||||
params_format = paste[parser_id]
|
||||
params_restricted = paste[restricted]
|
||||
content = paste[body]
|
||||
params_authorization = paste[authorization]
|
||||
params_key = key
|
||||
params_commit = commit
|
||||
|
||||
[defaults]
|
||||
page = "/pastes"
|
||||
params_format = "6"
|
||||
params_restricted = "0"
|
||||
params_authorization = "burger"
|
||||
params_key = ""
|
||||
params_commit = "Paste"
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = pb.daviey.com
|
||||
regexp = http://pb.daviey.com
|
||||
regexp = "http://pb.daviey.com"
|
||||
|
||||
[format]
|
||||
user = author
|
||||
|
@ -10,7 +10,7 @@ expire_options = expires
|
|||
title = title
|
||||
regexp = regexp
|
||||
|
||||
[defaults]
|
||||
page = api/?_call=new
|
||||
regexp = "/(.*/)".*
|
||||
[defaults]
|
||||
page = "api/?_call=new"
|
||||
regexp = ""/(.*/)".*"
|
||||
expire_options = 7889232
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = slexy.org
|
||||
regexp = http://slexy.org
|
||||
regexp = "http://slexy.org"
|
||||
|
||||
[format]
|
||||
user = author
|
||||
|
@ -15,10 +15,10 @@ submit = submit
|
|||
expire = expire
|
||||
|
||||
[defaults]
|
||||
submit = Submit Paste
|
||||
page = /index.php/submit
|
||||
language = text
|
||||
submit = "Submit Paste"
|
||||
page = "/index.php/submit"
|
||||
language = "text"
|
||||
permissions = 0
|
||||
comment =
|
||||
comment = ""
|
||||
linenumbers = 0
|
||||
expire = 604800
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[pastebin]
|
||||
basename = sprunge.us
|
||||
regexp = http://sprunge.us
|
||||
regexp = "http://sprunge.us"
|
||||
|
||||
[format]
|
||||
content = sprunge
|
||||
|
@ -8,4 +8,4 @@ format = lang
|
|||
regexp = regexp
|
||||
|
||||
[defaults]
|
||||
regexp=http://sprunge.us/(.*)$
|
||||
regexp="http://sprunge.us/(.*)$"
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
[pastebin]
|
||||
basename = yourpaste.net
|
||||
regexp = "http://yourpaste.net"
|
||||
|
||||
[format]
|
||||
format = syntax
|
||||
user = name
|
||||
title = desc
|
||||
expire = expire
|
||||
content = code
|
||||
private = private
|
||||
remember = remember
|
||||
page = page
|
||||
regexp = regexp
|
||||
|
||||
[defaults]
|
||||
expire = 604800
|
||||
private = 0
|
||||
remember = 0
|
||||
page = '/paste'
|
||||
regexp = '">http://yourpaste.net/(.*)</a>'
|
179
pastebinit
179
pastebinit
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python3
|
||||
#!/usr/bin/env python
|
||||
# Written by Stephane Graber <stgraber@stgraber.org>
|
||||
# Daniel Bartlett <dan@f-box.org>
|
||||
# Last modification : Mon Jan 28 22:33:23 CET 2008
|
||||
|
@ -17,14 +17,7 @@
|
|||
# along with this program; if not, write to the Free Software
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
from configparser import SafeConfigParser
|
||||
from urllib.parse import urlencode
|
||||
from urllib.request import FancyURLopener
|
||||
|
||||
# Set the default pastebin
|
||||
defaultPB = "http://pastebin.com"
|
||||
|
||||
# Now try to override it with a distributor pastebin
|
||||
defaultPB = "http://pastebin.com" #Default pastebin
|
||||
try:
|
||||
import lsb_release
|
||||
release = lsb_release.get_distro_information()['ID'].lower()
|
||||
|
@ -38,27 +31,24 @@ except ImportError:
|
|||
pass
|
||||
|
||||
try:
|
||||
import getopt
|
||||
import gettext
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import xml.dom.minidom
|
||||
|
||||
import urllib, os, sys, re, getopt, xml.dom.minidom, gettext
|
||||
try:
|
||||
import json
|
||||
import json # For python 2.6 and newer
|
||||
except ImportError:
|
||||
json = None
|
||||
try:
|
||||
import simplejson as json
|
||||
except ImportError:
|
||||
json = None
|
||||
from gettext import gettext as _
|
||||
import configobj
|
||||
|
||||
_ = gettext
|
||||
gettext.textdomain("pastebinit")
|
||||
|
||||
# Version number to show in the usage
|
||||
version = "1.3.1"
|
||||
version = "1.3" #Version number to show in the usage
|
||||
configfile = os.path.expanduser("~/.pastebinit.xml")
|
||||
|
||||
# Custom urlopener to handle 401's
|
||||
class pasteURLopener(FancyURLopener):
|
||||
class pasteURLopener(urllib.FancyURLopener):
|
||||
def http_error_401(self, url, fp, errcode, errmsg, headers, data=None):
|
||||
return None
|
||||
|
||||
|
@ -69,8 +59,7 @@ try:
|
|||
# - user's overrides in ~/.pastebin.d
|
||||
# Files found later override files found earlier.
|
||||
pastebind = {}
|
||||
for confdir in ['/usr/share/pastebin.d', '/etc/pastebin.d',
|
||||
'/usr/local/etc/pastebin.d',
|
||||
for confdir in ['/usr/share/pastebin.d','/etc/pastebin.d','/usr/local/etc/pastebin.d',
|
||||
os.path.expanduser('~/.pastebin.d'),
|
||||
os.path.join(os.path.dirname(__file__), 'pastebin.d')]:
|
||||
try:
|
||||
|
@ -83,20 +72,25 @@ try:
|
|||
continue
|
||||
|
||||
filename = os.path.join(confdir, fileitem)
|
||||
instance = SafeConfigParser()
|
||||
instance.read(filename)
|
||||
|
||||
if not instance.has_section('pastebin'):
|
||||
print(_('%s: no section [pastebin]') % filename,
|
||||
file=sys.stderr)
|
||||
try:
|
||||
bininstance = configobj.ConfigObj(filename)
|
||||
except configobj.ConfigObjError, e:
|
||||
print >> sys.stderr, '%s: %s' % (filename, e)
|
||||
continue
|
||||
|
||||
if not instance.has_option('pastebin', 'basename'):
|
||||
print(_("%s: no 'basename' in [pastebin]") % filename,
|
||||
file=sys.stderr)
|
||||
try:
|
||||
section = bininstance['pastebin']
|
||||
except KeyError:
|
||||
print >> sys.stderr, _('%s: no section [pastebin]') % filename
|
||||
continue
|
||||
|
||||
pastebind[instance.get('pastebin', 'basename')] = instance
|
||||
try:
|
||||
basename = section['basename']
|
||||
except KeyError:
|
||||
print >> sys.stderr, _("%s: no 'basename' in [pastebin]") % filename
|
||||
continue
|
||||
|
||||
pastebind[basename] = bininstance
|
||||
return pastebind
|
||||
|
||||
# pastey.net obfuscates parent ids for replies. Rather than taking the
|
||||
|
@ -108,8 +102,7 @@ try:
|
|||
return ""
|
||||
url_opener = pasteURLopener()
|
||||
page = url_opener.open(website + '/' + parentid, None)
|
||||
matches = re.split('<input.*?name="' + paramname + '".*?value="(.*?)"',
|
||||
page.read())
|
||||
matches = re.split('<input.*?name="' + paramname + '".*?value="(.*?)"', page.read())
|
||||
if len(matches) <= 1 or re.match(parentid, matches[1]) == None:
|
||||
# The obfuscated version didn't begin with the partial version,
|
||||
# or unable to find the obfuscated version for some reason!
|
||||
|
@ -118,21 +111,16 @@ try:
|
|||
return matches[1]
|
||||
|
||||
#Return the parameters depending of the pastebin used
|
||||
def getParameters(website, pastebind, content, user, jabberid, version,
|
||||
format, parentpid, permatag, title, username,
|
||||
password):
|
||||
def getParameters(website, pastebind, content, user, jabberid, version, format, parentpid, permatag, title, username, password):
|
||||
"Return the parameters array for the selected pastebin"
|
||||
params = {}
|
||||
for pastebin in pastebind:
|
||||
if re.search(pastebind[pastebin].get('pastebin', 'regexp'),
|
||||
website):
|
||||
if re.search(pastebind[pastebin]['pastebin']['regexp'], website):
|
||||
if "sizelimit" in pastebind[pastebin]['pastebin']:
|
||||
params['sizelimit'] = pastebind[pastebin]['pastebin']['sizelimit']
|
||||
|
||||
if pastebind[pastebin].has_option('pastebin', 'sizelimit'):
|
||||
params['sizelimit'] = pastebind[pastebin].get('pastebin',
|
||||
'sizelimit')
|
||||
|
||||
for param in pastebind[pastebin].options('format'):
|
||||
paramname = pastebind[pastebin].get('format', param)
|
||||
for param in pastebind[pastebin]['format'].keys():
|
||||
paramname = pastebind[pastebin]['format'][param]
|
||||
if param == 'user':
|
||||
params[paramname] = user
|
||||
elif param == 'content':
|
||||
|
@ -144,8 +132,7 @@ try:
|
|||
elif param == 'format':
|
||||
params[paramname] = format
|
||||
elif param == 'parentpid':
|
||||
params[paramname] = doParentFixup(website, paramname,
|
||||
parentpid)
|
||||
params[paramname] = doParentFixup(website, paramname, parentpid)
|
||||
elif param == 'permatag':
|
||||
params[paramname] = permatag
|
||||
elif param == 'username':
|
||||
|
@ -155,13 +142,11 @@ try:
|
|||
elif param == 'jabberid':
|
||||
params[paramname] = jabberid
|
||||
else:
|
||||
params[paramname] = pastebind[pastebin].get('defaults',
|
||||
param)
|
||||
params[paramname] = pastebind[pastebin]['defaults'][param]
|
||||
if params:
|
||||
return params
|
||||
else:
|
||||
sys.exit(_("Unknown website, please post a bugreport to request "
|
||||
"this pastebin to be added (%s)") % website)
|
||||
sys.exit(_("Unknown website, please post a bugreport to request this pastebin to be added (%s)") % website)
|
||||
|
||||
#XML Handling methods
|
||||
def getText(nodelist):
|
||||
|
@ -182,22 +167,20 @@ try:
|
|||
|
||||
# Display usage instructions
|
||||
def Usage():
|
||||
print("pastebinit v" + version)
|
||||
print(_(
|
||||
"Reads on stdin for input or takes a filename as first parameter"))
|
||||
print(_("Optional arguments (not supported by all pastebins):"))
|
||||
print(_("\t-a <author:default is '%s'>") % user)
|
||||
print(_("\t-b <pastebin url:default is '%s'>") % website)
|
||||
print(_("\t-f <format of paste:default is '%s'>") % format)
|
||||
print(_("\t-h This help screen"))
|
||||
print(_("\t-i <input file>"))
|
||||
print(_("\t-l List all supported pastebins"))
|
||||
print(_("\t-j <jabberid for notifications:default is '%s'>") %
|
||||
jabberid)
|
||||
print(_("\t-m <permatag for all versions of a post:default is blank>"))
|
||||
print(_("\t-r <parent posts ID:defaults to none>"))
|
||||
print(_("\t-t <title of paste:default is blank>"))
|
||||
print(_("\t-u <username> -p <password>"))
|
||||
print "pastebinit v" + version
|
||||
print _("Reads on stdin for input or takes a filename as first parameter")
|
||||
print _("Optional arguments (not supported by all pastebins):")
|
||||
print _("\t-a <author:default is '%s'>") % user
|
||||
print _("\t-b <pastebin url:default is '%s'>") % website
|
||||
print _("\t-f <format of paste:default is '%s'>") % format
|
||||
print _("\t-h This help screen")
|
||||
print _("\t-i <input file>")
|
||||
print _("\t-l List all supported pastebins")
|
||||
print _("\t-j <jabberid for notifications:default is '%s'>") % jabberid
|
||||
print _("\t-m <permatag for all versions of a post:default is blank>")
|
||||
print _("\t-r <parent posts ID:defaults to none>")
|
||||
print _("\t-t <title of paste:default is blank>")
|
||||
print _("\t-u <username> -p <password>")
|
||||
|
||||
# Set defaults
|
||||
website = defaultPB
|
||||
|
@ -237,21 +220,18 @@ try:
|
|||
if gotconfigxml:
|
||||
try:
|
||||
configxml = xml.dom.minidom.parseString(configtext)
|
||||
for variable, key in (('pastebin', 'website'), ('author', 'user'),
|
||||
('format', 'format'),
|
||||
('jabberid', 'jabberid')):
|
||||
for variable,key in (('pastebin','website'),('author','user'),('format','format'),('jabberid','jabberid')):
|
||||
try:
|
||||
value = getFirstNodeText(configxml, variable)
|
||||
vars()[key] = value
|
||||
vars()[key]=value
|
||||
except:
|
||||
pass
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(_("KeyboardInterrupt caught."))
|
||||
except:
|
||||
print(_("Error parsing configuration file!"))
|
||||
print(_(
|
||||
"Please ensure that your configuration file looks similar to the following:"))
|
||||
print(configexample)
|
||||
print _("Error parsing configuration file!")
|
||||
print _("Please ensure that your configuration file looks similar to the following:")
|
||||
print configexample
|
||||
sys.exit(1)
|
||||
|
||||
# Get options
|
||||
|
@ -260,13 +240,11 @@ try:
|
|||
except KeyboardInterrupt:
|
||||
sys.exit(_("KeyboardInterrupt caught."))
|
||||
except getopt.GetoptError:
|
||||
print(_("Invalid arguments!\n"))
|
||||
print _("Invalid arguments!\n")
|
||||
Usage()
|
||||
sys.exit(1)
|
||||
|
||||
# Get the config
|
||||
pastebind = preloadPastebins()
|
||||
|
||||
pastebind = preloadPastebins() #get the config from /etc/pastebin.d/
|
||||
# Iterate through options
|
||||
for opt in optlist:
|
||||
if opt[0] == "-h":
|
||||
|
@ -285,9 +263,9 @@ try:
|
|||
elif opt[0] == "-j":
|
||||
jabberid = opt[1]
|
||||
elif opt[0] == "-l":
|
||||
print(_("Supported pastebins:"))
|
||||
print _("Supported pastebins:")
|
||||
for pastebin in sorted(pastebind):
|
||||
print("- %s" % pastebin)
|
||||
print "- %s" % pastebin
|
||||
sys.exit(0)
|
||||
elif opt[0] == "-t":
|
||||
title = opt[1]
|
||||
|
@ -301,8 +279,7 @@ try:
|
|||
if filename == "" and len(list) >= 1:
|
||||
filename = list[0]
|
||||
|
||||
# If - is specified as a filename read from stdin
|
||||
# otherwise load the specified file.
|
||||
#If - is specified as a filename read from stdin, otherwise load the specified file.
|
||||
if (filename == "" or filename == "-") and content == "":
|
||||
content = sys.stdin.read()
|
||||
elif content == "":
|
||||
|
@ -317,18 +294,14 @@ try:
|
|||
if not content:
|
||||
sys.exit(_("You are trying to send an empty document, exiting."))
|
||||
|
||||
# Get the parameter array
|
||||
params = getParameters(website, pastebind, content, user, jabberid,
|
||||
version, format, parentpid, permatag, title,
|
||||
username, password)
|
||||
params = getParameters(website, pastebind, content, user, jabberid, version, format, parentpid, permatag, title, username, password) #Get the parameters array
|
||||
|
||||
if not website.endswith("/"):
|
||||
website += "/"
|
||||
|
||||
if "sizelimit" in params:
|
||||
if len(content) > int(params['sizelimit']):
|
||||
sys.exit(_(
|
||||
"The content you are trying to send exceeds the pastebin's size limit."))
|
||||
sys.exit(_("The content you are trying to send exceeds the pastebin's size limit."))
|
||||
else:
|
||||
del params['sizelimit']
|
||||
|
||||
|
@ -357,39 +330,31 @@ try:
|
|||
if post_format == 'json':
|
||||
if json:
|
||||
params = json.dumps(params)
|
||||
url_opener.addheader('Content-type', 'text/json')
|
||||
url_opener.addheader('Content-type: text/json')
|
||||
else:
|
||||
sys.exit(_("Could not find any json library."))
|
||||
else:
|
||||
# Convert to a format usable with the HTML POST
|
||||
params = urlencode(params)
|
||||
params = urllib.urlencode(params) #Convert to a format usable with the HTML POST
|
||||
|
||||
# Send the informations and be redirected to the final page
|
||||
page = url_opener.open(website, params)
|
||||
page = url_opener.open(website, params) #Send the informations and be redirected to the final page
|
||||
|
||||
try:
|
||||
# Check if we have to apply a regexp
|
||||
if reLink:
|
||||
if reLink: #Check if we have to apply a regexp
|
||||
if target_url:
|
||||
website = target_url
|
||||
else:
|
||||
website = website.replace(tmp_page, "")
|
||||
|
||||
if reLink == '(.*)':
|
||||
print(page.read().decode('utf-8').strip())
|
||||
print page.read().strip()
|
||||
else:
|
||||
# Print the result of the regexp
|
||||
print(website + re.split(reLink,
|
||||
page.read().decode('utf-8'))[1])
|
||||
print website + re.split(reLink, page.read())[1] #Print the result of the Regexp
|
||||
else:
|
||||
# Get the final page and show the url
|
||||
print(page.url)
|
||||
print page.url #Get the final page and show the ur
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(_("KeyboardInterrupt caught."))
|
||||
except:
|
||||
sys.exit(_("Unable to read or parse the result page, it could be a "
|
||||
"server timeout or a change server side, "
|
||||
"try with another pastebin."))
|
||||
sys.exit(_("Unable to read or parse the result page, it could be a server timeout or a change server side, try with another pastebin."))
|
||||
|
||||
except KeyboardInterrupt:
|
||||
sys.exit(_("KeyboardInterrupt caught."))
|
||||
|
|
|
@ -8,14 +8,14 @@ msgstr ""
|
|||
"Project-Id-Version: pastebinit\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||
"PO-Revision-Date: 2012-10-23 12:24+0000\n"
|
||||
"Last-Translator: Dawid de Jager <dawid.dejager@gmail.com>\n"
|
||||
"PO-Revision-Date: 2009-12-27 02:37+0000\n"
|
||||
"Last-Translator: Marius Bock <marius@henriska.co.za>\n"
|
||||
"Language-Team: Afrikaans <af@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-10-24 04:30+0000\n"
|
||||
"X-Generator: Launchpad (build 16179)\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||
"X-Generator: Launchpad (build 14781)\n"
|
||||
|
||||
#: ../pastebinit:84
|
||||
msgid "%s: no section [pastebin]"
|
||||
|
@ -119,7 +119,7 @@ msgstr "Kan nie van %s lees nie"
|
|||
|
||||
#: ../pastebinit:295
|
||||
msgid "You are trying to send an empty document, exiting."
|
||||
msgstr "U probeer 'n leë dokument stuur, word uitgegaan."
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:304
|
||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||
|
|
|
@ -8,18 +8,18 @@ msgstr ""
|
|||
"Project-Id-Version: pastebinit 0.8.1\n"
|
||||
"Report-Msgid-Bugs-To: pastebinit@packages.debian.org\n"
|
||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||
"PO-Revision-Date: 2012-02-17 11:36+0000\n"
|
||||
"Last-Translator: Hendrik Knackstedt <Unknown>\n"
|
||||
"PO-Revision-Date: 2012-02-13 16:22+0000\n"
|
||||
"Last-Translator: Rolf Leggewie <Unknown>\n"
|
||||
"Language-Team: German <debian-l10n-german@lists.debian.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-18 04:33+0000\n"
|
||||
"X-Generator: Launchpad (build 14814)\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||
"X-Generator: Launchpad (build 14781)\n"
|
||||
|
||||
#: ../pastebinit:84
|
||||
msgid "%s: no section [pastebin]"
|
||||
msgstr "%s: Kein [pastebin]-Abschnitt"
|
||||
msgstr "%s: Keine [pastebin] Sektion"
|
||||
|
||||
#: ../pastebinit:90
|
||||
msgid "%s: no 'basename' in [pastebin]"
|
||||
|
@ -35,12 +35,12 @@ msgid ""
|
|||
"Unknown website, please post a bugreport to request this pastebin to be "
|
||||
"added (%s)"
|
||||
msgstr ""
|
||||
"Unbekannte Webseite. Bitte senden Sie einen Fehlerbericht, damit dieser "
|
||||
"Pastebin hinzugefügt werden kann (%s)"
|
||||
"Unbekannte Webseite. Bitte sende einen Fehlerbericht, damit dieser Pastebin "
|
||||
"hinzugefügt werden kann (%s)"
|
||||
|
||||
#: ../pastebinit:171
|
||||
msgid "Reads on stdin for input or takes a filename as first parameter"
|
||||
msgstr "Standardeingabe oder von Datei als erstem Parameter auslesen"
|
||||
msgstr "Liest Standardeingabe oder von Datei als erstem Parameter"
|
||||
|
||||
#: ../pastebinit:172
|
||||
msgid "Optional arguments (not supported by all pastebins):"
|
||||
|
@ -106,7 +106,7 @@ msgstr "Fehler beim Auslesen der Konfigurationsdatei!"
|
|||
msgid ""
|
||||
"Please ensure that your configuration file looks similar to the following:"
|
||||
msgstr ""
|
||||
"Bitte stellen Sie sicher, dass Ihre Konfigurationsdatei der folgenden ähnelt:"
|
||||
"Bitte stelle sicher, dass Deine Konfigurationsdatei der folgenden ähnelt:"
|
||||
|
||||
#: ../pastebinit:243
|
||||
msgid "Invalid arguments!\n"
|
||||
|
@ -118,11 +118,11 @@ msgstr "Unterstützte Pastebins:"
|
|||
|
||||
#: ../pastebinit:293
|
||||
msgid "Unable to read from: %s"
|
||||
msgstr "Lesen nicht möglich von: %s"
|
||||
msgstr "Kann nicht lesen von: %s"
|
||||
|
||||
#: ../pastebinit:295
|
||||
msgid "You are trying to send an empty document, exiting."
|
||||
msgstr "Sie versuchen ein leeres Dokument zu senden, Abbruch."
|
||||
msgstr "Du versuchst ein leeres Dokument ab zu senden, beende."
|
||||
|
||||
#: ../pastebinit:304
|
||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||
|
@ -132,13 +132,13 @@ msgstr ""
|
|||
|
||||
#: ../pastebinit:335
|
||||
msgid "Could not find any json library."
|
||||
msgstr "Es konnte keine JSON-Bibliothek gefunden werden."
|
||||
msgstr "Konnte keine JSON-Bibliothek finden."
|
||||
|
||||
#: ../pastebinit:357
|
||||
msgid ""
|
||||
"Unable to read or parse the result page, it could be a server timeout or a "
|
||||
"change server side, try with another pastebin."
|
||||
msgstr ""
|
||||
"Die Ergebnisseite kann nicht gelesen oder ausgewertet werden, dies könnte "
|
||||
"durch eine Zeitüberschreitung des Servers oder eine Server-seitige "
|
||||
"Veränderung verursacht worden sein. Versuchen Sie einen anderen Pastebin."
|
||||
"Kann die Ergebnis-Seite nicht lesen oder auswerten, es könnte eine "
|
||||
"Zeitüberschreitung des Servers oder eine serverseitige Veränderung sein. "
|
||||
"Versuchen Sie einen anderen Pastebin."
|
||||
|
|
|
@ -14,7 +14,7 @@ msgstr ""
|
|||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-16 04:44+0000\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||
"X-Generator: Launchpad (build 14781)\n"
|
||||
|
||||
#: ../pastebinit:84
|
||||
|
|
|
@ -8,14 +8,14 @@ msgstr ""
|
|||
"Project-Id-Version: pastebinit\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||
"PO-Revision-Date: 2012-02-16 00:01+0000\n"
|
||||
"PO-Revision-Date: 2012-02-14 21:24+0000\n"
|
||||
"Last-Translator: Fitoschido <fitoschido@gmail.com>\n"
|
||||
"Language-Team: Spanish <es@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-17 04:41+0000\n"
|
||||
"X-Generator: Launchpad (build 14814)\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||
"X-Generator: Launchpad (build 14781)\n"
|
||||
|
||||
#: ../pastebinit:84
|
||||
msgid "%s: no section [pastebin]"
|
||||
|
@ -132,7 +132,7 @@ msgstr ""
|
|||
|
||||
#: ../pastebinit:335
|
||||
msgid "Could not find any json library."
|
||||
msgstr "No se pudo encontrar ninguna biblioteca json."
|
||||
msgstr "No se pudo encontrar ninguna biblioteca json"
|
||||
|
||||
#: ../pastebinit:357
|
||||
msgid ""
|
||||
|
|
|
@ -8,113 +8,107 @@ msgstr ""
|
|||
"Project-Id-Version: pastebinit\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||
"PO-Revision-Date: 2012-08-13 11:11+0000\n"
|
||||
"Last-Translator: Mei Hua Song <Unknown>\n"
|
||||
"PO-Revision-Date: 2009-12-26 19:36+0000\n"
|
||||
"Last-Translator: karina dwityaning <k_29convenience@yahoo.co.uk>\n"
|
||||
"Language-Team: Indonesian <id@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-08-14 04:31+0000\n"
|
||||
"X-Generator: Launchpad (build 15791)\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||
"X-Generator: Launchpad (build 14781)\n"
|
||||
|
||||
#: ../pastebinit:84
|
||||
msgid "%s: no section [pastebin]"
|
||||
msgstr "%s: tidak ada bagian [pastebin]"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:90
|
||||
msgid "%s: no 'basename' in [pastebin]"
|
||||
msgstr "%s: tidak ada 'nama dasar' di [pastebin]"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:115
|
||||
#, docstring
|
||||
msgid "Return the parameters array for the selected pastebin"
|
||||
msgstr "Kembalikan urutan parameter untuk pastebin yang terpilih"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:149
|
||||
msgid ""
|
||||
"Unknown website, please post a bugreport to request this pastebin to be "
|
||||
"added (%s)"
|
||||
msgstr ""
|
||||
"Situs jaringan tidak diketahui, harap kirimkan laporan bug agar pastebin ini "
|
||||
"dapat ditambahkan (%s)"
|
||||
|
||||
#: ../pastebinit:171
|
||||
msgid "Reads on stdin for input or takes a filename as first parameter"
|
||||
msgstr ""
|
||||
"Baca di stdin untuk data masuk atau ambil nama berkas sebagai parameter awal"
|
||||
|
||||
#: ../pastebinit:172
|
||||
msgid "Optional arguments (not supported by all pastebins):"
|
||||
msgstr "Argumen pilihan (tidak didukung oleh semua pastebin):"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:173
|
||||
msgid "\t-a <author:default is '%s'>"
|
||||
msgstr "\t-a <penulis:default adalah '%s'>"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:174
|
||||
msgid "\t-b <pastebin url:default is '%s'>"
|
||||
msgstr "\t-b <pastebin url:default adalah '%s'>"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:175
|
||||
msgid "\t-f <format of paste:default is '%s'>"
|
||||
msgstr "\t-f <format dari penempatan:default adalah '%s'>"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:176
|
||||
msgid "\t-h This help screen"
|
||||
msgstr "\t-h Ini akan membantu layar"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:177
|
||||
msgid "\t-i <input file>"
|
||||
msgstr "\t-i <berkas masukan>"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:178
|
||||
msgid "\t-l List all supported pastebins"
|
||||
msgstr "\t-l Daftar semua pastebin yang didukung"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:179
|
||||
msgid "\t-j <jabberid for notifications:default is '%s'>"
|
||||
msgstr "\t-j <jabberid untuk pemberitahuan:default adalah '%s'>"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:180
|
||||
msgid "\t-m <permatag for all versions of a post:default is blank>"
|
||||
msgstr ""
|
||||
"\t-m <permatag untuk semua versi dari kiriman:default bernilai kosong>"
|
||||
|
||||
#: ../pastebinit:181
|
||||
msgid "\t-r <parent posts ID:defaults to none>"
|
||||
msgstr ""
|
||||
"\t-r <Tanda pengenal kiriman utama:defaults hingga bernilai tidak ada>"
|
||||
|
||||
#: ../pastebinit:182
|
||||
msgid "\t-t <title of paste:default is blank>"
|
||||
msgstr "\t-t <nama penempatan:default bernilai kosong>"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:183
|
||||
msgid "\t-u <username> -p <password>"
|
||||
msgstr "\t-u <nama pengguna> -p <kata kunci>"
|
||||
msgstr "\t-u <username> -p <password>"
|
||||
|
||||
#: ../pastebinit:215 ../pastebinit:230 ../pastebinit:241 ../pastebinit:291
|
||||
#: ../pastebinit:355 ../pastebinit:360
|
||||
msgid "KeyboardInterrupt caught."
|
||||
msgstr "GangguanKeyboard ditemukan."
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:232
|
||||
msgid "Error parsing configuration file!"
|
||||
msgstr "Galat memeriksa berkas pengaturan!"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:233
|
||||
msgid ""
|
||||
"Please ensure that your configuration file looks similar to the following:"
|
||||
msgstr ""
|
||||
"Harap periksa berkas pengaturan Anda apakah sama dengan yang berikut ini:"
|
||||
|
||||
#: ../pastebinit:243
|
||||
msgid "Invalid arguments!\n"
|
||||
msgstr "Argumentasi tidak sah!\n"
|
||||
msgstr "Argumen tidak valid!\n"
|
||||
|
||||
#: ../pastebinit:266
|
||||
msgid "Supported pastebins:"
|
||||
msgstr "Pastebin yang didukung:"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:293
|
||||
msgid "Unable to read from: %s"
|
||||
|
@ -122,21 +116,18 @@ msgstr "Tidak dapat membaca dari: %s"
|
|||
|
||||
#: ../pastebinit:295
|
||||
msgid "You are trying to send an empty document, exiting."
|
||||
msgstr "Anda sedang mencoba mengirim dokumen kosong, keluar."
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:304
|
||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||
msgstr "Isi yang sedang Anda coba kirimkan melebihi batas ukuran pastebin."
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:335
|
||||
msgid "Could not find any json library."
|
||||
msgstr "Tidak dapat menemukan pustaka json."
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:357
|
||||
msgid ""
|
||||
"Unable to read or parse the result page, it could be a server timeout or a "
|
||||
"change server side, try with another pastebin."
|
||||
msgstr ""
|
||||
"Tidak dapat membaca maupun memeriksa halaman hasil. Hal ini dapat "
|
||||
"diakibatkan oleh kehabisan waktu penyedia atau sisi perubahan penyedia, "
|
||||
"cobalah dengan pastebin lainnya."
|
||||
|
|
|
@ -8,14 +8,14 @@ msgstr ""
|
|||
"Project-Id-Version: pastebinit\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||
"PO-Revision-Date: 2012-09-20 18:21+0000\n"
|
||||
"Last-Translator: Rolf Leggewie <Unknown>\n"
|
||||
"PO-Revision-Date: 2011-02-06 22:59+0000\n"
|
||||
"Last-Translator: Nobuto MURATA <nobuto@nobuto-murata.org>\n"
|
||||
"Language-Team: Japanese <ja@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-09-21 04:32+0000\n"
|
||||
"X-Generator: Launchpad (build 15985)\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||
"X-Generator: Launchpad (build 14781)\n"
|
||||
|
||||
#: ../pastebinit:84
|
||||
msgid "%s: no section [pastebin]"
|
||||
|
@ -124,7 +124,7 @@ msgstr "送信しようとしたコンテンツはpastebinの上限サイズを
|
|||
|
||||
#: ../pastebinit:335
|
||||
msgid "Could not find any json library."
|
||||
msgstr "JSONライブラリーが見つかりません。"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:357
|
||||
msgid ""
|
||||
|
|
|
@ -14,7 +14,7 @@ msgstr ""
|
|||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-16 04:44+0000\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||
"X-Generator: Launchpad (build 14781)\n"
|
||||
|
||||
#: ../pastebinit:84
|
||||
|
|
|
@ -8,14 +8,14 @@ msgstr ""
|
|||
"Project-Id-Version: pastebinit\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||
"PO-Revision-Date: 2012-10-14 17:26+0000\n"
|
||||
"Last-Translator: Luís Sintra <lsintra93@gmail.com>\n"
|
||||
"PO-Revision-Date: 2011-01-24 16:45+0000\n"
|
||||
"Last-Translator: Marco Rodrigues <Unknown>\n"
|
||||
"Language-Team: Portuguese <pt@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-10-15 05:04+0000\n"
|
||||
"X-Generator: Launchpad (build 16137)\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||
"X-Generator: Launchpad (build 14781)\n"
|
||||
|
||||
#: ../pastebinit:84
|
||||
msgid "%s: no section [pastebin]"
|
||||
|
@ -23,25 +23,24 @@ msgstr "%s: nenhuma secção [pastebin]"
|
|||
|
||||
#: ../pastebinit:90
|
||||
msgid "%s: no 'basename' in [pastebin]"
|
||||
msgstr "%s: sem 'basename' no [pastebin]"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:115
|
||||
#, docstring
|
||||
msgid "Return the parameters array for the selected pastebin"
|
||||
msgstr "Retorna a lista de parâmetros para o pastebin selecionado"
|
||||
msgstr "Retorna o array de parametros para o pastebin selecionado"
|
||||
|
||||
#: ../pastebinit:149
|
||||
msgid ""
|
||||
"Unknown website, please post a bugreport to request this pastebin to be "
|
||||
"added (%s)"
|
||||
msgstr ""
|
||||
"Website desconhecido, por favor reporte um bug a solicitar que este pastebin "
|
||||
"seja adicionado (%s)"
|
||||
"Website desconhecido, por favor reportar um pedido a requisitar que este "
|
||||
"serviço de pastebin seja adcicionado."
|
||||
|
||||
#: ../pastebinit:171
|
||||
msgid "Reads on stdin for input or takes a filename as first parameter"
|
||||
msgstr ""
|
||||
"Lê o stdin como input ou leva um nome de ficheiro como primeiro parâmetro"
|
||||
|
||||
#: ../pastebinit:172
|
||||
msgid "Optional arguments (not supported by all pastebins):"
|
||||
|
@ -49,15 +48,15 @@ msgstr "Argumentos opcionais (não é suportado por todos os pastebins):"
|
|||
|
||||
#: ../pastebinit:173
|
||||
msgid "\t-a <author:default is '%s'>"
|
||||
msgstr "\t-a <autor:por omissão é '%s'>"
|
||||
msgstr "\t-a <autor:default é '%s'>"
|
||||
|
||||
#: ../pastebinit:174
|
||||
msgid "\t-b <pastebin url:default is '%s'>"
|
||||
msgstr "\t-b <pastebin url:por omissão é '%s'>"
|
||||
msgstr "\t-b <pastebin url:default é '%s'>"
|
||||
|
||||
#: ../pastebinit:175
|
||||
msgid "\t-f <format of paste:default is '%s'>"
|
||||
msgstr "\t-f <formato da colagem:por omissão é '%s'>"
|
||||
msgstr "\t-f <formado do paste:defeito é '%s'>"
|
||||
|
||||
#: ../pastebinit:176
|
||||
msgid "\t-h This help screen"
|
||||
|
@ -69,24 +68,23 @@ msgstr "\t-i <ficheiro de entrada>"
|
|||
|
||||
#: ../pastebinit:178
|
||||
msgid "\t-l List all supported pastebins"
|
||||
msgstr "\t-l Listar todos os pastebins suportados"
|
||||
msgstr "\t-l Listar os pastebins suportados"
|
||||
|
||||
#: ../pastebinit:179
|
||||
msgid "\t-j <jabberid for notifications:default is '%s'>"
|
||||
msgstr "\t-j <jabberid para notificações:por omissão é '%s'>"
|
||||
msgstr "\t-j <jabberid para notificações:o padrão é '%s'>"
|
||||
|
||||
#: ../pastebinit:180
|
||||
msgid "\t-m <permatag for all versions of a post:default is blank>"
|
||||
msgstr ""
|
||||
"\t-m <permatag para todas as versões de um post:por omissão está em branco>"
|
||||
msgstr "\t-m <permatag para todas versões de um post:o padrão é vazio>"
|
||||
|
||||
#: ../pastebinit:181
|
||||
msgid "\t-r <parent posts ID:defaults to none>"
|
||||
msgstr "\t-r <ID das postagens pais:por omissão não há nenhum>"
|
||||
msgstr "\t-r <ID das postagens pais:o padrão é nenhum>"
|
||||
|
||||
#: ../pastebinit:182
|
||||
msgid "\t-t <title of paste:default is blank>"
|
||||
msgstr "\t-t <título da colagem:por omissão está em branco>"
|
||||
msgstr "\t-t <título da colagem:o padrão é vazio>"
|
||||
|
||||
#: ../pastebinit:183
|
||||
msgid "\t-u <username> -p <password>"
|
||||
|
@ -118,26 +116,26 @@ msgstr "Pastebins suportados:"
|
|||
|
||||
#: ../pastebinit:293
|
||||
msgid "Unable to read from: %s"
|
||||
msgstr "Incapaz de ler a partir de: %s"
|
||||
msgstr "Impossível ler de: %s"
|
||||
|
||||
#: ../pastebinit:295
|
||||
msgid "You are trying to send an empty document, exiting."
|
||||
msgstr "Está a tentar enviar um documento vazio... a sair."
|
||||
msgstr "Você está tentando enviar um documento vazio, saindo."
|
||||
|
||||
#: ../pastebinit:304
|
||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||
msgstr ""
|
||||
"O conteúdo que está a tentar enviar excede o tamanho limite do pastebin."
|
||||
"O conteúdo que está a tentar enviar, excede o tamanho limite do pastebin."
|
||||
|
||||
#: ../pastebinit:335
|
||||
msgid "Could not find any json library."
|
||||
msgstr "Não foi possível encontrar qualquer biblioteca json."
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:357
|
||||
msgid ""
|
||||
"Unable to read or parse the result page, it could be a server timeout or a "
|
||||
"change server side, try with another pastebin."
|
||||
msgstr ""
|
||||
"Incapaz de ler ou interpretar a página de resultados. Isto pode dever-se ao "
|
||||
"esgotamento do tempo ou a uma mudança do servidor. Por favor tente outro "
|
||||
"pastebin."
|
||||
"Não foi possível ler ou interpretar a página de resultados, isto pode-se "
|
||||
"dever a um \"time out\" do servidor ou a uma mudança do servidor, por favor "
|
||||
"tente outro pastebin."
|
||||
|
|
|
@ -8,22 +8,22 @@ msgstr ""
|
|||
"Project-Id-Version: pastebinit\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||
"PO-Revision-Date: 2012-03-19 21:30+0000\n"
|
||||
"Last-Translator: Daniel Nylander <yeager@ubuntu.com>\n"
|
||||
"PO-Revision-Date: 2010-02-18 02:39+0000\n"
|
||||
"Last-Translator: Stéphane Graber <stgraber@stgraber.org>\n"
|
||||
"Language-Team: Swedish <sv@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-03-20 04:31+0000\n"
|
||||
"X-Generator: Launchpad (build 14969)\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||
"X-Generator: Launchpad (build 14781)\n"
|
||||
|
||||
#: ../pastebinit:84
|
||||
msgid "%s: no section [pastebin]"
|
||||
msgstr "%s: inget avsnitt [pastebin]"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:90
|
||||
msgid "%s: no 'basename' in [pastebin]"
|
||||
msgstr "%s: ingen \"basename\" i [pastebin]"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:115
|
||||
#, docstring
|
||||
|
@ -35,56 +35,56 @@ msgid ""
|
|||
"Unknown website, please post a bugreport to request this pastebin to be "
|
||||
"added (%s)"
|
||||
msgstr ""
|
||||
"Okänd webbplats, posta gärna en felrapport för att lägga till den begärda "
|
||||
"pastebin (%s)"
|
||||
"Okänd webbsida, var snäll och posta en bugrapport för att lägga till den "
|
||||
"begärda pastebin (%s)"
|
||||
|
||||
#: ../pastebinit:171
|
||||
msgid "Reads on stdin for input or takes a filename as first parameter"
|
||||
msgstr "Läser på standard in eller tar ett filnamn som första parameter"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:172
|
||||
msgid "Optional arguments (not supported by all pastebins):"
|
||||
msgstr "Valfria argument (stöds inte av alla pastebin):"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:173
|
||||
msgid "\t-a <author:default is '%s'>"
|
||||
msgstr "\t-a <författare:standard är \"%s\">"
|
||||
msgstr "\t-a <författare:standard är '%s'>"
|
||||
|
||||
#: ../pastebinit:174
|
||||
msgid "\t-b <pastebin url:default is '%s'>"
|
||||
msgstr "\t-b <pastebin url:standard är \"%s\">"
|
||||
msgstr "\t-b <pastebin url:standard är '%s'>"
|
||||
|
||||
#: ../pastebinit:175
|
||||
msgid "\t-f <format of paste:default is '%s'>"
|
||||
msgstr "\t-f <format för paste:standard är \"%s\">"
|
||||
msgstr "\t-f <format för paste:standard är '%s'>"
|
||||
|
||||
#: ../pastebinit:176
|
||||
msgid "\t-h This help screen"
|
||||
msgstr "\t-h Denna hjälpskärmen"
|
||||
msgstr "\t-h Den här hjälpen"
|
||||
|
||||
#: ../pastebinit:177
|
||||
msgid "\t-i <input file>"
|
||||
msgstr "\t-i <inmatningsfil>"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:178
|
||||
msgid "\t-l List all supported pastebins"
|
||||
msgstr "\t-l Lista alla pastebins som stöds"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:179
|
||||
msgid "\t-j <jabberid for notifications:default is '%s'>"
|
||||
msgstr "\t-j <jabberid för notifieringar:standard är \"%s\">"
|
||||
msgstr "\t-j <jabberid för notifieringar:standard är '%s'>"
|
||||
|
||||
#: ../pastebinit:180
|
||||
msgid "\t-m <permatag for all versions of a post:default is blank>"
|
||||
msgstr "\t-m <permatagg för alla versioner av en post:standard är blank>"
|
||||
msgstr "\t-m <permatag för alla versioner av en post:standard är blank>"
|
||||
|
||||
#: ../pastebinit:181
|
||||
msgid "\t-r <parent posts ID:defaults to none>"
|
||||
msgstr "\t-r <föräldraposters ID:standardvärde är ingen>"
|
||||
msgstr "\t-r <förälder posts ID:standard är tom>"
|
||||
|
||||
#: ../pastebinit:182
|
||||
msgid "\t-t <title of paste:default is blank>"
|
||||
msgstr "\t-t <titel för paste:standard är tom>"
|
||||
msgstr "\t-t <paste titel:standard är blank>"
|
||||
|
||||
#: ../pastebinit:183
|
||||
msgid "\t-u <username> -p <password>"
|
||||
|
@ -97,12 +97,12 @@ msgstr "KeyboardInterrupt fångat."
|
|||
|
||||
#: ../pastebinit:232
|
||||
msgid "Error parsing configuration file!"
|
||||
msgstr "Fel vid tolkning av konfigurationsfilen!"
|
||||
msgstr "Fel vid parsning av konfigurationsfil!"
|
||||
|
||||
#: ../pastebinit:233
|
||||
msgid ""
|
||||
"Please ensure that your configuration file looks similar to the following:"
|
||||
msgstr "Försäkra dig om att din konfigurationsfil liknar följande:"
|
||||
msgstr "Se till att konfigurationsfilen liknar följande:"
|
||||
|
||||
#: ../pastebinit:243
|
||||
msgid "Invalid arguments!\n"
|
||||
|
@ -110,7 +110,7 @@ msgstr "Ogiltiga argument!\n"
|
|||
|
||||
#: ../pastebinit:266
|
||||
msgid "Supported pastebins:"
|
||||
msgstr "Pastebins som stöds:"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:293
|
||||
msgid "Unable to read from: %s"
|
||||
|
@ -123,17 +123,15 @@ msgstr "Du försöker skicka ett tomt dokument, avslutar."
|
|||
#: ../pastebinit:304
|
||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||
msgstr ""
|
||||
"Innehållet som du försöker att skicka överstiger storleksgränsen för denna "
|
||||
"pastebin."
|
||||
|
||||
#: ../pastebinit:335
|
||||
msgid "Could not find any json library."
|
||||
msgstr "Kunde inte hitta något json-bibliotek."
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:357
|
||||
msgid ""
|
||||
"Unable to read or parse the result page, it could be a server timeout or a "
|
||||
"change server side, try with another pastebin."
|
||||
msgstr ""
|
||||
"Kan inte läsa eller tolka resultatsidan. Det kan bero på att tidsgränsen för "
|
||||
"servern överstegs eller en ändring på servern. Försök med en annan pastebin."
|
||||
"Kan inte läsa eller tolka resultatsidan. Det kan bero på en server timeout "
|
||||
"eller en ändring på servern. Försök med en annan pastebin."
|
||||
|
|
|
@ -8,14 +8,14 @@ msgstr ""
|
|||
"Project-Id-Version: pastebinit\n"
|
||||
"Report-Msgid-Bugs-To: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"POT-Creation-Date: 2012-02-13 00:42+0000\n"
|
||||
"PO-Revision-Date: 2012-06-01 17:12+0000\n"
|
||||
"Last-Translator: Şâkir Aşçı <Unknown>\n"
|
||||
"PO-Revision-Date: 2009-12-27 02:37+0000\n"
|
||||
"Last-Translator: Stéphane Graber <stgraber@stgraber.org>\n"
|
||||
"Language-Team: Turkish <tr@li.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-06-02 05:11+0000\n"
|
||||
"X-Generator: Launchpad (build 15342)\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||
"X-Generator: Launchpad (build 14781)\n"
|
||||
"X-Poedit-Country: TURKEY\n"
|
||||
"X-Poedit-Language: Turkish\n"
|
||||
|
||||
|
@ -112,7 +112,7 @@ msgstr "Geçersiz argümanlar!\n"
|
|||
|
||||
#: ../pastebinit:266
|
||||
msgid "Supported pastebins:"
|
||||
msgstr "Desteklenen pastebinler:"
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:293
|
||||
msgid "Unable to read from: %s"
|
||||
|
@ -125,11 +125,10 @@ msgstr "Boş bir belge göndermeye çalışıyordunuz, çıkılıyor."
|
|||
#: ../pastebinit:304
|
||||
msgid "The content you are trying to send exceeds the pastebin's size limit."
|
||||
msgstr ""
|
||||
"Göndermeye çalıştığınız içerik yapıştırmakutusu'nun boyut sınırını aşıyor."
|
||||
|
||||
#: ../pastebinit:335
|
||||
msgid "Could not find any json library."
|
||||
msgstr "Herhangi bir json kitaplığı bulunamadı."
|
||||
msgstr ""
|
||||
|
||||
#: ../pastebinit:357
|
||||
msgid ""
|
||||
|
|
|
@ -14,7 +14,7 @@ msgstr ""
|
|||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-16 04:44+0000\n"
|
||||
"X-Launchpad-Export-Date: 2012-02-15 21:04+0000\n"
|
||||
"X-Generator: Launchpad (build 14781)\n"
|
||||
|
||||
#: ../pastebinit:84
|
||||
|
|
|
@ -23,7 +23,6 @@ SearchString=True
|
|||
[OpenFile]
|
||||
File[1]=".src/Finfosys.form"
|
||||
File[2]=".src/Finfosys.class:7.49"
|
||||
Active=3
|
||||
File[3]=".src/Global.class:12.7"
|
||||
File[4]=".src/About.form"
|
||||
File[5]=".src/About.class:83.22"
|
||||
|
@ -36,9 +35,10 @@ File[11]=".src/ScreenShotM.module:7.0"
|
|||
File[12]=".src/USB_Drives.module:39.66"
|
||||
File[13]=".src/Asound_Drives.module:33.27"
|
||||
File[14]=".src/HWmon_coretemp.module:4.1"
|
||||
File[15]=".src/Reportm.module:319.10"
|
||||
Active=15
|
||||
File[15]=".src/Reportm.module:336.33"
|
||||
File[16]=".src/FReport_Gen.form"
|
||||
File[17]=".src/FReport_Gen.class:23.27"
|
||||
File[17]=".src/FReport_Gen.class:30.1"
|
||||
File[18]=".src/Start_App_Args.form"
|
||||
File[19]=".src/Start_App_Args.class:38.13"
|
||||
File[20]=".src/ChkPrm.module:15.0"
|
||||
|
|
|
@ -12,16 +12,21 @@ Public Sub Form_Open()
|
|||
ComboBox1.Add("paste2.org")
|
||||
ComboBox1.Add("pastebin.com")
|
||||
ComboBox1.Add("paste.debian.net")
|
||||
ComboBox1.Add("paste.debian.net")
|
||||
ComboBox1.Add("paste.drizzle.org")
|
||||
ComboBox1.Add("paste.kde.org")
|
||||
ComboBox1.Add("paste.openstack.org")
|
||||
ComboBox1.Add("paste.pocoo.org")
|
||||
ComboBox1.Add("paste.pound-python.org")
|
||||
ComboBox1.Add("paste.ubuntu.com")
|
||||
ComboBox1.Add("paste.ubuntu.org.cn")
|
||||
ComboBox1.Add("pastie.org")
|
||||
ComboBox1.Add("pb.daviey.com")
|
||||
ComboBox1.Add("p.defau.lt")
|
||||
ComboBox1.Add("slexy.org")
|
||||
ComboBox1.Add("sprunge.us")
|
||||
ComboBox1.Add("yourpaste.net")
|
||||
|
||||
Me.Center
|
||||
|
||||
End
|
||||
|
|
22
test.sh
22
test.sh
|
@ -1,18 +1,14 @@
|
|||
#!/bin/sh
|
||||
teststring="blah blah blah"
|
||||
|
||||
for interpreter in python python3
|
||||
for pastebin in $(./pastebinit -l | egrep "^-" | sed "s/^- //g")
|
||||
do
|
||||
for pastebin in $(./pastebinit -l | egrep "^-" | sed "s/^- //g")
|
||||
do
|
||||
echo "Trying http://$pastebin ($interpreter)"
|
||||
URL=$(echo -e "$teststring\n$teststring\n$teststring" | $interpreter pastebinit -b http://$pastebin)
|
||||
out=$(wget -O - -q "$URL" | grep "$teststring")
|
||||
if [ -n "$out" ]; then
|
||||
echo "PASS: http://$pastebin ($URL) ($interpreter)"
|
||||
else
|
||||
echo "FAIL: http://$pastebin ($URL) ($interpreter)"
|
||||
fi
|
||||
echo ""
|
||||
done
|
||||
echo "Trying http://$pastebin"
|
||||
URL=$(echo -e "$teststring\n$teststring\n$teststring" | ./pastebinit -b http://$pastebin)
|
||||
out=$(wget -O - -q "$URL" | grep "$teststring")
|
||||
if [ -n "$out" ]; then
|
||||
echo "PASS: http://$pastebin ($URL)"
|
||||
else
|
||||
echo "FAIL: http://$pastebin ($URL)"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue