Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

160
Views
Getting rid of "before you continue to google" with jsoup

I'm trying to get google search engine results in this way:

    Document document = Jsoup.connect("https://www.google.com/search?q=example").userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11 Firefox/19.0").timeout(3000).get();
    Elements temp = document.select("div.rc");

but I'm getting the before you continue to google page, which doesn't allow me to get the information i want.

I also tried this:

    try {
        Map<String, String> cookies = Jsoup.connect("https://www.google.com/search?q=example").execute().cookies();
        Document document = Jsoup.connect("https://www.google.com/search?q=example").userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11 Firefox/19.0").timeout(3000).cookies(cookies).get();
        Elements temp = document.select("div.rc");

    } catch (IOException e) {
        // error handling
    }

to connect with those cookies, but it doesn't work too. Is there a way to get around that annoying page?

Thanks in advance

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!