Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.23 KB

PROCESS_NOTES.md

File metadata and controls

34 lines (23 loc) · 1.23 KB

Process Notes

Twitter API Deets:

Using the IndiaElectionBot account

Premium pricing (essentially free for sandbox): https://developer.twitter.com/en/pricing/search-30day Free tier:

Search operators by tier: https://developer.twitter.com/en/docs/tweets/rules-and-filtering/overview/operators-by-product

Developer docs page: https://developer.twitter.com/en/docs

Tweets in Google Sheets

  • Turned on an IFTTT recipe to put any #txlege tweet into a spreadsheet
  • Got 13 spreadsheets with 2000 rows each (includes retweets)
  • Wrote gsheet_tweets.js to turn original tweets (no retweets) into a big text corpus called tweet_corpus.txt
  • Uses Tabletop.js so the process is:
    • Use "Publish to web ..." in Google sheets
    • Leave settings as is and click Publish
    • IGNORE THE PUBLISH URL and close the publish box
    • Click on "Sharing"
    • Use link sharing URL
    • Type node gsheet_tweets.js [url]
    • IE: node gsheet_tweets.js https://docs.google.com/spreadsheets/d/1Z4RLOarLV2WIS9TckGgTodrdLwo0uiLQiCL9a48cDvo/edit?usp=sharing