Skip to content
View Top WAYWT nodejs
var http = require('http');
var util = require('util');
var fs = require('fs');
var topPosts = [];
var search = "WAYWT -";
var url = 'http://www.reddit.com/r/malefashionadvice/search.json?q=title%3A'+ search +'%20author%3AMFAModerator&restrict_sr=on&sort=new&t=year&limit=100';
var base = 'http://www.reddit.com/';
var httpRegex = /https?:\/\/[a-zA-Z0-9\.\/#?=]*/gi;
var postUrls = [];
View main.py
import praw
import datetime
import time
import re
import mimetypes
import logging
# Regex which (hopefully) matches the WAYWT titles
waywt_title_pattern = re.compile('^WAYWT - [A-Za-z\.]+ [0-9]+[a-z]+$')
Something went wrong with that request. Please try again.