TagUI tutorial 2 - bookdepository.com - Part 1

Problem

There are 8 book lists in the page. bookdepository.com

We want to grab the name of Book List #1: Bestselling Books in Singapore

Solution - TagUI Script

// bookdepository_v01
// Get the name of the 1st Book List

https://www.bookdepository.com/

read //div[@class="block-wrap  "][1]//h2 to booklist
echo "booklist = " + booklist

Explanations

  1. Each book list is contained in one
    block: //div[@class="block-wrap "]
  2. We zoom in to the first book list: //div[@class="block-wrap "][1]
  3. And then zoom in further to the title, which is contained in

    : //div[@class="block-wrap "][1]//h2

Other TagUI Tutorials

Other Resources

Comments (0)

There are no comments posted here yet

Leave your comments

Posting comment as a guest. Sign up or login to your account.
Attachments (0 / 3)
Share Your Location