<commit_before># imgur2rss

A application you can run on Heroku to make RSS feeds of Imgur things.

It currently only supports Imgur albums.

## Usage: Command Line

[Register an Imgur application](https://api.imgur.com/oauth2/addclient) and copy the Client ID. Then:

```
$ npm install -g imgur2rss
$ imgur2rss -c YOUR_CLIENT_ID album tleVt
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
...
```

## Usage: Module

```coffeescript
i2r = require "imgur2rss"
i2r.album2rss clientId, albumId, (err, xml) ->
  if err
    console.error "Error: #{ err }"
    process.exit 1
  else
    console.log xml
```

## Usage: Heroku


<commit_msg>Instructions for Heroku.<commit_after># imgur2rss

A application you can run on Heroku to make RSS feeds of Imgur things.

It currently only supports Imgur albums.

## Usage: Command Line

[Register an Imgur application](https://api.imgur.com/oauth2/addclient) and copy the Client ID. Then:

```
$ npm install -g imgur2rss

$ imgur2rss -c YOUR_CLIENT_ID album tleVt
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
...
```

## Usage: Module

```coffeescript
i2r = require "imgur2rss"
i2r.album2rss clientId, albumId, (err, xml) ->
  if err
    console.error "Error: #{ err }"
    process.exit 1
  else
    console.log xml
```

## Usage: Heroku

```
$ git clone https://github.com/statico/imgur2rss.git

$ cd imgur2rss

$ heroku create
...
https://someplace-somewhere-1234.herokuapp.com/ ...
Git remote heroku added

$ git push heroku master
...
remote: -----> Launching... done, v1
remote:        https://someplace-somewhere-1234.herokuapp.com/ deployed to Heroku
...
```

Now go to that URL and append `/a/tleVt` to the URL.


{'fraction_non_alphanumeric': 0.1386079714455681, 'fraction_numerical': 0.023200475907198096, 'mean_word_length': 3.521505376344086, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 2, '>': 10, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3533406', 'n_tokens_mistral': 632, 'n_tokens_neox': 596, 'n_words': 182}