138 questions
0 votes
1 answer
110 views
Jsoup can't find existing element by class name
I'm trying to parse pastebin page with all params(likes, views_count, etc). And all fine except raw text. I know that there is a \<paste_id\>/raw, but I don't want to use it since I will have to ...
2 votes
1 answer
2k views
How to download private pastebin paste via curl (cmd/bat)
I want to download my private paste via a batch/cmd file with using curl. As it is private, I have to login with my API dev key but this does not work. The output is some HTML code. I already tried ...
-2 votes
2 answers
55 views
How can I run code that my Python program stored in a string? [duplicate]
So, im trying to make a script that takes code from a pastebin post and runs it. But, for some reason it doesnt run the code. I dont know why. Could someone explain why this wont work so i can fix the ...
1 vote
1 answer
250 views
"Bad API request, invalid api_dev_key" when POSTing to pastebin API using Python 3.9 (win10)
I have been attempting to solve this far too longer than id like to admit, I think the problem is how the data is being parsed with json and being interoperated via the API, as I do not have the same ...
0 votes
0 answers
214 views
trying to get string from Pastebin not working (HWID) python
code below worked for some time now it completely doesnt work no errors just not getting my hwid in that requests.get('PB URL').text: import requests import subprocess hwid = subprocess.check_output('...
0 votes
0 answers
116 views
Text Area of Pastebin
Hey I was just wondering how to can get just the text area of a Pastebin because i downloaded the Pastebin with a Webclient but i got all of this: I just want the part that says Email, James, Gmail, ...
0 votes
1 answer
1k views
How to send a Post request to the Pastebin API vie Code by Zapier and fetch?
I'm trying to formulate a post request to the Pastebin API in Code by Zapier using fetch. After some trial and error, I managed to do it using URLencoded data, like this: const { URLSearchParams } ...
0 votes
2 answers
2k views
422 unprocessable entity error received from pastebin POST request
I've been making a big project recently and have been trying to figure out how to make my C# .Net program post a string to Pastebin and return the URL of the paste created. I've gotten a few lines of ...
0 votes
2 answers
886 views
Keep getting an error in PythonAnywhere while using Paste.ee api
I am using the paste.ee api in my application but I keep getting the following error: requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.paste.ee', port=443): Max retries exceeded with url:...
1 vote
1 answer
996 views
POSTing Pastebin API to create a past in Python and get a correct reply, yet the pasted data is incorrect
So I am attempting to code a program that POSTs towards Pastebin and creates a new paste. The posting, requesting, etc is all going fine - yet when I check the actual Paste, it is just a single word ...
2 votes
1 answer
3k views
Getting the raw content from pastebin [Java]
When I try to retrieve the data from a pastebin and convert it to a string. It returns nothing. Just an empty line. Code: try { URL url = new URL("http://pastebin.com/raw.php?i="+...
1 vote
0 answers
182 views
Posting data via LSL to pastebin
I'm experimenting with storing data off-world using free resources and right now I'm trying out making pastes in pastebin. When I try make a new paste I get this error in http_response: "...
2 votes
1 answer
9k views
How to get a raw data from Pastebin with password?
I want to get a raw data using password from certain locked pastebin link with python. I can't figure out what to do. Is it impossible to get pastebin raw data using python's requests module and post ...
0 votes
3 answers
133 views
(Python 3) - Regex issue not returning matches
A bit of a backstory. I am trying to scrape pastebin's archive page and get only the IDs of pastes. IDs are 8 characters long and an example link to a paste is as follows: "https://pastebin.com/...
0 votes
2 answers
2k views
How to use pastebin API with python?[specific error]
I'm trying to use the pastebin api with docs: python https://pastebin.com/doc_api. Using the urllib library: https://docs.python.org/3/library/urllib.html. import urllib.request import urllib.parse ...