5 Most Useful Scripts in Python
Made with canva
Hello everyone, This is my first post on a useful Python script. I will publish more posts in the future where I will collect important scripts of Python or mini-projects to improve my Python skills.
This script will convert your JSON data to a CSV file. It takes .json a file as input and provides .csv the file as output.
pip install json
<iframe src="https://medium.com/media/bc8b75b0d2b32e52d8c534e0ebd16152" frameborder=0></iframe>
<iframe src="https://medium.com/media/92ea762dd9abc5fd21d4c4776494d10d" frameborder=0></iframe>
This simple Python project is using random and string package to generate a random string of a given length.
<iframe src="https://medium.com/media/ee9c688c9418bae8687654bfd1cde6c5" frameborder=0></iframe>
Finds a file with the supplied string in the folder of your choosing.
<iframe src="https://medium.com/media/06f6f0afe1c98683136155127bfda8b4" frameborder=0></iframe>
This script gets all links from a particular website and saves them as a text file.
pip install beautifulsoup4 requests
<iframe src="https://medium.com/media/8d14a9ee4d3c9abf1a7582cee91ec177" frameborder=0></iframe>
This project will take a photograph and put a watermark of your choice on it.
pip install Pillow
<iframe src="https://medium.com/media/58c693435b8a6972d3d05b003deeadd4" frameborder=0></iframe>
python3 watermark.py [image_path]
Replace [image path] with the image on which you wish to apply a watermark.
I have provided 5 scripts to learn Python. I hope these will help you learn something new. Clap 👏 on this post to learn more posts from this series of posts soon. Learn more python script posts here.
I hope you enjoyed reading this lesson; you can follow me to read more tutorials from me in the future. Thank you for your time.
By becoming a Medium member, you can support me and your other favorite authors. Thanks! 👇 Join Medium with my referral link - Harendra Verma As a Medium member, a portion of your membership fee goes to writers you read, and you get full access to every story…medium.com
Hello, I am Harendra Kumar Kanojiya - Owner of this website and a Fullstack web developer. I have expertise in full-stack web development using Angular, PHP, Node JS, Python, Laravel, Codeigniter and, Other web technologies. I also love to write blogs on the latest web technology to keep me and others updated. Thank you for reading the articles.