{"id":17992728,"url":"https://github.com/logan1x/python-scripts","last_synced_at":"2025-04-05T03:08:01.213Z","repository":{"id":47354027,"uuid":"91479960","full_name":"Logan1x/Python-Scripts","owner":"Logan1x","description":"Collection of Various Python Script's.💻","archived":false,"fork":false,"pushed_at":"2023-05-22T21:33:58.000Z","size":8498,"stargazers_count":312,"open_issues_count":1,"forks_count":148,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-03-29T02:03:51.141Z","etag":null,"topics":["automation","browser","browser-automation","hackathon","hacking-tool","hacktoberfest","password","password-manager","password-strength","python","selenium","webdriver","youtube","youtube-bot"],"latest_commit_sha":null,"homepage":"https://logan1x.github.io/Python-Scripts/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Logan1x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-05-16T16:25:28.000Z","updated_at":"2025-03-09T21:17:22.000Z","dependencies_parsed_at":"2023-02-17T05:00:49.164Z","dependency_job_id":"d4a77c87-ee05-46d4-8873-fb0ce5c6b902","html_url":"https://github.com/Logan1x/Python-Scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Logan1x%2FPython-Scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Logan1x%2FPython-Scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Logan1x%2FPython-Scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Logan1x%2FPython-Scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Logan1x","download_url":"https://codeload.github.com/Logan1x/Python-Scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280264,"owners_count":20912967,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","browser","browser-automation","hackathon","hacking-tool","hacktoberfest","password","password-manager","password-strength","python","selenium","webdriver","youtube","youtube-bot"],"created_at":"2024-10-29T20:09:05.152Z","updated_at":"2025-04-05T03:08:01.196Z","avatar_url":"https://github.com/Logan1x.png","language":"Python","readme":"﻿# [Python Scripts](https://logan1x.github.io/Python-Scripts/)\r\n\r\n[![forthebadge](http://forthebadge.com/images/badges/made-with-python.svg)](http://forthebadge.com)\r\n[![forthebadge](http://forthebadge.com/images/badges/built-by-developers.svg)](http://forthebadge.com)\r\n[![forthebadge](http://forthebadge.com/images/badges/check-it-out.svg)](http://www.logan1x.me/Python-Scripts/)\r\n\r\n\u003e This Repo is a collection of Various python scripts.\r\n\r\nIn 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.\r\n\r\n\r\n## Installation\r\n\r\nMake sure you've already git installed. Then you can run the following commands to get the scripts on your computer:\r\n\r\nOS X, Linux and Windows:\r\n\r\n```bash\r\ngit clone https://github.com/Logan1x/Python-Scripts.git\r\ncd Python-Scripts/bin\r\n```\r\n\r\n## Scripts\r\n\r\n* ### Air Quality Script\r\n    - This script renders the air quality from the location of the user\r\n    - The location is fetched using the user's IP address\r\n\r\n    - This script requires a key from WAQI. \r\n    - It is free and can be fetched from http://aqicn.org/data-platform/token/#/\r\n    #### Usage Instructions\r\n    ```python\r\n    python air-quality.py token\r\n    ```\r\n* ### Approximating *pi*\r\n\r\nThis 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.\r\n\r\n* ### Blog Reader\r\n\r\nBlog Reader is the terminal reader that scrapes the article from [planet dgplug](http://planet.dgplug.org/) and displays it on the terminal.\r\n\r\nIt separates the content accrding to the screen size.\r\n\r\n```bash\r\npython Blog_reader.py\r\n```\r\n\r\n* ### Bulk add users to Twitter list\r\n\r\nSimple script helps you mass add users to your twitter list to follow (Ex: Bitcoin/Altcoins official account, news, traders...)\r\n\r\n- Prepare list screen names\r\n- Setup your app and get an access token\r\n\r\n```bash\r\npip install twitter\r\npython bulk_add_twitter_list.py\r\n```\r\n\r\n\r\n* ### Caesar Cipher\r\nEncrypts or Decrypts any message you want, simply enter the message and the rotation number\r\n```bash\r\npython caesar_cipher.py\r\n```\r\n\r\n* ### Contributor list\r\nFor a given repo generate contribute.md with images in same size like the one in this README.md\r\n\r\n```python\r\n python .\\contributors.py https://github.com/Logan1x/Python-Scripts/\r\n```\r\nwhere the argument is the url of the repo\r\n\r\nyou may need to install packages like PIL@1.1.7 and requests if not installed \r\n\r\n* ### End To End Encryption\r\nIt is a simple program to implement and understand the basic of end_to_end encryption.\r\nHere I am using caesar cipher to encrypt but in reality they use algotihms lile SHA-1, RSA etc.\r\n```bash\r\npython end_to_end.py\r\n```\r\n\r\n\r\n* ### Expense Manager\r\nSimple 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\" \u003cpress enter\u003e \"\u003citem\u003e rs \u003camount\u003e\" ignore the quotes.\r\n\r\n```bash\r\npython expense_manger.py\r\n```\r\n\r\n\r\n\r\n* ### Facebook Auto Post\r\nThis is python script that log in into facebook and post the status.  \r\n\r\nYou can see live execution of this script [here](https://www.youtube.com/watch?v=YES16mVB0lQ).\r\n\r\n\r\n```bash\r\npip install -r facebook-auto-post.requirements.txt\r\npython facebook-auto-post.py\r\n```\r\n\r\n\r\n* ### Find Large Files\r\n\r\nSearches a file location and subdirectories for files larger than a given size.\r\nUseful for phones which might hide files in FileExplorer, but allow use as flash memory.\r\nDirectly prints results if run directly.\r\nMay also be imported, yielding results one by one.\r\n\r\n* ### FTP Download File\r\nA simple application to download a file via FTP with the given remote and local path\r\nParameters:\r\n * -hh hostname\r\n * -u  username\r\n * -p  password\r\n * -rd remote directory\r\n * -ld local directory\r\n```bash\r\npython ftp_download_file.py\r\n```\r\n\r\n* ### Fetch HTML\r\nThis script fetch html response from the provided url and parse xml tag to get only text content and print out.\r\n\r\n```bash\r\npython fetch_html.py https://github.com\r\n``````\r\n\r\n* ### Get External IP\r\nGets the external IP-Address from the current machine and prints it to the console\r\n```bash\r\npython getExternalIp.py\r\n```\r\n\r\n* ### Group files by type\r\n    - Group files by their extensions\r\n    - Files are moved into folders with extension names\r\n\r\n    #### Usage Instructions\r\n    ```python\r\n    python group_file_by_type.py 'C:\\\\test\\\\products'\r\n    ```\r\n\r\n* ### Handy offline dictionary\r\nA tiny offline dictionary app based on nltk wordnet and pyqt5\r\n```bash\r\ncd dictionary\r\npython app.py\r\n```\r\n\r\n* ### Highcharts loader\r\nIt is a simple program that can load charts from [highcharts](www.highcharts.com).\r\nAfter loading chart you can save it to file or embed it into your html page in base64 format.\r\nDon't forget install `requests` library from `highcharts_loader_requirements.txt`\r\n```python\r\nfrom highcharts_loader import ChartLoader, Options\r\n\r\noptions = Options(from_file='options.json')\r\nchart = ChartLoader(options)\r\nchart.save_to_file('result.png')\r\n```\r\n\r\noptions.json example:\r\n```json\r\n{\r\n    \"chart\": {\r\n        \"type\": \"bar\"\r\n    },\r\n    \"title\": {\r\n        \"text\": \"Which channels are driving engagement?\"\r\n    },\r\n    \"xAxis\": {\r\n        \"categories\": [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\",\r\n                       \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"]\r\n    },\r\n    \"series\": [{\r\n        \"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]\r\n    }]\r\n}\r\n```\r\n\r\n* ### Image Encoder\r\nIt is a simple program to encode and decode images, which helps to reduce and handle images on server, as it is converted to base64 address.\r\n```bash\r\npython image_encoder.py\r\n```\r\n\r\n\r\n* ### Integrate to find area of a graph\r\nThe script takes a given graph along with the range within which the area is to be calculated.\r\nIt then calculates the area using two methods, the Simpson method and the Trapezoid method and displays the results on a graph.\r\n```bash\r\npython integrate-graph.py\r\n```\r\n\r\n* ### Locate Me\r\nRun this script and it will locate you.\r\n\r\nThis will tell you your\r\n\r\n1. City\r\n2. Region\r\n3. Country\r\n4. Latitude \u0026 Longitude.\r\n5. Your Internet Service Provider  \r\n\r\n\r\nThis uses [Checkip](http://checkip.dyndns.com/) and [ipinfo.io](http://ipinfo.io/developers).\r\n\r\n```bash\r\npython locate-me.py\r\n```\r\n\r\n* ### Meme Density\r\nThis script tells you the amount of memes in your facebook feed\r\n\r\n\r\n```bash\r\npip install memedensity\r\n\r\nmemedensity\r\n```\r\n\r\n* ### Mi Community Bot\r\nThis python script uses selenium module in python to automate the thread posting.  \r\n\r\nYou can see live execution of this script [here.](https://www.youtube.com/watch?v=gWRF7-_xhx0)\r\n\r\nIf you want to understand this code you can visit [here.](https://l0gan1x.quora.com/1-Python-Thread-Posting-Bot-Using-selenium-module?srid=Ic2Y)\r\n\r\n```bash\r\npip install -r mi-community-bot.requirements.txt\r\npython mi-community-bot.py\r\n```\r\n* ### Missionaires And Cannibals Problem\r\nIt is a simple program to mimic Missionaries And Cannibals River Crossing Problem.\r\n```bash\r\npython missionaries_and_cannibals_problem.py\r\n```\r\n* ### Password Strength Checker\r\nThis 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.\r\n\r\n\r\n```bash\r\npython password-strength-checker.py\r\n```\r\n* ### Plotting a function\r\n\r\nThis 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`.\r\n\r\n* ### Server And Client\r\nIt is simple client server communication script, will add more functionality in future.\r\n```bash\r\ncd server_client\r\npython client.py\r\npython server.py\r\n```\r\n\r\n* ### Tweetload\r\nDownload 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.\r\n\u003cbr\u003e\r\nFor that to work, create a json file with your twitter credentials (see source) and define the twitter user in source code.  \r\n```bash\r\npython3 tweetload.py\r\n```\r\n* ### Twitter_retweet_bot\r\nIt is a simple script that retweets any hashtag provided in it. \r\n```bash\r\npython twitter_retweet_bot.py\r\n```\r\n* ### Twitter Sentiment Analysis\r\nA python script that goes through the twitter feeds and calculates the sentiment of the users on the topic of Demonetization in India. \r\nSentiments are calculated to be positive, negative or neutral.\r\nVarious other analyses are represented using graphs. \r\n \r\n```bash\r\npip install -r analyseTweets-requirements.txt\r\npython analyseTweets.py\r\n```\r\n\r\n\r\n* ### URL Shortener\r\nThis is python script that shortens any URL provided to it.\r\n\r\n```bash\r\n# Takes multiple inputs and returns shortened URL for both\r\npython shortener.py url1 url2\r\n\r\n#Stores shortened URLs in a file\r\npython shortener.py url1 url2 \u003e file.txt\r\n```\r\n\r\n* ### Video-downloader v1.1\r\n\r\n  #### About\r\n\r\n\r\nThis file allows the user to download videos off of the web.\r\nas 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\r\n\r\nwebsites given here http://rg3.github.io/youtube-dl/supportedsites.html are supported.\r\n\r\nMore features will be added in the future iterations of the project.\r\na simple video downloader using youtube-dl Library, a starter script for making use\r\nof youtube-dl.\r\n\r\n#### Requirements\r\n* You will need to install youtube_dl\r\n  * This can be installed using pip on windows,\r\n  * If you do not know how to use pip please read the installation instructions\r\n  * Requests library\r\n  * Can be downloaded using pip on windows and respective package managers on different operating systems.\r\n  * ffmpeg in order to convert the downloaded files to the right format\r\n\r\n#### Installation\r\n\r\nClone this repo and run `python vid.py` script!\r\nassuming you already have the other requirements.\r\n#### FFmpeg\r\n* ### Bulk add users to Twitter list\r\nFollow this wiki-How tutorial\r\n\r\nhttp://www.wikihow.com/Install-FFmpeg-on-Windows\r\n\r\n#### PIP\r\n\r\nExtensive information on how to set up virtual env and pip.\r\n\r\nhttps://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/\r\n\r\n#### Commands\r\n\r\nJust run the script and follow the interface! Videos downloaded in same folder as the script.\r\n\r\n* ### YouTube Bot\r\nThis is a simple python script that increases your video count/ views.\r\nLog out from all google accounts and run this.\r\n\r\n```bash\r\n# For Linux Users\r\npython youtube-bot-linux.py\r\n\r\n# For Windows Users\r\npython youtube-bot-windows.py\r\n```\r\n\r\n#### NOTE:  \r\nIn case your browser stoped working delete/comment the following line in the script.  \r\n#### _Linux_\r\n `os.system(\" killall -9 \" + brow)`\r\n#### _Windows_\r\n `os.system(\"TASKKILL /F /IM \" + brow + \".exe\")`\r\n\r\n## Release History\r\n\r\n* 0.0.1\r\n    * Work in progress\r\n\r\n\r\n### Markdown to presentation\r\nYou can convert markdown in a directory into a **.html** file for presentation using reveal.js\r\n\r\n``` \r\npython reveal-md.py -d folder_name -c config\r\n\r\n```\r\n\r\n### Note\r\nThe 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\r\n\r\n## Meta\r\n\r\nKhushal Sharma – [@Khushal](https://twitter.com/herkuch) – sharmakhushal78@gmail.com\r\n\r\nDistributed under the MIT LICENSE license. See [``LICENSE``](https://github.com/Logan1x/Python-Scripts/blob/master/LICENSE) for more information.\r\n\r\n[Logan1x](https://github.com/Logan1x/)\r\n\r\n\r\n## Contributing\r\n\r\n1. Fork it (\u003chttps://github.com/Logan1x/Python-Scripts/fork\u003e)\r\n2. Create your feature branch (`git checkout -b feature/fooBar`)\r\n3. Add your docs in `docs/data.json` file\r\n4. Commit your changes (`git commit -am 'Add some fooBar'`)\r\n5. Push to the branch (`git push origin feature/fooBar`)\r\n6. Create a new Pull Request\r\n7. Add your name with a link to your profile in the contributors list\r\n\r\n\r\n## Contributors\r\n\r\nThe following people helped in creating the above content.\r\n\r\n![ayrusme](./images/ayrusme.png  \"ayrusme\" )![lionasp](./images/lionasp.png  \"lionasp\" )![zinuzoid](./images/zinuzoid.png  \"zinuzoid\" )![dgupta777](./images/dgupta777.png  \"dgupta777\" )![chiraag-jain](./images/chiraag-jain.png  \"chiraag-jain\" )![niharikakrishnan](./images/niharikakrishnan.png  \"niharikakrishnan\" )![ahadali](./images/ahadali.png  \"ahadali\" )![khushboopaddiyar](./images/khushboopaddiyar.png  \"khushboopaddiyar\" )![Harshvardhan58](./images/Harshvardhan58.png  \"Harshvardhan58\" )![pr0me](./images/pr0me.png  \"pr0me\" )![abhinavralhan](./images/abhinavralhan.png  \"abhinavralhan\" )![Souldiv](./images/Souldiv.png  \"Souldiv\" )![szepnapot](./images/szepnapot.png  \"szepnapot\" )![SuryaThiru](./images/SuryaThiru.png  \"SuryaThiru\" )![apuayush](./images/apuayush.png  \"apuayush\" )![ishank011](./images/ishank011.png  \"ishank011\" )![ValentinChCloud](./images/ValentinChCloud.png  \"ValentinChCloud\" )![MadhavBahlMD](./images/MadhavBahlMD.png  \"MadhavBahlMD\" )![vigov5](./images/vigov5.png  \"vigov5\" )![RodolfoFerro](./images/RodolfoFerro.png  \"RodolfoFerro\" )![toonarmycaptain](./images/toonarmycaptain.png  \"toonarmycaptain\" )![harsha7890](./images/harsha7890.png  \"harsha7890\" )![Pradhvan](./images/Pradhvan.png  \"Pradhvan\" )![Rafi993](./images/Rafi993.png  \"Rafi993\" )![ehnydeel](./images/ehnydeel.png  \"ehnydeel\" )![shivamp123](./images/shivamp123.png  \"shivamp123\" )![vis2797](./images/vis2797.png  \"vis2797\" )![Sharanpai](./images/Sharanpai.png  \"Sharanpai\" )![kalbhor](./images/kalbhor.png  \"kalbhor\" )![iyanuashiri](./images/iyanuashiri.png  \"iyanuashiri\" )![akshitgrover](./images/akshitgrover.png  \"akshitgrover\" )![KayvanMazaheri](./images/KayvanMazaheri.png  \"KayvanMazaheri\" )![Logan1x](./images/Logan1x.png  \"Logan1x\" )![mohitpeshwani](./images/mohitpeshwani.png  \"mohitpeshwani\" )\r\n\r\n### If you like the project give a star  [\u003cimg src=\"Selection_008.png\" alt=\"Star button\" align=\"top\"\u003e](https://github.com/Logan1x/Python-Scripts/stargazers)\r\n\r\n\r\n[`Back to Top`](https://github.com/Logan1x/Python-Scripts#python-scripts)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogan1x%2Fpython-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogan1x%2Fpython-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogan1x%2Fpython-scripts/lists"}