# Plugin using own gem

**URL:** <https://meta.discourse.org/t/plugin-using-own-gem/50007>\
**Category:** Development\
**Created:** [September 12, 2016, 11:11am UTC](https://meta.discourse.org/t/plugin-using-own-gem/50007 "2016-09-12T11:11:58Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [September 14, 2016, 9:07pm UTC](https://meta.discourse.org/t/plugin-using-own-gem/50007/9 "2016-09-14T21:07:49Z")

</div>

I"m sure she will be. I just wrote a Ruby program that takes either a topic or category URL on the command line and downloads a topic (or all of them in the category) as a sort-of MBOX file with headers like these:

```bash
From username 1365 2016-07-18T02:20:41.074Z
Name: Jay User (username)
Subject: Week 7 Discussion
Date: 2016-07-28T02:20:41.074Z
Post: 10
Reply-to: 9
Num-Replies: 0
Read-time: 30
Times-read: 21
Post-URL: https://literatecomputing.com/t/79/10

```

followed by either the HTML or the raw Markdown text.

---

_[View the full topic](https://meta.discourse.org/t/plugin-using-own-gem/50007)._
