Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
183c8a7
added badge (#36)
Logan1x Oct 16, 2017
d702b36
Update README.md (#37)
Logan1x Oct 16, 2017
30c1e2f
image to vector data (#35)
apuayush Oct 17, 2017
0992c26
Develop (#38)
Logan1x Oct 17, 2017
3418ea0
add offline dictionary (#45)
SuryaThiru Oct 18, 2017
07feb30
Sort scripts alphabetically (#48)
szepnapot Oct 19, 2017
e73e017
Set theme jekyll-theme-minimal
Logan1x Oct 20, 2017
a3fc020
Set theme jekyll-theme-architect
Logan1x Oct 20, 2017
c2099a6
Updated readme.md
Logan1x Oct 20, 2017
95940a3
Update README.md
Logan1x Oct 20, 2017
fd7fd85
Update README.md
Logan1x Oct 20, 2017
780965c
Added a python script to download high quality videos and audio using…
Oct 21, 2017
aef61fa
Feature/ftp download (#51)
ehnydeel Oct 23, 2017
4c9f7e4
added URL shortener (#55)
abhinavralhan Oct 24, 2017
e32313e
desciption of the Twitter_retweet_bot script (#54)
iyanuashiri Oct 24, 2017
d21c81e
added script to download formatted tweets from a specific user (#50)
pr0me Oct 24, 2017
8f36229
Meme density correction (#56)
Harshvardhan58 Oct 25, 2017
4275734
added cloud script (#57)
shivamp123 Oct 25, 2017
784ecbd
Update README.md (#59)
iyanuashiri Oct 26, 2017
a1cccde
Twitter retweet bot (#44)
iyanuashiri Oct 26, 2017
6131267
updated readme (#60)
Logan1x Oct 26, 2017
c59952c
Updated README.md (#61)
khushboopaddiyar Oct 26, 2017
90edb4c
Update README.md (#62)
ahadali Oct 26, 2017
f8675d9
Sentiment Analysis of Twitter Feeds (#64)
niharikakrishnan Oct 28, 2017
e8cc152
README.md (#72)
chiraag-jain Oct 28, 2017
01bf840
Edited the readme and arranged alphabetically (#75)
Logan1x Oct 31, 2017
e09e23b
Lost Robot script is added (#63)
dgupta777 Oct 31, 2017
bf8189e
Add new Feature getExternalIp.py (#53)
ehnydeel Oct 31, 2017
161cac8
Add fetch_html script (#52)
zinuzoid Oct 31, 2017
0f9e174
arranged root file directory
Logan1x Nov 7, 2017
91b0352
Added : readme.md (#78)
Logan1x Nov 7, 2017
8b5d00e
Added : Readme.md (#79)
Logan1x Nov 7, 2017
061adda
Merge branch 'develop' into master
Logan1x Nov 7, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
266 changes: 221 additions & 45 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# [Python Scripts](https://logan1x.github.io/Python-Scripts/)
# Python Scripts
[![forthebadge](http://forthebadge.com/images/badges/made-with-python.svg)](http://forthebadge.com)

[![forthebadge](http://forthebadge.com/images/badges/made-with-python.svg)](http://forthebadge.com)
[![forthebadge](http://forthebadge.com/images/badges/built-by-developers.svg)](http://forthebadge.com)
[![forthebadge](http://forthebadge.com/images/badges/check-it-out.svg)](http://forthebadge.com)
> 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.
Expand All @@ -18,16 +21,65 @@ cd Python-Scripts/bin
```

## Scripts
* ### Approximating *pi*

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](https://numba.pydata.org/) library.

* ### Meme Density
This script tells you the amount of memes in your facebook feed

To see different approximations you just need to modify the argument passed to the main function.

```bash
pip install memedensity
python pi.py
```

memedensity
* ### Blog Reader

Blog Reader is the terminal reader that scrapes the article from [planet dgplug](http://planet.dgplug.org/) and displays it on the terminal.

It seprates the content accrding to the screen size.

```bash
python Blog_reader.py
```

* ### Bulk add users to Twitter list

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

```bash
pip install twitter
python bulk_add_twitter_list.py
```


* ### Caesar Cipher
Encrypts or Decrypts any message you want, simply enter the message and the rotation number
```bash
python caesar_cipher.py
```

* ### End To End Encryption
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.
```bash
python end_to_end.py
```


* ### Expense Manager
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" <press enter> "<item> rs <amount>" ignore the quotes.

```bash
python expense_manger.py
```



* ### Facebook Auto Post
This is python script that log in into facebook and post the status.

Expand All @@ -39,6 +91,60 @@ pip install -r facebook-auto-post.requirements.txt
python facebook-auto-post.py
```


* ### Find Large Files

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.

* ### FTP Download File
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
```bash
python ftp_download_file.py

* ### Fetch HTML
This script fetch html response from the provided url and parse xml tag to get only text content and print out.

```bash
python fetch_html.py https://github.com
``````

* ### Get External IP
Gets the external ip-address from the current machine and prints it to the console
```bash
python getExternalIp.py
```

* ### Handy offline dictionary
A tiny offline dictionary app based on nltk wordnet and pyqt5
```bash
cd dictionary
python app.py
```


* ### Image Encoder
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.
```bash
python image_encoder.py
```


* ### Integrate to find area of a graph
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.
```bash
python integrate-graph.py
```

* ### Locate Me
Run this script and it will locate you.

Expand All @@ -57,6 +163,18 @@ This uses [Checkip](http://checkip.dyndns.com/) and [ipinfo.io](http://ipinfo.io
python locate-me.py
```



* ### Meme Density
This script tells you the amount of memes in your facebook feed


```bash
pip install memedensity

memedensity
```

* ### Mi Community Bot
This python script uses selenium module in python to automate the thread posting.

Expand All @@ -68,84 +186,116 @@ If you want to understand this code you can visit [here.](https://l0gan1x.quora.
pip install -r mi-community-bot.requirements.txt
python mi-community-bot.py
```

* ### Missionaires And Cannibals Problem
It is a simple program to mimic Missionaries And Cannibals River Crossing Problem.
```bash
python missionaries_and_cannibals_problem.py
```
* ### Password Strength Checker
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.


```bash
python password-strength-checker.py
```
* ### Plotting a function

This script contains an example of plotting a function using [`matplotlib`](http://matplotlib.org/). Feel free to modify the value of `y` to obtain different functions that depend on `x`.
* ### YouTube Bot
This is a simple python script that increases your video count/ views.
Log out from all google accounts and run this.

```bash
# For Linux Users
python youtube-bot-linux.py

# For Windows Users
python youtube-bot-windows.py
python plot_example.py
```

#### NOTE:
In case your browser stoped working delete/comment the following line in the script.
#### _Linux_
`os.system(" killall -9 " + brow)`
#### _Windows_
`os.system("TASKKILL /F /IM " + brow + ".exe")`

* ### Server And Client
It is simple client server communication script, will add more functionality in future.
```bash
cd server_client
python client.py
python server.py
```


* ### Tweetload
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.
<br>
For that to work, create a json file with your twitter credentials (see source) and define the twitter user in source code.
```bash
python3 tweetload.py
```
* ### Blog Reader

Blog Reader is the terminal reader that scrapes the article from [planet dgplug](http://planet.dgplug.org/) and displays it on the terminal.
* ### Twitter_retweet_bot
It is a simple script that retweets any hashtag provided in it.
```bash
python twitter_retweet_bot.py
```
* ### Twitter Sentiment Analysis
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.

```bash
pip install -r analyseTweets-requirements.txt
python analyseTweets.py
```

It seprates the content accrding to the screen size.

* ### URL Shortener
This is python script that shortens any URL provided to it.

```bash
python Blog_reader.py
# 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
```

* ### Find Large Files

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.

* ### Video-downloader v1.1

* ### Approximating *pi*
#### About

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](https://numba.pydata.org/) library.

To see different approximations you just need to modify the argument passed to the main function.
This file allows the user to download videos off of the web.
* ### Approximating *pi*
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

```bash
python pi.py
```
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.

#### Requirements
* 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
* ### Plotting a function

This script contains an example of plotting a function using [`matplotlib`](http://matplotlib.org/). Feel free to modify the value of `y` to obtain different functions that depend on `x`.

```bash
python plot_example.py
```
#### Installation

clone this repo and run `python vid.py` script!
assuming you already have the other requirements.
#### FFmpeg
* ### Bulk add users to Twitter list
Follow this wiki-How tutorial

Simple script helps you mass add users to your twitter list to follow (Ex: Bitcoin/Altcoins official account, news, traders...)
http://www.wikihow.com/Install-FFmpeg-on-Windows

- Prepare list screen names
- Setup your app and get an access token
#### PIP

```bash
pip install twitter
python bulk_add_twitter_list.py
```
Extensive information on how to set up virtual env and pip.

https://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/
* ### Expense Manager
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" <press enter> "<item> rs <amount>" ignore the quotes.

Expand Down Expand Up @@ -175,8 +325,14 @@ Here i am using caesar cipher to encrpt nbut in reality they Use algotihms lile
```bash
python end_to_end.py
```
#### Commands

Just run the script and follow the interface! Videos downloaded in same folder as the script.


* ### YouTube Bot
This is a simple python script that increases your video count/ views.
Log out from all google accounts and run this.
* ### Server And Client
It is simple client server communication script, will add more functionality in future.
```bash
Expand All @@ -189,15 +345,26 @@ python server.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.
```bash
python integrate-graph.py
# For Linux Users
python youtube-bot-linux.py

# For Windows Users
python youtube-bot-windows.py
```
#### NOTE:
In case your browser stoped working delete/comment the following line in the script.
#### _Linux_
`os.system(" killall -9 " + brow)`
#### _Windows_
`os.system("TASKKILL /F /IM " + brow + ".exe")`


## Release History

* 0.0.1
* Work in progress


## Meta

Khushal Sharma – [@Khushal](https://twitter.com/herkuch) – [email protected]
Expand All @@ -220,7 +387,7 @@ Distributed under the MIT LICENSE license. See [``LICENSE``](https://github.com/
## Contributors

The following people helped in creating the above content.

* <a href="https://github.com/niharikakrishnan">Niharika Krishnan</a>
* <a href="https://github.com/Logan1x" target="_blank">Khushal Sharma</a>
* <a href="https://github.com/KayvanMazaheri" target="_blank">Kayvan Mazaheri</a>
* <a href="https://github.com/kalbhor" target="_blank">Lakshay Kalbhor</a>
Expand All @@ -232,6 +399,15 @@ The following people helped in creating the above content.
* <a href="https://github.com/MadhavBahlMD" target="_blank">Madhav Bahl</a>
* <a href="https://github.com/ishank011" target="_blank">Ishank Arora</a>
* <a href="https://github.com/vis2797" target="_blank">Vishal Sharma</a>
* <a href="https://github.com/shivamp123" target="_blank">Shivam Pachaori</a>
* <a href="https://github.com/apuayush" target="_blank">Apurva Nitanjay</a>
* <a href="https://github.com/SuryaThiru" target="_blank">Surya K</a>
* <a href="https://github.com/szepnapot" target="_blank">Peter L.</a>
* <a href="https://github.com/ehnydeel" target="_blank">Andreas K.</a>
* <a href="https://github.com/zinuzoid" target="_blank">Jetsada Machom</a>
* <a href="https://github.com/pr0me" target="_blank">Lukas S.</a>
* <a href="https://github.com/iyanuashiri" target="_blank">Iyanu Ashiri</a>

### If you like the project give a star [<img src="Selection_008.png" alt="Star button" align="top">](https://github.com/Logan1x/Python-Scripts/stargazers)


### If you like the project give a star <img src="Selection_008.png" alt="Star button" align="top">
[`Back to Top`](https://github.com/Logan1x/Python-Scripts#python-scripts)
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
theme: jekyll-theme-architect
Loading