This Repo contains some python scripts to automate stuff.
##BookMarks.py
- Export your BookMark files as HTML from Chromium.
- Change the name of the files in the code.
- Run the script.
- Have fun with the updated BookMarks file.
- Output File Name : UpdatedBookMarks.txt
##Weather.py
This uses [Open Weather Map API] (https://openweathermap.org/api).
- Run the python script.
- It auto locates you.
- Get the ouput on the console.
##Search.py
You can run this script to search for some query on Google from terminal.
- Run the script as : python Search.py
- Output : First 4 results.
##Explain_Word.py
Enter the word to find it's meaning and example usage.
This uses [WordNik API] (https://developer.wordnik.com/).
##Word_of_The_Day.py
Run this script to get word of the day, it's meaning and example usage.
This uses [WordNik API] (https://developer.wordnik.com/).
##YouTubeICode.py
Enter the Youtube URL to download(d) or extract other information(ei) like :
- Number of likes
- Number of dislikes
- Author
- Description
- View Count
- Rating
- Published Date e.t.c,
This uses [Pafy] (https://pythonhosted.org/Pafy/).
##Locate-Me.py
Run this script and it will locate you.
This will tell you your
- City
- Region
- Country
- Latitude & Longitude.
This uses [Checkip] (https://checkip.dyndns.com/) and [ipinfo.io] (https://ipinfo.io/developers).
##Generate-HTML-Page.py
You can use this script to generate HTML pages.
- Add link & title of a page you wish to read.
- Add word & meaning link.
- This also has a motivational penguin at the end of the page marqueeing.
- This also has a simple Google search bar.
![Sample Output] (https://i.gyazo.com/eb0f4b908ee6480cc4bad01e500b4940.png)
##Comments_Extractor.py
This scripts extract comments of a specific post, matching the post id. Run this script to extract comments on your console, and process them the way you like.
This uses [Facebook Graph API] (https://developers.facebook.com/docs/graph-api)
##PrettyPrintJSON.py
You can use this script to pretty print dirty (not indented properly) JSON file.
Give the input file name, having the dirty JSON input, and Output file name on command line and this will store the prtty printed JSON in the output file.
If you don't want to givce a output file name, it's okay, as this script then output the pretty printed JSON on the console.
##PPHTML.py
You can use this script to pretty print HTML code on the cosole. It takes the input and gives the output on console.
##PPHTMLSoup.py
This does the same work as [PPHTML.py] (https://github.com/tapasweni-pathak/Python-Scripts#pphtmlpy), but uses [BeautifulSoup] (https://en.wikipedia.org/wiki/Beautiful_Soup).
##Git_Add_All.sh
This script makes the task of doing
git add -A
git commit -m 'Your Message'
git push origin master
a bit easier. By using this script you only need to type the commit message to do all this.
##Generate-Permalink.py
I am interning with Sanfoundary and working on [contributing] (https://github.com/tapasweni-pathak/Sanfoundary-Codes) codes on Data Sructures and Algorithms in C++.
This script generates permalinks from the titles in the webpage. This can only be used for [SanFoundary] (https://www.sanfoundry.com/). If you are interning with SanFoundary, you can also use this script to generate permalinks.
[Sample input] (https://github.com/tapasweni-pathak/Scripts/blob/master/Phase1.txt).
[Sample output] (https://github.com/tapasweni-pathak/Scripts/blob/master/Permalinks.txt).
##Your-Horoscope.py
Run the script to get today's horoscope for your sunsign. You are required to enter your sunsign.
Parses [GaneshaSpeaks] (https://www.ganeshaspeaks.com/) to get the result.
##Whois?.py
Run this script to get the Whois of an IP/HOST on your console.