html - extracting "author" from a book in amazon with Jsoup -


i trying days , won't wort. want name of author of book "http://www.amazon.de/weit-weg-ganz-jojo-moyes-ebook/dp/b00h07cb9o/ref=sr_1_1?s=books&ie=utf8&qid=undefined&sr=1-1".

as firebug shows located in following code.

<html> ... <div class="buying">     <h1 class="parseasintitle">     <span>        <span class="contributornametrigger" asin="b001hmnfpmb00h07cb9o">        <a id="contributornametriggerb001hmnfpmb00h07cb9o" href="http://www.amazon.de/jojo-moyes/e   /b001hmnfpm/ref=ntt_athr_dp_pel_1" asin="b001hmnfpmb00h07cb9o">jojo moyes</a>     <a href="#" asin="b001hmnfpmb00h07cb9o">     </span> ... </html> 

i tryed select name

doc.getelementsbyclass("contributornametrigger") 

but doesn't work.then used class "buying" , tried select span , span class doesn't work neither

doc.getelementsbyclass("buying").select("span").select("span[class=contributornametrigger"); 

any appreciated!

it works following code:

element author = doc.getelementsbyclass("buying").select("span").select("a").first(); 

thanx answers!


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -