Handling exceptions in external scripts

25 views
Skip to first unread message

Mauro Pompilio

unread,
Mar 18, 2013, 11:20:48 AM3/18/13
to js...@googlegroups.com
Hi!

Has anyone solved this problem already? I'm trying to scrape some JS intensive pages with jsdom but I have to deal with external scripts throwing exceptions and potentially making the scraper crash. Is there a way to ignore those exceptions and continue with the execution? I have a similar scraper built on top of Phantom and it just ignores exceptions (in the page context). Is there a way to achieve something similar with jsdom? Any ideas?

Cheers,
Mauro.
Reply all
Reply to author
Forward
0 new messages