Archive

Posts Tagged ‘reddit’

purge a reddit account

August 2, 2016 Leave a comment

Problem
You have a reddit account that you want to empty, i.e. delete all the posts and comments you have made.

Solution
Use Shreddit. It deletes a limited number of posts/comments in a session, so you may have to re-run it several times. When it cannot remove anything, then it’s done.

Categories: python Tags: ,

reddit from the terminal

September 7, 2015 Leave a comment

There is a command line interface for Reddit called “rtv” (reddit terminal viewer). It’s written in Python, so you can install it with pip.

Here is a short youtube video on how to use it.

Categories: bash, linux, python Tags: , ,

Become a Reddit power user

Goal
You want to become a Reddit power user.

Tip
Install the Reddit Enhancement Suite Firefox add-on. The result will be a Reddit on steroids :)

Links

Categories: firefox Tags: , ,

University of Reddit

October 3, 2012 Leave a comment
Categories: Uncategorized Tags: ,

Let’s go back to the 80s

April 1, 2012 Leave a comment

I always think of the 80s as the best decade of my life. I guess it’s because that’s when I was a child :) Now we can go back in time with reddit’s timeline: http://www.reddit.com/t/1980s/.

Browse all pages of a subreddit

August 27, 2011 Leave a comment

Problem

When you visit a subreddit on reddit.com, for instance http://www.reddit.com/r/python, at the bottom of the page you will find just a “next” link to the next page. Needless to say, browsing older entries like that is a PITA…

Solution
I made a simple script that generates a static HTML page with links to all the older pages: [1] [2] [3]…

Download
You can find the script reddit_get_all_pages.py in my Bash-Utils collection, in the reddit/ folder.

Usage
Customize the constant REDDIT in the header of the script and execute it:

./reddit_get_all_pages.py

Limitation
This script made me figure out that reddit lists only the last 1000 posts! Older posts are hidden. If you have a direct link to them, fine, otherwise they are gone :( So this script will only list 40 pages. This is a limitation of reddit.

More info:

Categories: python Tags: ,

Browse your favorite subreddits painlessly

August 11, 2011 Leave a comment

Problem

You visit your favorite subreddit and you notice that it’s full of new posts. If you want to check them all, you need to click on each post. How to open all these posts in new tabs?

Solution

I made a little Python script for solving this problem (available here, in the folder “reddit”). Just specify a subreddit and what to extract (comment links [-c switch] or direct URLs [-u switch]). The script will list the available links. With another script of mine you can open these links in Firefox.

Basic usage

./reddit_get_posts.py -c /r/earthporn

Get links to comments of subreddit “earthporn”.

./reddit_get_posts.py -u /r/earthporn

Get links to direct URLs of subreddit “earthporn”.

./reddit_get_posts.py -u http://www.reddit.com/r/earthporn

You can specify the complete URL of the subreddit.

./reddit_get_posts.py -u http://www.reddit.com/r/EarthPorn/?count=25&after=t3_jffyd

You can even browse pages on reddit.com.

./reddit_get_posts.py -u

Extract links of your favourite subreddit (specify it with the constant DEFAULT_REDDIT).

Advanced usage

This script can be used together with another script of mine called open_in_tabs.py, which
is part of this Bash-Utils project too. open_in_tabs.py can open the extracted links in
your Firefox instance. Example:

./reddit_get_posts.py -u /r/earthporn | open_in_tabs -s

This will open the links simultaneously (-s switch) in Firefox.

Categories: python Tags: , ,