An open API service indexing awesome lists of open source software.

https://github.com/xdevplatform/etl

An example app demonstrating storing Tweets in a Google Spreadsheet
https://github.com/xdevplatform/etl

etl google google-sheets-api twitter-api twitter-api-v2 typescript

Last synced: 9 months ago
JSON representation

An example app demonstrating storing Tweets in a Google Spreadsheet

Awesome Lists containing this project

README

          

# Code Examples for using Twitter API v2

## Extract Transform and Load

Follow this [tutorial](https://developer.twitter.com/...)

(TODO: @duckranger add details)
1. Clone this repository
1. Run `npm install` in the repo's directory
1. Obtain a json key file for Google API (See https://www.fastcomet.com/tutorials/nodejs/google-spreadsheet-package) and place it inside the config directory
1. Obtain a Twitter access token
1. Create a Google Spreadsheet and get its id (The last part of the url: https://docs.google.com/spreadsheets/d/xxxxxxx)
1. Make sure to share the sheet with `client_email` from within the Google json key file
1. `npm start`

### Environment Variables
The code relies on the following variables to be available, e.g. by using an `.env` file.
```
TW_BEARER_TOKEN=
TW_TERM=

TW_HASHTAG=

TW_GOOGLE_DOC_ID=
```
It also requires the Google json keyfile to be stored in `/config/client_secret.json`