Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reddit Agent #16

Closed
amacgregor opened this issue Mar 20, 2013 · 11 comments
Closed

Reddit Agent #16

amacgregor opened this issue Mar 20, 2013 · 11 comments

Comments

@amacgregor
Copy link

I have some code from a similar project that can be adapted to create a Reddit Agent

@cantino
Copy link
Member

cantino commented Mar 21, 2013

Hey @amacgregor, that'd be very cool.

@0xdevalias
Copy link
Member

@amacgregor Was this still something you had laying around/wanted to contribute?

@0xdevalias
Copy link
Member

Added to agent suggestions list in #353

drcapulet pushed a commit to drcapulet/huginn that referenced this issue Jul 31, 2014
# By Xavier Shay (25) and Alex Coomans (2)
* commit '2fc4783064a6292bc9cf25badf60457848e02ce9': (27 commits)
  Fix SamsaConsumer.topics
  Use correct connection for SamsaConsumer.topics
  Remove errant file.
  Samsa agent docs, filter for hoistbuild.
  Fix up worker.
  Use proxy settings in worker.
  info log level (default is actually debug)
  Flush log output from worker.
  Use correct ruby
  Correct host for samsa staging.
  Background worker, no twitter.
  Same fix for SamsaErrorAgent
  Fix error with missing method
  Status endpoint.
  mysql
  databass
  staging config
  Fix database config
  derp
  Fix secret token
  ...
@ghost
Copy link

ghost commented Sep 19, 2014

I was thinking about taking a stab at this reddit agent. I've been using the website scraper to grab all posts on the new section of a subreddit and parse the json using a trigger agent.

The website agent already has most of the functionality we would need for an iteration 0 of grabbing from reddit. Some things I would want to see built-in:

  • Grabbing posts from hot/new/rising/controversial views of a sub-reddit
  • option to choose ssl or not (http vs https)
  • Following a particular user's posts

The functionality above deals with just scraping pages anonymously. I can imagine having the ability to log-in to your account, and perform actions as well. Thoughts?

@cantino
Copy link
Member

cantino commented Sep 20, 2014

Hey @mcgriddle. Welcome!

I could see two approaches:

  1. you might be able to achieve most of the above using Huginn itself, with a set of WebsiteAgents and triggers. (You might need to add a few small missing features to Huginn as well.)

  2. You could make a dedicated RedditAgent that did portions of the above in pure Ruby.

@ghost
Copy link

ghost commented Mar 27, 2015

So I started to write some code around a reddit agent, but the more I dug into it the more opinionated I realized the agent would have to be. I prefer just to use the existing agents: Website -> Deduplication -> Trigger -> Formatter -> Pushbullet

@cantino
Copy link
Member

cantino commented Mar 28, 2015

You could put those in a Scenario and then export and share it.

@kholbekj
Copy link

kholbekj commented Nov 2, 2016

Hey guys. I've started on this as my first agent, it's in a very rough, but functional state:
https://github.com/kholbekj/huginn/blob/reddit_agent/app/models/agents/reddit_agent.rb

It currently serves my intended purposes, but I'd love some feedback to refine it and create a PR <3

@cantino
Copy link
Member

cantino commented Nov 6, 2016

Hey @kholbekj, welcome! This might be a good candidate for pulling into a gem using https://github.com/cantino/huginn_agent. You're also welcome to make a preliminary PR to Huginn with this and we can give some feedback.

@kholbekj
Copy link

kholbekj commented Nov 8, 2016

Okay, I'll start with the PR then, and look into extraction at some point!

@kholbekj kholbekj mentioned this issue Nov 8, 2016
@HaxCzar
Copy link

HaxCzar commented Oct 14, 2019

Any word on when this will be added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants