Scrapy Extensions, REST APIs, Django Sub-Commands, and More

#643 – AUGUST 20, 2024 VIEW IN BROWSER
The PyCoder’s Weekly Logo
Using a Custom Scrapy Extension to Log to a DB
The Scrapy crawl stat logs are useful for tracking and monitoring the performance of a spider. If you want to keep them longer rather than just see the console printout, you can have them written to a database.
XIEGERTS.COM • Shared by Stephen

Interacting With REST APIs and Python
In this video course, you’ll learn how to use Python to communicate with REST APIs. You’ll learn about REST architecture and how to use the requests library to get data from a REST API. You’ll also explore different Python tools you can use to build REST APIs.
REAL PYTHON course

Posit Connect - Help Your Analytics Team Share and Collaborate
Tired of tediously send files and trying to use general-purpose collaboration tools? Posit Connect makes it easy to share, collaborate, and get feedback on your data science work including Jupyter notebooks, Plotly dashboards, Streamlit, Quarto, Shiny or other interactive analytics applications →
POSITsponsor

Django: Create Management Sub-Commands
argparse, the standard library module that Django uses for parsing command line options, supports sub-commands. These are pretty neat for providing an expansive API without hundreds of individual commands. This article shows you how to write your own.
ADAM JOHNSON

PEP 752: Package Repository Namespaces (Added)
PYTHON

Quiz: Python Protocols: Leveraging Structural Subtyping
REAL PYTHON

Quiz: Logging in Python
REAL PYTHON


Discussions


How Do You Motivate Yourself to Sit Everyday & Code?
REDDIT


Articles & Tutorials


Crawling Infinite Scroll Pages With Playwright
When crawling websites with Scrapy you’ll quickly come across all sorts of scenarios that require you to get creative or interact with the page that you’re trying to scrape. One of these scenarios is when you need to crawl an infinite scroll page. This type of website page loads more content as you scroll down the page like a social media feed.
STEPHEN SIEGERT • Shared by Stephen Siegert

Automating Boolean-Based SQL Injection With Python
SQL injection is the process of tricking a database into doing unintended things by modifying the input values to a query. Boolean-based blind injection is a subset that reveals structural information about the database. These can be hard to craft by hand, this article shows you how to automate the process to help do penetration testing.
TREBLEDJ

Automatic Speech Recognition with AssemblyAI
Experience near-human accuracy, low-latency performance, and advanced Speech AI capabilities with AssemblyAI’s Speech-to-Text API. Sign up today and receive free API credits—No credit card required. Get $50 Credit →
ASSEMBLY AIsponsor

Logging in Python
If you use Python’s print() function to get information about the flow of your programs, then logging is the natural next step for you. This tutorial will guide you through creating your first logs and show you ways to curate them to grow with your projects.
REAL PYTHON

Recent CPython Function Call Performance Improvements
How costly it is to call functions and builtins in your python code? Does inlining help? How have the recent CPython releases improved performance in these areas? This article dives deep on function performance.
ABHINAV UPADHYAY

Debugging Running Python Scripts With PDB via GDB
On *nix systems with GDB installed, you can attach to already running processes. This article shows you how to combine that with Python’s PDB debugger to then add breakpoints to Python in a running script.
DOMINIK CZARNOTA

Approximating Sum Types in Python With Pydantic
This is a deeper dive into types and Pydantic around how to build “correct by construction” design patterns. Building your objects so that validation becomes a single call.
WILLIAM WOODRUFF

PyTorch vs TensorFlow for Your Python Deep Learning Project
PyTorch vs Tensorflow: Which one should you use? Learn about these two popular deep learning libraries and how to choose the best one for your project.
REAL PYTHON

How to Plot in the Terminal With Python and Textualize
Have you ever wanted to create a plot or graph in your terminal? Learn how with the textual-plotext package.
MIKE DRISCOLL

It Works on My Machine. Why?
A list of things to check when something works on your computer but not on someone else’s.
MATHEUS RICHARD

Python Packaging Is Great Now: uv Is All You Need
Juan talks about his love for the uv tool and how it has simplified Python packaging.
JUAN LUIS CANO RODRIGUEZ


Projects & Code


Brought to you by Real Python for Teamssponsor
Online Python training created by a community of experts. Give your team the real-world Python skills they need to succeed →

TTS: Deep Learning Toolkit for Text-to-Speech
GITHUB.COM/COQUI-AI

pyawaitable: CPython API for Asynchronous Functions
GITHUB.COM/ZEROINTENSITY

audiosample: NumPy-Like Audio Manipulation Library
GITHUB.COM/DEEPDUB-AI

django-http-debug: Endpoints That Log and Return Mock Data
GITHUB.COM/SIMONW

emval: Speeding Up Email Validation 1000x
GITHUB.COM/BNKC • Shared by lev ostatnigrosh

📆🐍 Upcoming Python Events


