This Repo is a collection of Various python scripts.
In this repo there are different kinds of python scripts for their respective uses. These all are open sourced and you can use them in any form for free.
Make sure you've already git installed. Then you can run the following commands to get the scripts on your computer:
OS X, Linux and Windows:
git clone https://github.com/Logan1x/Python-Scripts.git
cd Python-Scripts/bin
This script is useful to show a way to approximate the value of pi using a Monte Carlo method. It is also optimized using the @jit
(just-in-time) decorator from the numba library.
To see different approximations you just need to modify the argument passed to the main function.
python pi.py
Blog Reader is the terminal reader that scrapes the article from planet dgplug and displays it on the terminal.
It seprates the content accrding to the screen size.
python Blog_reader.py
Simple script helps you mass add users to your twitter list to follow (Ex: Bitcoin/Altcoins official account, news, traders...)
- Prepare list screen names
- Setup your app and get an access token
pip install twitter
python bulk_add_twitter_list.py
Encrypts or Decrypts any message you want, simply enter the message and the rotation number
python caesar_cipher.py
It is a simple program to implement and understand the basic of end_to_end encryption. Here i am using caesar cipher to encrpt nbut in reality they Use algotihms lile SHA-1, RSA etc.
python end_to_end.py
Simple GUI program which helps you calculate your expenses, monitor them just through mouse clicks. All you have to do is run the script and choose an option from the menu which will displayed when you run the script. Enter Your Expenses as eg: "Biscuits Rs 15" " rs " ignore the quotes.
python expense_manger.py
This is python script that log in into facebook and post the status.
You can see live execution of this script here.
pip install -r facebook-auto-post.requirements.txt
python facebook-auto-post.py
Searches a file location and subdirectories for files larger than a given size. Useful for phones which might hide files in FileExplorer, but allow use as flash memory. Directly prints results if run directly. May also be imported, yielding results one by one.
A simple application to download a file via FTP with the given remote and local path Parameters:
- -hh hostname
- -u username
- -p password
- -rd remote directory
- -ld local directory
python ftp_download_file.py
A tiny offline dictionary app based on nltk wordnet and pyqt5
cd dictionary
python app.py
It is a simple program to encode and decode images, which helps to reduce and handle images on server, as it is convertedto base64 address.
python image_encoder.py
The script takes a given graph along with the range within which the area is to be calculated. It then calculates the area using two methods, the Simpson method and the Trapezoid method and displays the results on a graph.
python integrate-graph.py
Run this script and it will locate you.
This will tell you your
- City
- Region
- Country
- Latitude & Longitude.
- Your Internet Service Provider
This uses Checkip and ipinfo.io.
python locate-me.py
This script tells you the amount of memes in your facebook feed
pip install memedensity
memedensity
This python script uses selenium module in python to automate the thread posting.
You can see live execution of this script here.
If you want to understand this code you can visit here.
pip install -r mi-community-bot.requirements.txt
python mi-community-bot.py
It is a simple program to mimic Missionaries And Cannibals River Crossing Problem.
python missionaries_and_cannibals_problem.py
This code checks for your password strength. For the right password, password must contain mixture of an upper case letters, an digit (including 0-9), and a special characters with lower case letters.
python password-strength-checker.py
This script contains an example of plotting a function using matplotlib
. Feel free to modify the value of y
to obtain different functions that depend on x
.
python plot_example.py
It is simple client server communication script, will add more functionality in future.
cd server_client
python client.py
python server.py
Download latest tweets (default: up to 4000) from a specific twitter user. The script will create a file with one tweet per line, stripped from mentions, hashtags and links.
For that to work, create a json file with your twitter credentials (see source) and define the twitter user in source code.
python3 tweetload.py
It is a simple script that retweets any hashtag provided in it.
python twitter_retweet_bot.py
A python script that goes through the twitter feeds and calculates the sentiment of the users on the topic of Demonetization in India. Sentiments are calculated to be positive, negative or neutral. Various other analyses are represented using graphs.
pip install -r analyseTweets-requirements.txt
python analyseTweets.py
This is python script that shortens any URL provided to it.
# Takes multiple inputs and returns shortened URL for both
python shortener.py url1 url2
#Stores shortened URLs in a file
python shortener.py url1 url2 > file.txt
This file allows the user to download videos off of the web.
as of version 1 the user is able to download highquality videos as a playlist or single file as well as audio files from the supported
websites given here http://rg3.github.io/youtube-dl/supportedsites.html are supported.
More features will be added in the future iterations of the project. a simple video downloader using youtube-dl Library, a starter script for making use of youtube-dl.
- You will need to install youtube_dl
- This can be installed using pip on windows,
- if you do not know how to use pip please read the installation instructions
- requests library
- can be downloaded using pip on windows and respective package managers on different operating systems.
- ffmpeg in order to convert the downloaded files to the right format
clone this repo and run python vid.py
script!
assuming you already have the other requirements.
Follow this wiki-How tutorial
http://www.wikihow.com/Install-FFmpeg-on-Windows
Extensive information on how to set up virtual env and pip.
https://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/
Just run the script and follow the interface! Videos downloaded in same folder as the script.
This is a simple python script that increases your video count/ views. Log out from all google accounts and run this.
# For Linux Users
python youtube-bot-linux.py
# For Windows Users
python youtube-bot-windows.py
In case your browser stoped working delete/comment the following line in the script.
os.system(" killall -9 " + brow)
os.system("TASKKILL /F /IM " + brow + ".exe")
- 0.0.1
- Work in progress
Khushal Sharma – @Khushal – [email protected]
Distributed under the MIT LICENSE license. See LICENSE
for more information.
- Fork it (https://github.com/Logan1x/Python-Scripts/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request
- Add your name with a link to your profile in the contributors list.
The following people helped in creating the above content.
- Niharika Krishnan
- Khushal Sharma
- Kayvan Mazaheri
- Lakshay Kalbhor
- Pradhvan Bisht
- David Antonini
- Nguyen Anh Tien
- Akshit Grover
- Sharan Pai
- Madhav Bahl
- Ishank Arora
- Vishal Sharma
- Apurva Nitanjay
- Surya K
- Peter L.
- Andreas K.
- Lukas S.
- Iyanu Ashiri
- Harshvardhan Singh
- Shivam Pachauri
- Khushboo Paddiyar
- Ahad Ali
- Chirag Jain