Carl Burks is a software developer for a global financial institution. With over ten years experience in technology and software development for financial organizations and over twenty years of software experience, Carl Burks provides articles, musings and insight into technology issues, software development, and other selected topics.

Limited PowerShell wrapper for the Python praw library


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

  • querying and posting to message queue
  • download new links from message queue
  • converting html page to PDF
  • processing keywords from page and adding indices

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.