remove 1 item from select

871 views
Skip to first unread message

Travis Kessler

unread,
Oct 9, 2020, 3:37:09 PM10/9/20
to Web Scraping

I'm new to ParseHub.  I'm trying to scrap a list of files.  The page shows 50 results in a table but at the top of the table/column is the word "Name" that is also a link that sorts the results by name.  When I select the first item and then the 2nd to correct/confirm it always includes the "Name" link at the top giving me 51 results being scraped.  It's not an issue until I try to use click on the results.  Is there a way to exclude or remove the "Name"?  It seems like holding shift adds items but I haven't found a key combo or option to remove.  Thanks

b...@parsehub.com

unread,
Oct 9, 2020, 4:58:52 PM10/9/20
to Web Scraping
Hi,
In this case your condition can be if $selection.index>0.
This will ensure every item is clicked/extracted after the first!
If you have any questions about this, please contact us at he...@parsehub.com!
Thanks.

Andrew11

unread,
Oct 9, 2020, 5:03:39 PM10/9/20
to Web Scraping
You can also try selecting the elements with custom CSS, but I can't guarantee which one will work without seeing the source page:

a:not(:first)
tr:not(:first) a
Reply all
Reply to author
Forward
0 new messages