Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MonkeyIsNull/reddhl
An headline and link puller for Reddit and its various subreddits
https://github.com/MonkeyIsNull/reddhl
Last synced: 3 months ago
JSON representation
An headline and link puller for Reddit and its various subreddits
- Host: GitHub
- URL: https://github.com/MonkeyIsNull/reddhl
- Owner: MonkeyIsNull
- License: apache-2.0
- Created: 2015-05-20T16:01:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-08T16:19:34.000Z (about 9 years ago)
- Last Synced: 2024-10-04T15:38:13.006Z (4 months ago)
- Language: Elixir
- Size: 121 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - An headline and link puller for Reddit and its various subreddits. (Third Party APIs)
- fucking-awesome-elixir - reddhl - An headline and link puller for Reddit and its various subreddits. (Third Party APIs)
- awesome-elixir - reddhl - An headline and link puller for Reddit and its various subreddits. (Third Party APIs)
README
Reddhl
======An headline and link puller for Reddit and its various subreddits
Given a subreddit it pulls the json data from Reddit which is usually the top 25 posts
You can then pull the title and url link for any of those.# Usage
Here's how it works```elixir
threads = Reddhl.pull("elixir") # returns the top 25 "threads"
Reddhl.url(threads, 1) # get the 1st post's url "https://medium.com/@mschae/measuring-your-phoenix-app-d63a77b13bda"
Reddhl.title(threads, 1) # get the 1st post's title "Phoenix Monitor"
```# Dep info
Add the dependency to your mix.exs file:
```elixir
defp deps do
[{:reddhl, "~> 0.0.2"}]
end
```## License Information
* reddhl: [LICENSE](LICENSE)
## Release Notes
### 0.0.2Merged in code from jinyeow
Changed priv API from merge
### 0.0.1Initial Release