Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67527

Trouble scraping for specific html data, or data just not showing

$
0
0

Hello to the community.

I am experiencing a problem when attempting to collect and element objects, from deep within the html body of the site which I am scraping.

Url.

https://corporation.directory/quicksearch/company

Inside my AsynTask.DoInBackground method, I have the following.

        try {


            Document doc = Jsoup.connect("https://corporation.directory/quicksearch/company").get();

            for (Element table : doc.select("body"))
            {
                for (Element row : table.select("table.0")){

                    tds = row.select("td");
                    if (tds.size() > 0){

                        Toast.makeText(MainActivity.this, tds.get(0).text(), Toast.LENGTH_LONG).show();
                    }
                }
            }


           // title=doc.body().text();



        } catch (IOException e) {
            e.printStackTrace();
        }

And this is the data I have been unsuccessfully trying to retrieve [I am trying to retrieve multiple elements with text, that contains these identifiers (Twitter, Colorado,(303)-444-4444, Alex Oha)][ Any suggestions will be deeply appreciated]

screenshot

https://i.stack.imgur.com/quAgl.png


Viewing all articles
Browse latest Browse all 67527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>