Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to submit a text post on reddit via a url

Tags:

reddit

I know there's a way to submit a link post to reddit.

https://www.reddit.com/r/test/submit?title=myTitle&url=http://www.exampledsfsd.com

which pops up a page like this with the title and url filled in

enter image description here

Is there a way to initiate the submission of a text post? It really just needs to get to the "text" tab and fill on the "text" field in this page

enter image description here

Just to be clear, I'm aware of the Reddit API. I don't want to take an approach that requires setting up a reddit account, a reddit app, and manage authentication for the user. I actually already tried this approach but there are issues with using it with other aspects of my site. I'm looking for something simple like the submit Link Post above

like image 625
kane Avatar asked Sep 05 '15 06:09

kane


People also ask

Can you add text to Reddit link post?

Choose Your Post Type Like on your computer, you'll now need to tap the icon for the type of post you want to create. It can be a text post, image/video post, or a link on Reddit.

How do I submit a URL on Reddit?

On the front page, just click the "Submit" link and it'll take you here. Enter the URL of the site and a title (or click the "Suggest" button to have a title auto-fetched from the page you're linking to) and then select a reddit (i.e., a category).

Can you post links on Reddit?

everyone is able to link something in 1 word. like for example. "click in this link here" and "here" will be a link.

How do I post a newspaper article on Reddit?

Step 1: Open the Reddit mobile app on your device. Step 2: Select the Plus sign icon at the bottom of your screen. Step 3: Choose the type of post you want to create (image, text, video, link, etc.) from the menu that appears at the bottom of your screen.


1 Answers

As CoderDennis said, you can use the submit page with the text parameter (urlencoded). You should also set selftext to true, which sets the displayed tab to the self post tab (although it's not required as that is inferred based off of the text parameter).

Some of the things in the doc for /api/submit still apply to that page (although only a few). You can see exactly how it works by looking at the code used for the actual page on reddit's GitHub (here and here)

For submitting a text post, what you'll want is a URL like this:

https://www.reddit.com/r/test/submit?title=Title%20to%20use&selftext=true&text=Urlencoded%20self%20post%20text

This will open the submit page for /r/test to submit a new post with the title "Title to use", and a post body of "Urlencoded self post text".

Here are all of the parameters, for reference:

  • title: Title of the post to submit
  • url: URL to submit to
  • text: Text of the self post
  • selftext: Whether to default to the self text tab (true to do so). If text is present, then it will default to displaying that tab anyways.
  • resubmit: Whether to resubmit the post (if not present and submitting a link post, and another post already links there, you will be taken to that post instead with an option to resubmit it).
like image 83
Pokechu22 Avatar answered Sep 17 '22 16:09

Pokechu22