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 8023175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:29:42+00:00 2026-06-04T22:29:42+00:00

I am continuing work on a project that I’ve been at for some time

  • 0

I am continuing work on a project that I’ve been at for some time now, and I have been struggling to pull some data from a website. The website has an iframe that pulls in some data from an unknown source. The data is in the iframe in a tag something like this:

<DIV id="number_forecast"><LABEL id="lblDay">9,000</LABEL></DIV>

There is a BUNCH of other crap above it but this div id / label is totally unique and is not used anywhere else in the code.

  • 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-06-04T22:29:44+00:00Added an answer on June 4, 2026 at 10:29 pm

    jsoup is probably what you want, it excels at extracting data from an HTML document.

    There are many examples available showing how to use the API: http://jsoup.org/cookbook/extracting-data/selector-syntax

    The process will be in two steps:

    • parse the page and find the url of the iframe
    • parse the content of the iframe and extract the information you need

    The code would look like this:

     // let's find the iframe
     Document document = Jsoup.parse(inputstream, "iso-8859-1", url);
     Elements elements = document.select("iframe");
     Element iframe = elements.first();
    
     // now load the iframe
     URL iframeUrl = new URL(iframe.absUrl("src"));
     document = Jsoup.parse(iframeUrl, 15000);
    
     // extract the div
     Element div = document.getElementById("number_forecast");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been working on a project that requires downloading a zipped file off
I have been working on a project that has common bits of functionality, specifically
I've been working on a project at work and have come to the realization
I have data table containing one column as FilePath. FilePath D:\New folder\link.txt D:\New folder\SharepointMigration(Work
I have a project that has a few dependencies on other Jars. I currently
I am trying to learn AJAX for this project at work. I have a
I have an ASP.NET page A that uses a data layer assembly DAL .
I'm currently involved in a project that is migrating some old VB6 code to
We have a project structure like following: sharedlib (lib-project, containing classes, that are useful
I'm continuing to work out of an outdated bioinformatics book and I'm attempting to

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.