How to make an Image Web Scraper, Tutorial Pt4 Extract Links from HTML

preview_player
Показать описание
Part 4 - Now we extract the links from the source code that we pulled from the website by building a function for it.

Instead of over-complicating things with Regex, we are simply zeroing in on our targets using IndexOf to get the start and end index positions of our links.

We will load those links into a String List which we can then view from within the IDE's console window (For Linux & Mac users), or in a message dialog if you're a Windows user.

This will get us ready to jump into the next tutorial where we will randomly select one of the links in the String List and stream the image into the Image component of our app.

BUY ME A BREWSKI

*************
How to scrape images from a web page? Watch me as I create a simple web scraper desktop application using Free Open Source - Code Typhon Studio 7.2 which is based on Lazarus IDE.

Using this powerful IDE, watch me code in free pascal and see how easy it is to create a web scraper from scratch and effortlessly create the GUI with the IDE's built in drag and drop GUI Designer.

I'll show you that web scraping is not just for Python, Javascript, PHP etc. And unlike those scripting languages, we can build a native executable file that can be cross-compiled for many different platforms including Windows, MacOS, and Linux straight from your own OS.

--- Optional Alternatives ---

Or if you prefer Lazarus IDE instead, install the Trunk version with FPCupDeluxe...

Lazarus Website

----------------------------------

OpenSSL Libraries for Windows users:

My custom user scheme for the code editor.
Рекомендации по теме
Комментарии
Автор

Love your style, sir. Learning a lot as I'm following along.

sablesanctum
Автор

Awesome content! I'm curious, how do you feel about integrating HasData into your scraping workflow?

DanBrewster-yw
Автор

Subbed! thank you so much for this tutorial series. can't wait for the final output. if it's not too much to ask, can you also make a tutorial on how to read/write in googlesheets using googlesheets api with pascal? Thanks!!!

Leo
welcome to shbcf.ru