Logan1x / Python-Scripts

Collection of Various Python Script's.💻
https://logan1x.github.io/Python-Scripts/
MIT License
305 stars 148 forks source link
automation browser browser-automation hackathon hacking-tool hacktoberfest password password-manager password-strength python selenium webdriver youtube youtube-bot

# Python Scripts

forthebadge forthebadge forthebadge

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.

Installation

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

Scripts

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.

Blog Reader is the terminal reader that scrapes the article from planet dgplug and displays it on the terminal.

It separates 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...)

pip install twitter
python bulk_add_twitter_list.py
 python .\contributors.py https://github.com/Logan1x/Python-Scripts/

where the argument is the url of the repo

you may need to install packages like PIL@1.1.7 and requests if not installed

python expense_manger.py

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.

python fetch_html.py https://github.com

options = Options(from_file='options.json') chart = ChartLoader(options) chart.save_to_file('result.png')


options.json example:
```json
{
    "chart": {
        "type": "bar"
    },
    "title": {
        "text": "Which channels are driving engagement?"
    },
    "xAxis": {
        "categories": ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
                       "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]
    },
    "series": [{
        "data": [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
    }]
}

This will tell you your

  1. City
  2. Region
  3. Country
  4. Latitude & Longitude.
  5. Your Internet Service Provider

This uses Checkip and ipinfo.io.

python locate-me.py
pip install memedensity

memedensity

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
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.

pip install -r analyseTweets-requirements.txt
python analyseTweets.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

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.

Requirements

Installation

Clone this repo and run python vid.py script! assuming you already have the other requirements.

FFmpeg

http://www.wikihow.com/Install-FFmpeg-on-Windows

PIP

Extensive information on how to set up virtual env and pip.

https://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/

Commands

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

# 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

Markdown to presentation

You can convert markdown in a directory into a .html file for presentation using reveal.js

python reveal-md.py -d folder_name -c config

Note

The config is optional. You can specify with keys as here https://github.com/hakimel/reveal.js/#configuration in a json file. Reveal.js cdn link is included in generated html you may need to download them if you want to use the presentation offline

Meta

Khushal Sharma – @Khushal – sharmakhushal78@gmail.com

Distributed under the MIT LICENSE license. See LICENSE for more information.

Logan1x

Contributing

  1. Fork it (https://github.com/Logan1x/Python-Scripts/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Add your docs in docs/data.json file
  4. Commit your changes (git commit -am 'Add some fooBar')
  5. Push to the branch (git push origin feature/fooBar)
  6. Create a new Pull Request
  7. Add your name with a link to your profile in the contributors list

Contributors

The following people helped in creating the above content.

ayrusmelionaspzinuzoiddgupta777chiraag-jainniharikakrishnanahadalikhushboopaddiyarHarshvardhan58pr0meabhinavralhanSouldivszepnapotSuryaThiruapuayushishank011ValentinChCloudMadhavBahlMDvigov5RodolfoFerrotoonarmycaptainharsha7890PradhvanRafi993ehnydeelshivamp123vis2797SharanpaikalbhoriyanuashiriakshitgroverKayvanMazaheriLogan1xmohitpeshwani

If you like the project give a star Star button

Back to Top