Skip to content

Configuring a Versatile LLM Harness & Scraping the Web With Scrapy

July 24, 2026 · 58 min

Show notes

Which is more important, the model or the “harness” around an LLM? What are ways to assemble an efficient agentic developer workflow? This week on the show, Ayan Pahwa joins us to discuss harnessing, web scraping, and self-hosting Python applications.

Ayan is a developer advocate at Zyte and an experienced project builder. We discuss a recent article he wrote about creating an extension for the web scraping tool Scrapy. He also digs into his self-hosting setup for Python applications and tools.

Our discussion extends to the complexities of developing effective harnesses. Ayan shares his setup and how he navigated shifting from prompt engineering to context and loop engineering.

This episode is sponsored by HydraDB.

Course Spotlight: Introduction to Web Scraping With Python

In this video course, you’ll learn all about web scraping in Python. You’ll see how to parse data from websites and interact with HTML forms using tools such as Beautiful Soup and MechanicalSoup.

Topics:

  • 00:00:00 – Introduction
  • 00:02:01 – Scrapy and building an extension
  • 00:08:46 – Zyte and the web scraping API
  • 00:11:19 – Sponsor: HydraDB
  • 00:12:22 – noalgotube project
  • 00:15:49 – Homelab & self hosting projects
  • 00:22:19 – What goes into a harness?
  • 00:32:33 – Where did you start exploring LLM tools?
  • 00:36:13 – Local models & edge computing
  • 00:39:31 – ExtractPod and discussing Apple’s AI
  • 00:43:35 – Video Course Spotlight
  • 00:44:54 – Managing token use and tools
  • 00:52:37 – What are you excited about in the world of Python?
  • 00:55:10 – What do you want to learn next?
  • 00:56:38 – What is the best way to follow your work online?
  • 00:56:58 – Thanks and goodbye

Show Links:

Level up your Python skills with our expert-led courses:

Support the podcast & join our community of Pythonistas

All episodes of The Real Python Podcast

Settings

Display

Language

Decides which stations you see first on the home page.

History

Recently played stations and episodes and your latest searches are only stored in this browser.

Notifications

A short notice when a podcast you follow has a new episode. Turn off single podcasts with the bell on their page.

Account

Save favorites – in the app and on the website.

Keyboard shortcuts

/
Open search
Space
Play or pause
← →
In the player: back 15 s, forward 30 s (episodes) · in a row: next tile
↑ ↓
In a row: target within the tile
Home / End
In a row: first or last tile
Esc
Close window or menu
?
This overview
Now playing

Go to station page

Play next

    Add episodes with “Play next” – they play after the current episode.