0

I am following a tutorial given in the following link

How can you search Google Programmatically Java API

please refer the top answer, when I try that I get 0 links in my page and if I replace that .g>.r>a with a *, I'm getting some links so the question here is that what does they mean.

I have already looked into JSOUP api reference but i do not understand the way they have explained that.

Community
  • 1
  • 1
Lokanath
  • 662
  • 5
  • 18

1 Answers1

2

Here is the signification of the CSS selector:

.g    /* Select any element (1) with class called 'g' */
> .r  /* Select any direct child elements (2) of (1) with class called 'r' */
> a   /* Select any anchor element directly under (2) */
Stephan
  • 41,764
  • 65
  • 238
  • 329