Python Crawling & Data Mining
Author

Python Crawling & Data Mining

Life's short, I code in Python. This channel shares Python web crawling, data mining, analysis, processing, visualization, automated testing, DevOps, big data, AI, cloud computing, machine learning tools, resources, news, technical articles, tutorial videos and learning materials. Join us!

1.5k
Articles
0
Likes
506
Views
0
Comments
Recent Articles

Latest from Python Crawling & Data Mining

100 recent articles max
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 18, 2025 · Fundamentals

Master Python’s With Statement: Build Elegant Context Managers for Safer Code

This tutorial explains why traditional try‑finally resource handling is cumbersome, introduces Python’s with statement and the underlying __enter__/__exit__ magic methods, provides practical examples such as timers, database connections, temporary directories, and shows how to simplify custom managers with contextlib while covering best practices and performance considerations.

Exception HandlingPythoncontext-manager
0 likes · 10 min read
Master Python’s With Statement: Build Elegant Context Managers for Safer Code
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 17, 2025 · Fundamentals

Unlock Massive Memory Savings in Python with __slots__: A Complete Guide

This article explains how Python's default class memory overhead can be dramatically reduced using the __slots__ magic attribute, providing detailed code examples, memory and speed benchmarks, practical use cases, limitations, and best‑practice recommendations for developers who need high‑performance, memory‑efficient objects.

PerformancePythonSlots
0 likes · 12 min read
Unlock Massive Memory Savings in Python with __slots__: A Complete Guide
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 12, 2025 · Fundamentals

When Should You Use Threads, Processes, or Asyncio in Python? A Practical Guide

This article explains the difference between concurrency and parallelism, the impact of Python's GIL, and provides a detailed comparison of threading, multiprocessing, and asyncio with code examples, performance tests, decision flowcharts, best‑practice tips, and a summary table to help you choose the right concurrency model for your tasks.

Pythonthreading
0 likes · 14 min read
When Should You Use Threads, Processes, or Asyncio in Python? A Practical Guide
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 10, 2025 · Fundamentals

Master Python Decorators: Boost Your Functions in Minutes

This article explains Python decorators with clear analogies, walks through the underlying concepts of higher‑order functions and closures, provides practical code examples such as timing and logging decorators, discusses common pitfalls like lost metadata, and shows how to preserve it using functools.wraps.

Best practiceHigher-order functionPython
0 likes · 10 min read
Master Python Decorators: Boost Your Functions in Minutes