• Stars
    star
    124
  • Rank 281,581 (Top 6 %)
  • Language
    JavaScript
  • Created about 7 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Node.js Twitter Favorite Bot

Twitter Favorite Bot

Read all about this project and follow the tutorial on Medium: Build a simple Twitter Bot with Node.js in just 38 lines of code

This bot returns 10 tweets for a specified search query then favorites each of the returned tweets.


How to use

  • Star and download the repository
  • run npm install to install the needed dependencies
  • Copy the file config.default.js, rename it to config.js and then change its values - this file will store the configuration details for the Twitter API.

The structure should be the following:

module.exports = {
  consumer_key: '',
  consumer_secret: '',
  access_token_key: '',
  access_token_secret: ''
}
  • Visit the Twitter API and fill out the form. When done, click on the Keys and Access Tokens tab to view your consumer key/secret and access token key/secret. Copy these keys/secrets into your config.js file.
  • In app.js you can edit the params variable to determine what to search for:
var params = {
  q: 'SEARCH_QUERY_HERE', //search query
  count: 10, //number of tweets to return
  result_type: 'recent', //shows recent tweets
  lang: 'en' //language English
}
  • Now we're ready! Open up the command prompt and type npm start to run the application.

More Repositories

1

Become-A-Full-Stack-Web-Developer

Free resources for learning Full Stack Web Development
17,024
star
2

portfolio-template

A Web Developer Portfolio Template
HTML
331
star
3

interactive-bitcoin-price-chart

Interactive Bitcoin Price Chart - built with React
JavaScript
168
star
4

simple-nodejs-weather-app

Weather Website using Node.js, Express, and OpenWeatherMap's API
CSS
145
star
5

JavaScript-HeatMap-Creator

Create HeatMaps with JavaScript and Your Google Location History
HTML
133
star
6

React-Weather-App

A React Web App that utilizes the OpenWeatherMap API to return current and 5 day forecasted weather for a given location.
JavaScript
68
star
7

Simple-Android-Uber-Clone

A simple Uber App Clone.
Java
48
star
8

react-svg-line-chart

react & svg line chart data visualization
JavaScript
16
star
9

Twitter-Follow-Bot

Simple node.js Twitter bot that follows users based on your inputs
JavaScript
14
star
10

node-async-weather

Node Weather Application - Returns the current weather and/or 5 day forecast in the cmd prompt
JavaScript
12
star
11

flexbox-card-tutorial

Minimalist Flexbox Card Tutorial
HTML
8
star
12

learn_coding

List of resources (mostly free) to learn coding
8
star
13

Portland-Trimet-Live-Map

Real Time Portland Trimet Bus and Rail Map
JavaScript
5
star
14

node-password-manager

Password Manager built on NodeJS
JavaScript
3
star
15

CSS-Clock

A simple clock built with CSS + JS
CSS
2
star
16

react-svg-meter

simple, elegant, meter for react.js
JavaScript
2
star
17

React-Native-Weather-Forecast-App

Simple react native weather forecast app built at Mirador Hack night.
JavaScript
1
star
18

Android_Notes_App

App for creating and saving notes.
Java
1
star
19

playground-uqtCdBst

Tech.io playground
1
star
20

Frogger-Arcade-Game

Simple and classic arcade game - made to practice object oriented design techniques
JavaScript
1
star
21

ReactTodo

'To do list' application built with React, Node, and utilizing Firebase for realtime updates across devices.
JavaScript
1
star
22

Android-App-Guess-The-Number

Simple Android App where you try to guess a random number
Java
1
star
23

mocha-nodejs-testing-tutorial

A tutorial for testing Node.js with Mocha
JavaScript
1
star
24

NS_PHP_Templates

Repository for N&S custom PHP templates
PHP
1
star
25

Instagram_Clone_Android_App

Simple Android Instagram Clone
Java
1
star
26

Tic-Tac-Toe

An un-beatable Tic-Tac-Toe bot
JavaScript
1
star
27

javascript-drums

Play the drums with your fingers
HTML
1
star