Giter Club home page Giter Club logo

wp2ebookbot's Introduction

See https://www.reddit.com/r/Lightbulb/comments/7cfe6r/make_a_free_ebook_for_each_wp_from_rwritingprompts/

Premature termination

This project was terminated prematurely. During the very first round of permission questions, the mods of /r/WritingPrompts did ban the bot. I was told that I should've asked the community first if there is acceptance. I couldn't convince the mods to let me ask them after the fact. Unless anybody else can ask if /r/WritingPrompts wants an E-Book bot, there is no reason for me to finish this project.

Installation

AWS

Register an account at AWS and create a S3 bucket with public read access. Create an identity with write access to that bucket. Set these properties in application.properties:

  • jclouds.identity: Access key ID
  • jclouds.credential: Secret Access key ID
  • jclouds.formats.container: bucket name

Reddit

Register an account at reddit. Create an application as described in https://github.com/reddit/reddit/wiki/OAuth2-Quick-Start-Example. Set these properties in application.properties:

  • reddit.auth.username: user name
  • reddit.auth.password: password
  • reddit.auth.clientId: App's client id
  • reddit.auth.clientSecret: App's client secret

Roadmap

PoC - Generate an E-Book

Shared

  • Integrate blocking Reddit API to respect their rate limit

Integration

  • Choose an event handler system (e.g. Spring or Akka)
  • Implement PublicationPermitted handler in PublishCommentAsEBookApplicationService.publish()
  • Implement EBookPublished handler in PublishEBookApplicationService.publish()
  • Implement EBookRevoked handler in UnpublishEBookApplicationService.unpublish()

E-Book generator

  • Design model
  • Implement PublishRedditCommentApplicationService
  • Implement UnpublishEBookApplicationService
  • Implement RedditCommentRepository
  • Implement EBookFactory for EPUB
  • Implement EBookFactory for MOBI
  • Implement PublishedFormatJCloudsRepository
  • Implement an integration test for publishing a comment on S3

Reddit bot

  • Design model
  • UC: Identify new comments and ask author for permission
  • UC: Understand author's permission reply and start EBook publication
  • UC: Understand author's unpublish wish and start Unpublishing
  • Implement InboxMessageRepository
  • Implement NLPService
  • Implement WritingPromptRepository
  • Implement AnswerCommentService

License and authors

This project is free and under the WTFPL. Responsible for this project is Markus Malkusch [email protected].

wp2ebookbot's People

Contributors

malkusch avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

wp2ebookbot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.