GithubHelp home page GithubHelp logo

python-ffdl's Introduction

python-ffdl

Fanfiction downloader

Build Status

Installation

$ pip install git+ssh://[email protected]/Birion/python-ffdl.git@master

Usage

Download a new story

pyffdl download [--from <URL FILE>] [<URL>[ <URL>[...]]]

The html command downloads a raw list of HTML files and collates them in an ebook.

pyffdl html --author <NAME> --title <TITLE> [--from <URL FILE>] [<CHAPTER URL>[ <CHAPTER URL>[...]]]

In URL_FILE, you can provide a list of URLs to download, one URL per line. Any lines starting with # will be ignored.

Update an existing story file

pyffdl.py update [--force] [--backup] <EPUB FILE>

--force option completely redownloads the story, overwriting any changes you may have done to the epub file in the meantime.

--backup option saves a copy of the current epub file before downloading any updates into a new file.

Supported sites

TODO

  • better covers
    • by genres?
  • actually useful tests
  • figure out why the cover page is non-linear in .epub

python-ffdl's People

Contributors

birion avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

python-ffdl's Issues

Accepting Pull Requests?

Hello @Birion,

I was thinking about something similar to this project recently, and found yours! Is this still something you're interested in developing, and if so are you looking for potential collaboration?

Best,
@batflyer

Crashed when trying to download from cartoon.adult-fanfiction.org

Here's the error message:

steven@steven-H31 ~/Temp % pyffdl download  https://cartoon.adult-fanfiction.org/story.php\?no\=600094777
Downloading https://cartoon.adult-fanfiction.org/story.php?no=600094777
/home/steven/.local/lib/python3.10/site-packages/ebooklib/epub.py:1395: UserWarning: In the future version we will turn default option ignore_ncx to True.
  warnings.warn('In the future version we will turn default option ignore_ncx to True.')
Traceback (most recent call last):
  File "/usr/local/bin/pyffdl", line 8, in <module>
    sys.exit(cli())
  File "/home/steven/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/home/steven/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/home/steven/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/steven/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/steven/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/home/steven/.local/lib/python3.10/site-packages/pyffdl/core/app.py", line 86, in cli_download
    download(urls, verbose)
  File "/home/steven/.local/lib/python3.10/site-packages/pyffdl/core/app.py", line 50, in download
    story.run()
  File "/home/steven/.local/lib/python3.10/site-packages/pyffdl/sites/story.py", line 272, in run
    self.make_title_page()
  File "/home/steven/.local/lib/python3.10/site-packages/pyffdl/sites/aff.py", line 72, in make_title_page
    _header = self.page("table")[2].table("td")
IndexError: list index out of range

Is there a way to solve this problem?

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.