javascript - Fetch Span Value on specific Website -


so have java code fetch values span. values comes null. not sure might issue. if span written in javascript, possible extract values span using java on eclipse?

here code , using jsoup:

public static void main(string[] args) throws ioexception{      document document = jsoup.connect("https://www.binary.com/trading?l=en").useragent("mozilla").get();     elements elements = document.select("span#spot");     (element element : elements) {       system.out.println(element.text());     }   } 

}

as mentioned earlier, no values on console. if try on other websites, data no issues. there anyway fetch these values?

your problem if span added using javascript, it's not present part of response code gets.

you need ensure code can run js browser obtain result , trigger actions lead obtaining result if any.

i recommend against doing this, , reside obtaining proper api source this.


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -