UNLIMITED

Linux Format

How to use Mojolicious for web scraping

Part One

Don’t miss next issue! Subscribe on page 16

OUR EXPERT

Mark Gardner is a software developer and blogger with over 25 years of IT experience. You can reach him at www.phoenixtrap.com and @markjgardner.

QUICK TIP

The map function is designed to transform a list or collection via a function. You could use a for each loop, but the map has the advantage of returning a new list or collection, enabling you to chain other methods or functions, like the -Mojo oneliner does with join().

So much of the modern web is driven by services and front-end interfaces talking to APIs that it’s easy to lose sight of the fact that everything is ultimately presented in a soup of HTML markup. In the absence of a well-structured interface or format, sometimes the code you’re writing needs to scrape the ingredients of that

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format1 min read
Your Digital Issue Access
» As a big thank you for subscribing to Linux Format Print Edition, we’ve always offered digital access to past issues. It seems The Management thought it was a good idea and has rolled out a new system using Pocketmags ! This means there are now two
Linux Format6 min read
Get Started With A Pico
Happy holidays! You’ve just got a shiny new Raspberry Pi Pico, and you don’t know what to do with it. Fear not! We’ve got your getting started guide right here. We’ll also cover the basics of becoming a maker. So, let’s get started with getting our P
Linux Format2 min read
First Public View Of Pi Compute Module 5
The Raspberry Pi Compute Module 5 (CM5) has been spotted in the wild. This unannounced compact-optimised version of the Raspberry Pi 5 is apparently on show at the Electronica 2024 show in Munich. With this high-profile public showing of the CM5, it

Related Books & Audiobooks

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy