CSS Selector are not only used for html page authorization but more and more for web scraping too.
My question is, is it possible to use pure CSS Selector to identify the first (or second) hit out of a set of hits. For e.g., the google search,
https://www.google.ca/search?q=CSS+Selector+of+the+first+hit
Will yield a number of hits, and each hit can be identified by (is under)
div.rc
Say div.rc
gives me 10 hits, i.e., 10 google search results,
is it possible to use pure CSS Selector to pin-point the first hit, hit#1?
I think none of :nth-child(n)
, :first-child
, & ::first-line
is what I'm asking for, and the .first()
in "https://stackoverflow.com/questions/30628520/" is not a pure CSS Selector, right? Thx.
If all else fails and there is no such CSS Selector, then how about jquery Selector? Thx.