Do It Yourself – Website Tutorials
Part 3 – Now we get into the meat of writing the Free Pascal code in the IDE. If you’ve used Delphi or Object Pascal in the past, this will look very familiar.
We will download the OpenSSL DLL files (for Windows Users), and call to those libraries in our source under the ‘uses’ section.
Next we write a function calling the fphttpclient library so we can make a request to the website and grab the source code.
We will then be able to view the source code in the IDE’s console window (For Linux & Mac users), or in a message dialog if you’re a Windows user.
This will get us primed for the next step which will be to extract the image links out for loading into the image component in the GUI.
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.
Download Code Typhon from Pilotlogic.com
— Optional Alternatives —
Or if you prefer Lazarus IDE instead, install the Trunk version with FPCupDeluxe…
OpenSSL Libraries for Windows users:
My custom user scheme for the code editor.