Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.52 KB

README.md

File metadata and controls

48 lines (36 loc) · 1.52 KB

readme | twitter-like-bot

This app allows you to automate Twitter liking for specific keywords, hashtags, or even full sentences. The bot uses streaming API which means that everything happens in real time.

create Twitter developer account

Apply for access — Twitter Developers from the developer dashboard, create new Twitter app

install node.js

download & install Node.js
alternatively install via your package manager

macOS

curl "https://nodejs.org/dist/latest/node-${VERSION:-$(wget -qO- https://nodejs.org/dist/latest/ | sed -nE 's|.*>node-(.*)\.pkg</a>.*|\1|p')}.pkg" > "$HOME/Downloads/node-latest.pkg" && sudo installer -store -pkg "$HOME/Downloads/node-latest.pkg" -target "/"

Debian & Ubuntu

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt-get install -y nodejs

how to use?

cd to the project folder and install packages npm i

enter your Twitter app keys & tokens

const client = new Twitter({
  consumer_key: '',
  consumer_secret: '',
  access_token_key: '',
  access_token_secret: ''
});

enter keywords, hashtags or sentences that you want to track

const stream = client.stream('statuses/filter', {track:'#example1, #example2’});

cd to the project folder and start the bot: npm test or alternatively node likebot.js