Limited PowerShell wrapper for the Python praw library

2016-08-25 00:38:00 +0000 - Written by Carl Burks

Wrapping the python praw library with a command line interface then wrapping that with PowerShell was a rather simple task. Like Ian says in the movie Jurassic Park:

"Your scientists were so preoccupied with whether they could, they didn't stop to think if they should."

Sometimes it is fun just to code something. It gives you time to experiment with new technologies. I had not played with the praw library before and this gave me a chance to tinker with it.

I've got a bigger project in mind, but playing with the components gives me a chance to figure out problems before working on the large scale project. Here is what I am thinking:

Worker Tasks

I went ahead and added two files to my PowerShellFunctions Repo

Both are located under:

PS-Python-Functions a limited shell wrapper around the Python Reddit Api Wrapper

lspraw.ps1 a PowerShell function calling the Python file which in turn calls the Python Reddit Wrapper

It would be simple enough to call the Get-RedditSubmissions and for each on linksubmissions and calling pandoc to download the html file as a pdf, but we want something a little more complicated than that....

Perhaps some docker, rabbitMQ, celery, python scripts, and natural language parsing.