Skip to content

jmartone/twitter-bot-experiments

Repository files navigation

twitter-bot-experiments

A basic Twitter bot that employs the Twitter Streaming API to listen around a hashtag.

Dependencies

Love Actually NLP Bot

Compares users' timelines to dialogue from Love Actually (2003) and determines which character's dialogue is the most semantically similar using Latent Semantic Indexing. Uses Google Sheets to store incoming tweets and load responses.

Requires authentication information in two JSON files google_sheets.json and twitter_creds.json with the following formats:

google_sheets.json

NOTE: ensure that your sheet is shared with your service account, credentials can be found on Google's Cloud Platform

{
	"type": "service_account",
	"project_id": "[PROJECT_ID]",
	"private_key_id": "[PRIVATE_KEY_ID]",
	"private_key": "[PRIVATE_KEY]",
	"client_email": "[CLIENT_EMAIL]",
	"client_id": "[CLIENT_ID",
	"auth_uri": "[auth_uri]",
	"token_uri": "[token_uri]",
	"auth_provider_x509_cert_url": "[auth_provider_x509_cert_url]",
	"client_x509_cert_url": "[client_x509_cert_url]"
}

twitter_creds.json

{
	"CONSUMER_KEY": "[CONSUMER_KEY]",
	"CONSUMER_SECRET": "[CONSUMER_SECRET]",
	"ACCESS_TOKEN": "[ACCESS_TOKEN]",
	"ACCESS_TOKEN_SECRET": "[ACCESS_TOKEN_SECRET]"
}

Dependencies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages