19

I would like to crawl a website, the problem is, that its full of JavaScript things, such as buttons and such that when they are pressed, they do not change the URL, but the data on the page is changed.

Usually I use LWP / Mechanize etc to crawl sites, but neither support JavaScript. any idea?

0

4 Answers 4

8

Another option might be Selenium with WWW::Selenium module

Sign up to request clarification or add additional context in comments.

Comments

7

The WWW::Scripter module has a JavaScript plugin that may be useful. Can't say I've used it myself, however.

Comments

5

WWW::Mechanize::Firefox might be of use. that way you can have Firefox handle the complex JavaScript issues and then extract the resultant html.

Comments

1

I would suggest HtmlUnit and Perl wrapper: WWW::HtmlUnit.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.