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.
Submission Category
Automation Innovation
Link to Code
bervProject / tweet-cleaner
Clean our tweet
Tweet Cleaner
Tweet Cleaner, remove your last like and tweet.
Collaborator
- Bervianto Leo Pratama - Dev.to - berviantoleo
Structure
- TweetCleaner - Clean up my tweet and un-fav tweets
- CleanerReport - Report job result weekly
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=
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=
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
…Additional Resources / Info
Tools
- Github Action
- .NET 6
- Twitter API - using TweetinviAPI
- AWS SDK Simple Email Service
- MongoDB.Driver
Screenshot
- Clean Up (Github Action)
- Report Log (Github Action)
- Email Report
- MongoDB Serverless Dashboard
- Example Data
Top comments (0)