Twitter API monitor with fastAPI + MongoDB

You need to have a file .env with the following variables:

> DB_URL=”mongodb+srv://mongodb_path”

> DB_URL2=”mongodb+srv://mongodb_path”


> sender_email_addr=”set email here – SMTP”

> sender_email_pwd=”set email pwd – SMTP”

> api_key=”twitter-api-key”

> api_secret_key=”twitter-secret”

> access_token=”twitter-access-token”

> access_token_secret=”twitter-access-token-secret”

> app_key=”set-a-key-to-your-app”

You need to add the accounts you want to monitor in the project-list collection as a list inside the DATABASE_PROJECTS database;


View Github