Finding Jaunt Element not working?

503 Views Asked by At

I'm trying to get a specific element off YouTube (the title of the video).

HTML: http://pastebin.com/cjr2SgNd

Important HTML part:

<span id="eow-title" class="watch-title " dir="ltr" title="Latest Agar.io PvP - Create Your Own Server!"></span>

I would like to find this: title="Latest Agar.io PvP - Create Your Own Server!"

However, I get this error: http://pastebin.com/G7x9FZaa

I'm using Jaunt to get the title. Code:

UserAgent userAgent = new UserAgent();
//troubleshooting
System.out.println("working");

List<String> vid = userAgent.doc.findAttributeValues("<span title>");
System.out.println(vid);
//troubleshooting
System.out.println("working1");
0

There are 0 best solutions below