Weekly Real Python Office Hours Q&A (Virtual)
August 21, 2024

PyCon Somalia 2024
August 21 to August 23, 2024

Kiwi PyCon XIII
August 23 to August 26, 2024

PyDelhi User Group Meetup
August 24, 2024

EuroSciPy 2024
August 26 to August 31, 2024

PyCon PL 2024
August 29 to September 1, 2024
Happy Pythoning!
Copyright © 2024 PyCoder’s Weekly, All rights reserved.
You are receiving this email because you opted in on our website at pycoders.com
Our mailing address: DevCademy Media Inc. · #720-999 West Broadway, Vancouver BC V5Z 1K5, Canada

Unsubscribe | Update Email Address

Older messages

Testing with nox, Async Iterators, Log Propagation, and More

Tuesday, August 13, 2024

Testing Coverage and Using `nox` #642 – AUGUST 13, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Testing Coverage and Using nox This is part 9 in an in-depth series on testing. This part talks

Setuptools Deprecation, Installable Django Apps, Flask, and More

Tuesday, August 6, 2024

Setuptools Breaks Things, Then Fixes Them #641 – AUGUST 6, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Setuptools Breaks Things, Then Fixes Them This post is Bite Code's monthly summary, but

Great Tables, itertools, Asyncio In A Thread, and More

Tuesday, July 30, 2024

Build Captivating Display Tables in Python With Great Tables #640 – JULY 30, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Build Captivating Display Tables in Python With Great Tables Do you need

Asyncio Exceptions, Protocols, Free-Threaded CPython, and More

Tuesday, July 23, 2024

Asyncio `gather()` Handle Exceptions #639 – JULY 23, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Asyncio gather() Handle Exceptions The asyncio.gather() function takes an optional argument

VS Code Settings, Leaked Creds, Free-Threaded CPython, and More

Tuesday, July 16, 2024

Customize VS Code Settings #638 – JULY 16, 2024 VIEW IN BROWSER The PyCoder's Weekly Logo Customize VS Code Settings In this course, Philipp helps you customize your Visual Studio Code settings to

You Might Also Like

4 ways I reuse my old iPhones (instead of trading them in)

Thursday, September 12, 2024

Flipper Zero's big upgrade; Google goes Wayback; Best TVs under $1k -- ZDNET ZDNET Tech Today - US September 12, 2024 placeholder 4 ways I reuse my old iPhones instead of trading them in -

wpmail.me issue#684

Thursday, September 12, 2024

wpMail.me wpmail.me issue#684 - The weekly WordPress newsletter. No spam, no nonsense. - September 12, 2024 Is this email not displaying correctly? View it in your browser. News & Articles 12 Best

PHPWeekly September 12th 2024

Thursday, September 12, 2024

Curated news all about PHP. Here's the latest edition Is this email not displaying correctly? View it in your browser. PHP Weekly 12th September 2024 Hi everyone, It's a great week for Laravel.

From poetry to AI Innovator. Watch Sonja’s story.

Thursday, September 12, 2024

First she beat cancer. Then, she tackled AI. ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

Post from Syncfusion Blogs on 09/12/2024

Thursday, September 12, 2024

New blogs from Syncfusion Boost React MultiSelect Dropdown Performance with Virtualization By Prince Oliver This blog explains how to enhance React MultiSelect Dropdown performance with the

Top Tech 🏆 The Pixel 9 Is a Surprisingly Big Upgrade — This Power Bank Is Hefty and Cute

Thursday, September 12, 2024

Also: This Petite Bluetooth Speaker Has Big Volume, and More! How-To Geek Logo September 12, 2024 📱 All the Pixels While the attention is currently on the iPhone 16 series, Google's new Pixel 9 is

Ireland's Watchdog Launches Inquiry into Google's AI Data Practices in Europe

Thursday, September 12, 2024

THN Daily Updates Newsletter cover Java and Algorithmic Thinking for the Complete Beginner ($9.99 Value) FREE for a Limited Time From Basics to Advanced Techniques: Master Java and Algorithms for a

Digest #145: SQLite on Rails, Nim vs. Python, Faster Cloud Provisioning, and Zero-Downtime AWS Deployments

Thursday, September 12, 2024

Nginx logging tips, recovering AWS EKS roles, and optimizing Azure Functions. Plus, insights into Kubernetes security, lightweight dev environments, and the latest DevOps tools. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

This Tiny German Hearing Aid Is Taking the U.S. by Storm, According to the Experts

Thursday, September 12, 2024

Alarming fact: More than 48 million Americans hear so poorly that their quality of life significantly suffers as a result. The problem: Most wait too long to act, hoping their hearing will improve on

Edge 430: Learn About The AI Scientist, The Model that can Conduct Long Term Scientific Experimentation

Thursday, September 12, 2024

The framework combines different generative AI models to streamline scientific research from idea to paper. ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