Giter Club home page Giter Club logo

simplenewsbot's Introduction

simplenewsbot

Twitter Bot. News in headlines, and inline with images. Formatted to fit your app. Won't flood your stream.

Getting Started

Twitter

  • Create a Twitter account at http://twitter.com
  • Go to http://dev.twitter.com and Sign In
  • Choose "My Applications" from the menu
  • Click "Create New Application" and follow various steps
    • Make sure app has "Read and Write" permissions
  • Note the following:
    • API key
    • API Secret
    • Access token
    • Access token secret

Bitly

This is optional but you'll need to modify the code to not use Bitly if you want to use original URL in the Bot's messages.

Code

Modify using the above with the below:

$this->twitter_handle     = "simplenewsbot"; /* You may not want to use MY account */
$this->consumer_key       = 'THE VARIABLE NAME EXPLAINS WHAT GOES HERE';
$this->consumer_secret    = 'THE VARIABLE NAME EXPLAINS WHAT GOES HERE';
$this->oauth_token        = 'THE VARIABLE NAME EXPLAINS WHAT GOES HERE';
$this->oauth_token_secret = 'THE VARIABLE NAME EXPLAINS WHAT GOES HERE';
$this->bitlyToken         = 'THE VARIABLE NAME EXPLAINS WHAT GOES HERE';

Feeds, Selectors, Scraping

This is important and might seem confusing if you look at the code. This is also the bit I forgot to provide documentation for. I'll do it later. Soon. Won't forget. Promise.

Destroy, Crush, Kill

Use your bot responsibly

simplenewsbot's People

Contributors

donohoe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

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.