Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Getting info from a seach result?

Hi! I am in a website and I want to get some info. So I search for something and it show 908 results. I want to get the info for all results, meaning when I click in 1 of the results it opens and show something I want to get that result. Is there a wat to do it with javascript? Here is the link: http://www.odcec.mi.it/Ricerca_Iscritto.aspx?t=i&c&n&ct&pr&ca=20121&dn&di&tl=Albo&sz=A

2 Answers

So you are trying to build a bot that will submit a search form and read the results?

Yes

Well to answer your question, its possible with javascript. If they have a captcha you will have a hard time. I would look at CasperJs / PhantomJs.