GithubHelp home page GithubHelp logo

ishaniray / fanfic-dl Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 28 KB

An open-source command-line utility to download stories from fanfiction.net under Cloudflare restrictions using Puppeteer and epub-gen.

License: MIT License

JavaScript 100.00%
fanfictiondotnet fanfiction downloader ebook epub calibre

fanfic-dl's Introduction

fanfic-dl

An open-source command-line utility to download stories from fanfiction.net under Cloudflare restrictions using Puppeteer and epub-gen.

Background

Currently (as on 2021-01-17), most FFnet downloaders are broken due to FFN adding Cloudflare protection to their site. The one I've been using all these years - ficsave.xyz (https://github.com/waylaidwanderer/FicSave) - might take a bit of time to figure out how to bypass these restrictions (https://twitter.com/FicSave/status/1340421325366546432). Until then, I want to have a way to download multi-chapter stories without needing to manually copy-paste text or generate PDFs chapter-by-chapter. I'm still learning JavaScript / Node and this tool is the result of only half a day's work, so this is in no way as robust or elegant as the other solutions out there (the process is actually quite slow and brute-force-y.). However, I believe this Puppetter-based option is worth having until we find a truly programmatic workaround.

Usage

After cloning the repo and installing the package.json dependencies, from a terminal window, run:

node main.js <-story-id-> <-download-location->

Example (on a Windows computer):

node main.js 13768498 C:\Users\ishaniray\Desktop

[Note: <-download-location-> is an optional argument. If not provided, the story will be downloaded to the project's root folder.]

Comments / suggestions are welcome!

fanfic-dl's People

Contributors

ishaniray avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

gitit1

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.