Skip to content

Instantly share code, notes, and snippets.

View plgonzalezrx8's full-sized avatar
:octocat:
Protecting the cyberspace.

Pedro Gonzalez plgonzalezrx8

:octocat:
Protecting the cyberspace.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am plgonzalezrx8 on github.
  • I am plgonzalezrx8 (https://keybase.io/plgonzalezrx8) on keybase.
  • I have a public key ASCz6YOu3nYxv9hunD32rTQfEN2RYNSonVO2SzMOOTSvpAo

To claim this, I am signing this object:

@plgonzalezrx8
plgonzalezrx8 / cleaner.py
Created July 16, 2018 15:47
txt file cleaner to remove all empty lines
#! /usr/bin/env python2.7
import glob
counter = 0
cache = []
# Get rid of empty lines
def cleanemptylines(filename):
@plgonzalezrx8
plgonzalezrx8 / parser.py
Created July 16, 2018 15:45
Subreddit Comment Parser
#! /usr/bin/env python2.7
"""This application will go through all the comments on a specific subreddit and parse all
the comments and save them to a local text file"""
import threading
import praw
import time
import cleaner
import glob
#reffer to the praw documentation for more info on clientID and client_secret. (API Keys)