Scraping a more specific XPATH

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1320
    Luke BaumannLuke Baumann
    Participant

    Hi I really like the plugin so far but I am having one issue… I am trying to scrape and create multiple posts from the listings found on this page.

    https://www.taphunter.com/location/clam-lake-beer-co/5318863572172800

    the Problem is that this page contains tabbed content. The serial items (links) i am scraping are present in all of the tabs. So instead of scraping the content from one specific tab it scrapes all of the tabs which is not what I want. If i could somehow come up with a longer Xpath that specifies only the unique tab ID that would resolve my problem. Is that possible? If so could you assist on this?

    I attached an image of what I am trying to scrape. As you can see there are tabs on top that are retrieved in my scrape results. I would want just one tab to be scraped at a time. id=”tab_tap”

    Attachments:
    You must be logged in to view attached files.
    #1324
    Suman M.Suman M.
    Keymaster

    Hi, thanks for reaching out to us. Yes, you can achieve it. Please use the following XPath for “Item’s Path” in Step 1:

    //div[contains(@id, "tab_tap")]//h4[contains(@class, "media-heading")]/a

    Let us know if any issue.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register