Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7027287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T00:13:40+00:00 2026-05-28T00:13:40+00:00

I am trying to crawl a web page that is built using GWT and

  • 0

I am trying to crawl a web page that is built using GWT and uses the GWT RPC mechanism for AJAX calls. The page I am trying to crawl is not mine – so I can’t edit the server side. I am very new to GWT and from my initial couple of days with it – I think that you can’t de-serialize the data unless you’ve the case interface with you.

Am I right or Is there a way to crawl the data intelligently?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T00:13:41+00:00Added an answer on May 28, 2026 at 12:13 am

    You could do it using htmlunit and WebClient:

    //real code mixed with pseudo-code:
    WebClient webClient = new WebClient(BrowserVersion.FIREFOX_3);
    Map<String, String> urls = new HashMap<->();
    LinkedList<String> urlsToVisit = new LinkedList<->();
    urlsToVisit.put("http://some_gwt_app.com/#!home");
    while (!urlsToVisit.isEmpty()) {
        String page = urlsToVisit.remove();
        if (urls.containsKey(page)) { 
            continue;
        }
        String rendered = webClient.getPage(page);
        urls.put(page, rendered);
        urlsToVisit.addAll(extractLinks(page));
    }
    

    You might have to experiment with the WebClient options a bit. In my case these seem to do a good job:

    webClient.setThrowExceptionOnScriptError(false);
    webClient.setRedirectEnabled(true);
    webClient.setJavaScriptEnabled(true);
    // important! Give the headless browser enough time to execute
    // JavaScript. The exact time to wait may depend on your application.
    webClient.waitForBackgroundJavaScript(20000);
    webClient.setAjaxController(new NicelyResynchronizingAjaxController());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build an ASP.NET page that can crawl web pages and display
I'm trying to crawl this page using Perl LWP: http://livingsocial.com/cities/86/deals/138811-hour-long-photo-session-cd-and-more I had code that
I am trying to create a simple web crawler using PHP that is capable
I'm trying to crawl about a thousand of web sites, from which I'm interested
I am simply trying to dump my segments from a crawl using readseg. If
What i'm trying to do is crawl this webpage using C# http://www.madisonhonda.com/Preowned-Inventory.aspx?layout=layout1# What I
I'm trying to recursively crawl through all the available links in a page, and
I am trying to save a couple of web pages by using a web
I am trying to crawl a website using a java program. Until last night
'm trying to crawl some rows from CSV file using CSVFeedSpider The structure of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.