Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6832541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:52:16+00:00 2026-05-26T22:52:16+00:00

I unfortunately have to scrape a webpage, and I’m doing so via Google Docs.

  • 0

I unfortunately have to scrape a webpage, and I’m doing so via Google Docs.

The document looks like this:

<div class='search'>
 <div class='new'>
  <img src="product1.png" title="Product 1 - €2.40"/>
 </div>
 <div class='new dupe'> <!-- this one appears dimmed: there's a better offer -->
                        <!-- I don't want these in my results -->
  <img src="product1.png" title="Product 1 - €2.70"/>
 </div>
</div>

The current xPath looks like this:

//div[@class='search']//@title

How can I modify it? I could do

//div[@class='search']//div[not(@class='dupe')]//@title

…but that won’t work because no item actually has the list of classes being exactly 'dupe'.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:52:17+00:00Added an answer on May 26, 2026 at 10:52 pm
    /div[@class='search']/div[not(contains(@class, 'dupe')]//@title
    

    I would try to avoid using // and be more specific:

    /div[@class='search']/div[not(contains(@class, 'dupe')]/img/@title
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm doing some fairly simple cross-platform TCP socket programming. I have unfortunately found out
I see that this has been asked many times. But, unfortunately I have not
I have recently launched my application into the Google Play store but unfortunately some
I have a page with many HTML lines like this: <ul><li><a href='a_silly_link_that_changes_each_line.php'>the_content_i_need</a></li></ul> Now as
I have this homework in Visual Web Developer (ASP.NET - C#) and unfortunately I
I have a Crystal Report that looks like: Date | Person | Ticket |
I have been working on this for a while now and, unfortunately have little
Here is a HTML markup <tr><td><b>Effective Date</b></td><td colspan=2><input class=datepicker value=01/04/2011 ></td></tr> (Unfortunately I have
I have unfortunately fallen victim to this recent attack: http://www.theregister.co.uk/2011/10/14/mass_website_inection_grows/ . I have found
Unfortunately I have to do some interaction with IBM's UniData database system. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.