Giter Site home page Giter Site logo

twitter-alerts's Introduction

Twitter alerts

This app is a work in progress, it works well locally but I would not release this to the public in it's current state.

This project allows you to save and display tweets on an external browser source in real time. Can be used by streams to display live tweets during an event.

Example

You can find an example here.

How to

How to run the app

  1. npm install
  2. Start a redis server
  3. Start a MySQL server
  4. npm start
  5. Visit localhost:3000

How to use the app

  1. Create an account
  2. Setup settings like duration and CSS in /settings
  3. Add tweets on /tweets or /custom_tweets with the tweet URL like https://twitter.com/elonmusk/status/1316454051693895680.
  4. Add the browser source available on the index page into your OBS, streamlab or favorite streaming application.
  5. Display tweets by cliking on one or multiple tweets from the /tweets or /custom_tweets page and then cliking on Show on the right sidebar

Custom CSS

From the settings page, you can add custom CSS. Here's the default CSS.

.w3-blue, .w3-hover-blue:hover {
  background-color: #6d636c!important;
}

a {
  color: #ff929b;
}

img.avatar {
  border-radius: 50%;
  width: 50px;
  float: left;
  margin-left: -7px;
  margin-right: 10px;
  margin-top: 7px;
}

p {
  margin-block-end: 10px;
}

p.header {
  margin-top: 12px;
  line-height: 10px;   /* within paragraph */
  margin-bottom: 10px; /* between paragraphs */
}

img.avatar {
  border-radius: 50%;
  width: 50px;
  float: left;
  margin-left: -7px;
  margin-right: 10px;
  margin-top: 7px;
}

img.twitter {
	margin-top: 25px;
	filter: invert(1);
	width: 20px;
}

p.full_name {
  font-size: 20px;
}

p.header {
  margin-top: 15px;
  line-height: 10px;   /* within paragraph */
  margin-bottom: 6px; /* between paragraphs */
}

.content {
  background-color: #39373a!important;
  color: white;
}

.at {
  color: #e6e5e5;
}

p.content {
  margin-top: 10px;
  font-size: 20px;
  font-family: 'Roboto', sans-serif;
}

.tweet-div {
  pointer-events: none;
}

Technologies

This works with the help of socket.io, the browser source is subscribed to the tweet event and simply fire events as soon as they are received.

Contribute

Feel free to contribute to this project

License

Released under GPL-3.0

twitter-alerts's People

Contributors

max611 avatar

Watchers

 avatar  avatar

twitter-alerts's Issues

Add more security

The app currently does not have much authentication required. Adding/deleting tweets or settings should only be scoped to the current user.

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.