Select only certain text/links

196 views
Skip to first unread message

Haily R

unread,
Mar 1, 2021, 10:03:49 PM3/1/21
to Web Scraping
When you select two pieces of text that are similar, ParseHub automatically selects all the similar text. is there a way to disable this? I'm scraping this page: https://bleach.fandom.com/wiki/Characters and I only want to select the 'Arrancar' and 'Hollow' links

Andrew11

unread,
Mar 1, 2021, 10:13:36 PM3/1/21
to Web Scraping
Hi again, glad to see you're still at it with the anime scrapes! You can use a CSS selector with two terms separated by a comma, like th a[href*="Hollow"], th a[href*="Arrancar"] or the simple answer is to make two separate Selects, that way you can use the ParseHub auto select mode… I tried to find information on "deselecting" items in ParseHub and came up blank, not for the first time.

Haily R

unread,
Mar 1, 2021, 10:18:37 PM3/1/21
to Web Scraping
The CSS selectors work great! Thank you!

Andrew11

unread,
Mar 2, 2021, 6:42:55 PM3/2/21
to Web Scraping
No problem. If you're into CSS I came across this other way on the web today, which might be more useful in some situations: th:lt(5):gt(2) a
Reply all
Reply to author
Forward
0 new messages