Questions tagged [pastebin]

Pastebin is an online service for hosting text and code excerpts, so-called "pastes". Use this tag only for questions directly related to the Pastebin service or APIs.

Pastebin is a freemium online service for hosting text and code excerpts, so-called "pastes". While it has been widely used for hosting code, the website is open to any type of text content.

When creating a paste, users can enable syntax highlighting for a variety of languages, set a paste expiration, make the pastes private or protect them with a password.

It also features an API enabling developers to send pastes from their applications, as well as a paid scraping API to query the website for recently published content.

How to ask

Use this tag to ask questions directly related to the Pastebin service, such as integrating with the API or sending code to the website.

Do not use this tag for questions which happen to have a code paste in them, but are not strictly related to the Pastebin service itself. These questions only belong to the specific language tags of your problem.

Reference links

143 questions
31
votes
3 answers

Is there an internal alternative to gist.github.com to run behind a firewall?

gist.github.com is incredibly handy, but I'd like to be able run something similar for sharing code samples internally with other developers behind the firewall where I work, so I don't constantly need to be sanitising my code all the time, just to…
Chris Adams
  • 2,721
  • 5
  • 33
  • 45
30
votes
11 answers

How to use pastebin from shell script?

Is it possible to use pastebin (may be via their "API" functionality) inside bash shell scripts? How do I send http-post? How do I get back the URL?
litro
  • 509
  • 2
  • 6
  • 8
27
votes
1 answer

Pastebin, but for HTML?

Pastebin is a useful online tool to paste snippets of text. Pastie is a similar tool. Also, Ideone is similar except that it also runs the source code, as well as being a general pastebin. Is there a similar tool, for HTML? To host simple one-page…
aplm
  • 353
  • 1
  • 4
  • 6
26
votes
5 answers

Is there an Open Source pastebin?

Frequently I write wiki pages or set up configuration files that I need to share with other developers. Are there any pastebin clones out there that you can install in your own network and if not? how do you manage code snippets or configurations…
James
  • 15,085
  • 25
  • 83
  • 120
19
votes
3 answers

PowerShell keep text formatting when reading in a file

I believe this is a simple question, but I can't wrap my head around it. I want to do diagnostic commands in command shell on Windows. Like this: $cmd = "ipconfig >> c:\test.txt" $message = Invoke-Expression($cmd) [String]$message =…
user1310856
  • 335
  • 1
  • 3
  • 7
9
votes
10 answers

What is a good open source pastebin in Python or Perl?

I'm looking for an open-source pastebin web-application written in either Python or Perl. I need it in order to implement a web-based specialized editor for my own needs, and I want to borrow code / ideas from the pastebin since I don't have much…
Eli Bendersky
  • 263,248
  • 89
  • 350
  • 412
8
votes
2 answers

Send URL-encoded parameters in Node.js using request module

I am trying to create a new paste using the PasteBin API with request module like so: var request = require("request"); request({ url : "http://pastebin.com/api/api_post.php", method : "POST", qs : { "api_dev_key" :…
An SO User
  • 24,612
  • 35
  • 133
  • 221
7
votes
1 answer

How to paste text in Pastebin using JavaScript

I'm using Tampermonkey (the same as Greasemonkey, but for Chrome) to make a script. The idea is to paste the text I write into Pastebin. The text was written in other website. I saw I can do it using GM_xmlhttpRequest, but it doesn't work. This is…
Victor Buendía
  • 451
  • 11
  • 21
7
votes
3 answers

How can I access a raw private paste from pastebin?

I know how to generate a user key using the pastebin API, but how can I use this userkey to access a raw private paste? I am using Lua for this.
daxvena
  • 1,140
  • 3
  • 14
  • 30
6
votes
1 answer

What are the differences between Github Gists and Pastebin?

I have not used either of them till yet. I looked at their websites and found their brief descriptions: Github Gist: Instantly share code, notes, and snippets. Pastebin: Pastebin is a website where you can store any text online for easy sharing.…
Pritt Balagopal
  • 1,476
  • 2
  • 18
  • 32
5
votes
1 answer

jQuery $.post with PasteBin API

Ok, I'm trying to use jQuery $.post with the PasteBin API to create a PasteBin page and grab the URL (which the API says it returns). Here is my code so far: $('#send_code').click(function(){ $.post('http://pastebin.com/api_public.php', …
John K
  • 274
  • 4
  • 10
4
votes
2 answers

Patebin api returning "Bad API request, use POST request, not GET" for requests.post in python?

I am trying to use patebin api from python using requests.post which sends out a post request, my code is # importing the requests library import requests # defining the api-endpoint API_ENDPOINT = "http://pastebin.com/api/api_post.php" # your API…
Anish
  • 89
  • 1
  • 10
4
votes
1 answer

Can I host a CSS stylesheet on Pastebin?

This is more out of curiosity than anything, but is it possible to save a stylesheet on Pastebin and load it in an HTML document? I tried to do it the way you'd normally link a stylesheet, but it didn't work. Here's the test code I used: …
Ninten1
  • 43
  • 4
4
votes
1 answer

Error with pastebin API: Bad API request, invalid api_paste_format

I am using this API, and this is my program. Whenever I try to send a paste to pastebin I get an error on line 77 in the API: return resp; I'm not sure what I should do to enable the post to send successfully. A first chance exception of type…
Zed
  • 651
  • 1
  • 5
  • 25
4
votes
1 answer

Problems importing external CSS files on Codepen.io

I love working with Codepen and I'm trying to import a css file from Pastebin. Here is a link to my external file hosted on Pastebin: http://pastebin.com/raw.php?i=mj9dmzZw and inside that file I link to my actual font files. I'm not sure what I'm…
Ryan Gill
  • 1,728
  • 2
  • 13
  • 27
1
2 3
9 10