All Projects → gokhansengun → twitter-flood-generator

gokhansengun / twitter-flood-generator

Licence: other
Simple Command Line Utility for Generating Twitter Floods

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to twitter-flood-generator

afterflood.in
A crowd sourced data hub created during Kerala Flood with information regarding all the Do's and don'ts, waste management, personal hygiene and every other aspect which needs to be kept in mind while moving back home after the flood
Stars: ✭ 36 (-40.98%)
Mutual labels:  flood
bitparrot
An app I created so developers can track the info they need: now includes Twitter API feeds and Machine Learning, Python, and Ruby on Rails sections.
Stars: ✭ 22 (-63.93%)
Mutual labels:  twitter-api
Yatcobot
Yatcobot (Yet another twitter contest bot) is the most advanced and configurable bot for twitter contests and giveaways
Stars: ✭ 60 (-1.64%)
Mutual labels:  twitter-api
larry
Larry 🐦 is a really simple Twitter bot generator that tweets random repositories from Github built in Go
Stars: ✭ 64 (+4.92%)
Mutual labels:  twitter-api
twittered
Twitter API client for Java developers
Stars: ✭ 170 (+178.69%)
Mutual labels:  twitter-api
gotwtr
gotwtr provides Twitter v2 API
Stars: ✭ 45 (-26.23%)
Mutual labels:  twitter-api
twitivity
🐍 Twitter Accounts Activity API Client Library for Python
Stars: ✭ 49 (-19.67%)
Mutual labels:  twitter-api
labs-sample-code
Sample code for Twitter Developer Labs
Stars: ✭ 25 (-59.02%)
Mutual labels:  twitter-api
twauth-web
A simple Python Flask web app that demonstrates the flow of obtaining a Twitter user OAuth access token
Stars: ✭ 65 (+6.56%)
Mutual labels:  twitter-api
rtweet.download
{rtweet} helpers for automating large or time-consuming downloads
Stars: ✭ 24 (-60.66%)
Mutual labels:  twitter-api
Tweetstorm
🐦 Twitter UserStream APIの簡単な代替実装 / A simple substitute implementation for the Twitter UserStream
Stars: ✭ 55 (-9.84%)
Mutual labels:  twitter-api
twitter-digest
✉️ A netlify lambda function that emails you tweets from a twitter list.
Stars: ✭ 14 (-77.05%)
Mutual labels:  twitter-api
twitter-most-followed-scripts
Scripts to find the most commonly followed Twitter accounts by a group of people
Stars: ✭ 25 (-59.02%)
Mutual labels:  twitter-api
search-tweets-ruby
Ruby client for the Twitter search endpoints (v2/Labs/premium/enterprise). Now supports Twitter API v2 /recent and /all search endpoints.
Stars: ✭ 45 (-26.23%)
Mutual labels:  twitter-api
dtwitter
Script used in the DTwitter shortcut, currently available on RoutineHub
Stars: ✭ 26 (-57.38%)
Mutual labels:  twitter-api
twitter-ruby-ads-sdk
A Twitter supported and maintained Ads API SDK for Ruby.
Stars: ✭ 63 (+3.28%)
Mutual labels:  twitter-api
gotwi
A library for using the Twitter API v2 in the Go language. (It is still under development).
Stars: ✭ 32 (-47.54%)
Mutual labels:  twitter-api
bird-elephant
PHP client library for Twitter API v2 endpoints.
Stars: ✭ 28 (-54.1%)
Mutual labels:  twitter-api
GraphiPy
GraphiPy: Universal Social Data Extractor
Stars: ✭ 61 (+0%)
Mutual labels:  twitter-api
Raymo111
My awesome profile README
Stars: ✭ 110 (+80.33%)
Mutual labels:  twitter-api

Status

Build Status

Intro

This simple command line utility is for generating Twitter Floods from a paragraph of text. It accepts the paragraph as file and divides it into 280-char chunks then posts to Twitter by replying to the previous post. So creates a flood like below.

Quick Start - Local

Generating a Twitter flood is simple.

  1. Clone the repo and run npm install in the root folder

  2. Create a file named like twitter-keys.env and fill it with below info then source it with source twitter-keys.env using terminal.

    export TWITTER_CONSUMER_KEY=xxxx
    export TWITTER_CONSUMER_SECRET=xxxx
    export TWITTER_ACCESS_TOKEN_KEY=xxxx
    export TWITTER_ACCESS_TOKEN_SECRET=xxxx
  3. Produce the text file including the Tweet. Text in a paragraph will be divided into 280 char-chunks and Tweeted however if you want a sentece to start a Tweet just use a new line before.

    Example, an input file like below will produce two Tweets although will fit to one due to new line

    This is the first line
    This is the second line
    

    In order to use media files, start a line in the input file with M:<image-file-path> and write the text that will be included with the image. If you would like to have no text with the image, do not add any text after the image input.

    This is the first line of a flood with media
    M:<resources/test-images/test-image-1.jpg>Text that goes with the image
    This is the third tweet indeed
    M:<resources/test-images/test-image-2.png>
    
  4. Run below command to generate and post the Tweets.

    $ node main.js <file_name>

    Use -d option to see how Tweets like before posting it to twitter.

    $ node main.js -d <file_name>

    Use -r option to reply to an existing Tweet, useful when replying to somebody else or continuation of an old status.

    $ node main.js -r <status_id> -d <file_name>

    Use -m option to limit the number of characters per tweet if you think 280-chars are too many.

    $ node main.js -m 240 -d <file_name>

Quick Start - Docker (thanks @ozlerhakan)

  1. Create an env file (let's say twitter.env) that contains the following envs:

    TWITTER_CONSUMER_KEY=xxxx
    TWITTER_CONSUMER_SECRET=xxxx
    TWITTER_ACCESS_TOKEN_KEY=xxxx
    TWITTER_ACCESS_TOKEN_SECRET=xxxx
  2. Build the dockerfile of the project (Optional, you can use gsengun/twitter-flood image from DockerHub):

    $ docker build -f Dockerfile -t tfg .
    $ docker images
    REPOSITORY                 TAG                                        IMAGE ID            CREATED             SIZE
    tfg                        latest                                     7500a250bafa        1 hours ago         68.6MB
    
  3. Let our text file mytext that needs to be posted on twitter be like:

    Ov yeah!
    
  4. After building the image or just using existing docker image gsengun/twitter-flood, make a container Tweeting the text on twitter on behalf of you:

    $ docker run --rm --env-file twitter.env -v $(pwd)/mytext:/mytext tfg:latest /mytext
    Updating status: Ov yeah!
    
    $ docker run --rm --env-file twitter.env -v $(pwd)/mytext:/mytext gsengun/twitter-flood:latest /mytext
    Updating status: Ov yeah!
    
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].