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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:25:33+00:00 2026-06-11T09:25:33+00:00

All- I have the following code: class AddStringTask extends AsyncTask<Void, String, Void> { @Override

  • 0

All- I have the following code:

class AddStringTask extends AsyncTask<Void, String, Void> {    
    @Override
    protected Void doInBackground(Void... unused) {
        org.jsoup.nodes.Document doc = null;
        try {
            doc = Jsoup.connect("http://scores.espn.go.com/
                                 nfl/gamecast?
                                 gameId=320909007',%20'gamecast320909007"
                               ).get();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        docTitle = doc.select("head").first().text();
        return null;    
    }
}

I get the output “NFL Gamecast – Chicago vs Green Bay” (Green Bay won by the way). That is great but when I tried to get the actual score I could not figure out how. My problem was I was trying to replace “head” with <div id="awayScoreBox" class="vscorebox">...</div> (this is under the <Body> Tag). So following the format of using the “head” tag I tried this:

docTitle = doc.select("div id="awayScoreBox" class="vscorebox"").first().text();
return null;    

As you can imagine I got a syntax error but could not figure out why. I realize that I might have to specify that this is under the <Body> tag but I could not find any information on how to go about doing this. Any help would be greatly appreciated.

  • 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-11T09:25:34+00:00Added an answer on June 11, 2026 at 9:25 am

    It is a css selector for selecting id and class at the same time so it’s

    doc.select("div#awayScoreBox.vscorebox");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code snippet: class Cert { public static void main(String[] args)
Hi All I have the following code: enter code here public class XMPPClient extends
Hi I have following test code: class Program { static void Main(string[] args) {
I have the following code: public class Class1 { void ValueSpecific(string arg) { //
I have the following code: public class MyLocationListener implements LocationListener { @Override public void
I was given the following code: class FibHeapNode { //... // These all have
I have the following code: public class Parent { public string MyField { get;
Suppose I have the following Scala code: class Foo(a: Int) class Bar(b: Buffer[Int]) extends
I have following code: public class ShowActivity extends ListActivity implements OnItemClickListener { /** Called
I have the following code in my class object: void Object::drawSurface() { GLUnurbsObj *nurbSurface;

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.