GithubHelp home page GithubHelp logo

Comments (4)

gildas-lormeau avatar gildas-lormeau commented on May 31, 2024

Did you interrupt the command? URLs are replaced when all the pages have been crawled.

from single-file-cli.

andrewdbate avatar andrewdbate commented on May 31, 2024

No I didn't interrupt the command.

from single-file-cli.

amirrh6 avatar amirrh6 commented on May 31, 2024

Hi @gildas-lormeau!
First, I'd like to appreciate for this amazing extension.

I faced the very same issue @andrewdbate discussed.

I tested https://xmrig.com because of its simple hierarchy.

Following internal links on https://xmrig.com should be considered:

image

  • Some links are duplicated inside the page, so I used --filename-conflict-action=skip flag.

This is the command I ran:

./single-file --output-directory=saved --filename-template="{url-pathname-flat}.html" --crawl-links=true --crawl-replace-urls=true --filename-conflict-action=skip https://xmrig.com

As the result, following files were created inside saved directory (as expected):

  • _.html
  • _benchmark.html
  • _download.html
  • _wizard.html

Everything has been well so far but links inside these files are not changed to relative links on file system.

You may find these files useful:

saved.zip

Thanks

from single-file-cli.

NanoBaker avatar NanoBaker commented on May 31, 2024

I'm having the same issue, each web page is downloaded successfully, but the links between them link back to the original website:
docker run -v $(pwd):/usr/src/app/out singlefile "https://fiction.live/stories/Fiction-live-Software-Update/S46jksooFQWqqMAsY/home" --dump-content=false --crawl-links=true --crawl-inner-links-only=true --crawl-no-parent=true --crawl-max-depth=1 --crawl-replace-urls=true

from single-file-cli.

Related Issues (20)

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.