Search code examples
javascriptnode.jsweb-crawlerzombie.js

Zombie.js - Downloading files support


I'm trying to handle download prompts in Zombie.js, looking through the API I don't see anything indicating how to do so.

Basically what I'm trying to do is navigate through an authentication required website, then click a button on the site (no href) that then automatically engages a download. The downloaded file will then be renamed and sent to a specified folder.

Is there a way to achieve this?


Solution

  • possibly try:

    http://phantomjs.org

    you should be able to manipulate the dom...to download.

    https://github.com/ariya/phantomjs/wiki/Page-Automation

    might have to write a separate script to do the file renaming.