Skip to content

Instantly share code, notes, and snippets.

@saralgyaan
saralgyaan / bot.py
Created April 5, 2019 09:48
It is Twitter Bot.
"""bot.py
It is Twitter Bot.
If someone(X) send an Image(with one or more person in it) to you Twitter Handle, it will automatically remove the background of the image and sent 'X' a tweet containing the image without the background.
Requires
--------
Tweepy
------
@saralgyaan
saralgyaan / json_to_csv.py
Created February 21, 2019 10:59
This script reads n numbers of json files present in a folder and then extract certain data from each file and write in a csv file.
"""json_to_csv.py
This script reads n numbers of json files present in a folder and then extract certain data from each file and write in a csv file.
The folder contains the python script i.e. json_to_csv.py, output.csv and another folder descriptions containing all the json files.
"""
import os
import json
import csv
@saralgyaan
saralgyaan / auto_delete
Created January 12, 2019 09:44
This script auto deletes messages from your gmail inbox.
#!/usr/bin/python3.6
"""AutoDelete
This script auto deletes messages from your gmail inbox.
The perfect usecase is deleting the OTP messages received from banks after certain time period.
or deleting the messages received from certain services which doesn't have unsubscribe option.
Many parts of this script are copied from EZGmail by Al Sweigart (https://github.com/asweigart/ezgmail)
"""