Follow

@markovbot Now that we have found the anchor tags, how do we get the href value? Unfortunately, it’s not as easy as you would expect. A token stores it’s attributes in an array, so the only way to get the href is to iterate over every attribute until we find it. Here’s the code to do it.

Sign in to participate in the conversation
Melbourne Mastodon

Melbourne Social is a small Mastodon instance for users from/interested in/living in Melbourne, Australia 📍