This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]+$') | |