March 11, 2015

How to get Post Titles in a Subreddit

I'm fairly up-front about the fact that I use reddit. This afternoon, though, I found a post asking for a way to extract subtitles to Excel. Well, kind user, your solution is below:

Sample run:

 % python reddit2csv.py --subreddit openbsd
Using OpenBGPD to distribute pf table updates to your servers [xpost from /r/sysadmin]
"Make httpd TLSv1.2-only by default. Some older browsers, like IE 10, will be incompatible with this change."
OpenBSD newbie // Strange behaviour with irssi
802.11a USB options
Keyboard doesn't work after resume on HP Elitebook 2560p with OpenBSD 5.6
LibreSSL 2.1.4
Summer of Code 2015 Project Ideas Announced
Errata for X Server Infoleak
The Security of OpenBSD: Milk or Wine? (2006)
Improving browser security
Network Shell?
Episode 078: From the Foundation (Part 2)
OpenBSD Foundation 2014/2015 News & Fundraising
BSDNow Episode 076: Time for a Change
s2k15 Hackathon Report: mpi@ on network stack SMP
OpenBSD Just Works
Jazz concert with OpenBSD synths
s2k15: Authenticated TLS 'constraints' in ntpd(8)
Build a workstation from parts, minimize dependence on binary blobs?
iwm driver, for Intel 7260 wifi cards, now in tree
Setting console font on raster display
Missing dependencies on -current?
Troubleshooting Libvirt/virtualmachinemanager (post install)
Is the official OpenBSD website open-source?

2 comments:

  1. Would you be able to update this code? it does not seem to work for me. I am receiving errors with the urllib2 library are you still able to run the code?

    ReplyDelete