Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Revert "develop updation (#80)"
This reverts commit 7e07a09.
  • Loading branch information
Logan1x authored Nov 7, 2017
commit 94e0731690df6743a078dd646f4bbf3a8979e0b4
266 changes: 45 additions & 221 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# [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 @@ -21,65 +18,16 @@ 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
python pi.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.

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.
pip install memedensity

```bash
python expense_manger.py
memedensity
```



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

Expand All @@ -91,60 +39,6 @@ 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 @@ -163,18 +57,6 @@ 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 @@ -186,116 +68,84 @@ 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
python plot_example.py
```


* ### 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
# 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")`

* ### 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

* ### 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
```
* ### 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.

* ### URL Shortener
This is python script that shortens any URL provided to it.
It seprates the content accrding to the screen size.

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

* ### Video-downloader v1.1

#### About
* ### 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.

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
To see different approximations you just need to modify the argument passed to the main function.

websites given here http://rg3.github.io/youtube-dl/supportedsites.html are supported.
```bash
python pi.py
```

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

#### Installation
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
```

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

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

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

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

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 @@ -325,14 +175,8 @@ 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 @@ -345,26 +189,15 @@ 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
# For Linux Users
python youtube-bot-linux.py

# For Windows Users
python youtube-bot-windows.py
python integrate-graph.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 @@ -387,7 +220,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 @@ -399,15 +232,6 @@ 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/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)

* <a href="https://github.com/shivamp123" target="_blank">Shivam Pachaori</a>

[`Back to Top`](https://github.com/Logan1x/Python-Scripts#python-scripts)
### If you like the project give a star <img src="Selection_008.png" alt="Star button" align="top">
1 change: 0 additions & 1 deletion _config.yml

This file was deleted.

Loading