GithubHelp home page GithubHelp logo

Comments (4)

s0ph1e avatar s0ph1e commented on June 1, 2024

Hi @Royalgamer06
Looks like you are trying to save to directory which already exists. It is not possible by default. You should use not existing directory or create custom resourceSaver as described in docs

from node-website-scraper-phantom.

Revadike avatar Revadike commented on June 1, 2024

Yes, I don't have an existing folder. It works for the first file it scrapes, but after the first file has been saved (and thus the directory created) it starts logging errors.

from node-website-scraper-phantom.

s0ph1e avatar s0ph1e commented on June 1, 2024

@Royalgamer06 it is expected behavior, not existing directory is required for each scrape

It is done in this way to not allow scraper to modify existing files
That's why for first scrape it is ok but for second it returns error

But if you are confident in your code - you can use resourceSaver option to modify this behavior

from node-website-scraper-phantom.

no-response avatar no-response commented on June 1, 2024

This issue has been automatically closed because there has been no response from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

from node-website-scraper-phantom.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.