Scraping and Verifying the contents a webpage using Playwright

Опубликовано: 10 Октябрь 2024
на канале: basarat
5,503
62

We've already seen a simple example of web scraping in the form of page.screenshot. In this lesson we look at how you can #scrape the contents of a #website as text.

We also look at using element handles vs. page evaluations for the purpose of getting the contents of a website into our automation code 🌹

This lesson is a part of the complete course on Playwright here on YouTube ❤️
   • Playwright Course  

#basarat

In this lesson:
0:00 Intro
0:22 Application Code Overview
1:21 Scraping with elements
3:38 Scarping with evaluations
5:40 Scraping Arrays
6:44 Outro

👇 SUBSCRIBE for MORE 👇
https://www.youtube.com/basaratali?su...

*Feel Free To Read This Lot*

I'm Basarat, That TypeScript Guy and I love helping developers. More about me:

Microsoft MVP for TypeScript
Lead Frontend Practice at Australia Post
Creator https://designtsx.com
150K contributions on Stackoverflow. Top Contributor for TypeScript.
Book Author : Beginning NodeJS
Book Author : TypeScript Deep Dive
Egghead Instructor : https://egghead.io/instructors/basara...
Creator of multiple hot ✨ed Github Open Source projects

Follow me on twitter:   / basarat  
Follow me on github: https://github.com/basarat
Donate: https://www.paypal.me/basaratali

Website: https://basarat.com/