DEV Community

Cover image for Clean Up My Tweet and Report It Weekly using MongoDB Atlas Serverless Instances
Bervianto Leo Pratama
Bervianto Leo Pratama

Posted on

2 2

Clean Up My Tweet and Report It Weekly using MongoDB Atlas Serverless Instances

Overview of My Submission

Mostly to automate my task to clean up my tweet and remove most of tweets that I've liked before. The cron (Github Action schedule) will report to me about how many tweets that removed in the current week. At least, I will know how many I've clicked the like button. :) The daily clean up tweet task also using Github Action.

Like GIF

Submission Category

Automation Innovation

Link to Code

Tweet Cleaner

Tweet Cleaner, remove your last like and tweet.

Collaborator

Structure

Setup

You need some environment variables:

TweetCleaner

Using Twitter API & Mongo DB Serverless

ACCESS_TOKEN=
CONSUMER_SECRET=
CONSUMER_KEY=
ACCESS_SECRET=
MONGO_CONNECTION_STRING=
MONGO_DB_NAME=
Enter fullscreen mode Exit fullscreen mode

CleanerReport

Using AWS S3 & Mongo DB Serverless

MONGO_CONNECTION_STRING=
MONGO_DB_NAME=
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=
EMAIL_TARGET=
Enter fullscreen mode Exit fullscreen mode

LICENSE

Apache 2.0

 Copyright 2021 Bervianto Leo Pratama
 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
…
Enter fullscreen mode Exit fullscreen mode

Additional Resources / Info

Tools

Screenshot

  • Clean Up (Github Action)

Clean Up Github Action

  • Report Log (Github Action)

Report Log Github Action

  • Email Report

Email Report

  • MongoDB Serverless Dashboard

MongoDB Serverless Dashboard

  • Example Data

Example Data

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post →

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up