Giter Site home page Giter Site logo

ga_twitterbot's Introduction

TwitterBot via AppEngine (Driven by Google Analytics)

I've provided all the necessary libraries in this project. Ideally I would have set it up with submodules, but I wanted to provide a guaranteed solution for you, the developer, to get up and running as soon as possible.

Initial Setup

  • Clone this repo
  • Create a new AppEngine app from this repo

Google Analytics Setup

  • Go to the Google API Console
  • Register for Google Analytics
  • Create a Service Account
  • Download the .p12 key
  • Convert the p12 key into a pem key (look at the PyCryptoSignedJWT readme) such that 'privatekey.pem' is sufficiently populated
  • Add relevant values from Google API Console to twitterbot_credentials.json

Twitter Setup

  • Go to the Twitter API Portal
  • Create an App
  • Create your OAuth key
  • Add relevant values from Twitter API Portal to twitterbot_credentials.json

Query Setup

  • Build the GA query via the Query Explorer
  • Ensure that the GA Profile contains the gserviceaccount user
  • Update SeedTweetsUtil as per your query and business requirements
  • Update templates/status with whatever values are present in your context
  • Alter the twbot/models.py for whatever information you need to store in PendingTweet

Tune the Cron.yaml schedules

  • Update cron.yaml with desired times

Once you have completed the steps above, ensure that the app.yaml file has your app's name, then go ahead and deploy it.

If you have any questions, feel free to reach out to me: ntikku at gmail dot com

ga_twitterbot's People

Contributors

nirvanatikku avatar

Watchers

 avatar  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.