idofrizler / twitter-stats

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Twitter Stats

How to run from VSCode

  1. Open PS Terminal.
  2. Make sure it runs .venv/Scripts/Activate.ps1.
  3. Set environment variable TOKEN to your bearer token from Twitter Developer Portal, using this command: $env:TOKEN = "<your_token>".
  4. Set environment variable CONNECTION_STRING for accessing Storage Account.
  5. Make sure Azurite is installed, and run Azurite Blob Service (Azurite: Start from Command Palette). It should be listening on port 10000.
  6. Run func start.

Remaining work

  • Pass bearer token to code in production (KeyVault?)
  • Same for connection strings to Queues/Tables
  • Add more stats such as:
    • Most used hashtag/word/emoji/gif in tweets
    • Most commented to user
    • Worst ratio you received
    • liked_tweets metric
  • Edge cases:
    • 429 while handling a user
    • User responding twice
    • Non-429 error during processing
    • ...

About


Languages

Language:Python 100.0%