Python Web Scraping: From URL to CSV in No Time

Setting up the Environment Before diving into web scraping with Python, set up your environment by installing the necessary libraries. First, install the following libraries: requests, BeautifulSoup, and pandas. These packages play a crucial role in web scraping, each serving different purposes.✨ To install these libraries, click on the previously provided links for a full … Read more

Organize Files by Suffix: How I Created a Python Script to Automate a Boring Task

Does the nature of your work involve going through a folder full of dozens, hundreds, or even thousands of files? What if you were told to organize those files according to their extension in a subdirectory, imagine how boring and time-consuming such a task would be if the files contain dozens of extensions! What if … Read more

Python Pickle Module: Simplify Object Persistence [Ultimate Guide]

πŸ₯’ Python pickling is another word for serializing and de-serializing Python objects, so you can store them in a binary format or transmit them across a network. Pickling helps preserving the state of objects, such as data structures or machine learning models, between different sessions or applications. The pickle module in Python’s standard library provides … Read more

This Simple Python Script Compressed My Folder of 200 Images by 700% Without Much Loss πŸš€

For my current web project I need to upload 200 images to my website. All of them are in the same folder. Here’s the problem: 🀯 Challenge: My images have file sizes of 2 to 3 MB, so they are far too big and will significantly slow down my website. πŸ‘‰ To reduce the file … Read more

I Used This Python Script to Rename All Files in Subfolders (Recursive)

I’m currently working on a website project for the Finxter ecosystem, where I’m given a folder with subfolders (and subfolders within) that contain image files. Example folder structure: folder — subfolder1 —- image1.jpg —- image2.jpg —- image3.jpg — subfolder2 —-image1.jpg —-image2.jpg Across the subfolders, the files may have the same name, which causes an issue … Read more