npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

litero

v0.1.0

Published

Download stories from Literotica and save them locally as beautifully formatted Text or HTML web pages for later reading.

Downloads

15

Readme

Litero

Download stories from Literotica (Literotica.com) and save them locally as readable HTML web pages or beautifully formatted Text files, for later reading.

Getting Started

Make sure you have nodejs installed. Given that, issuing

npm install -g litero

should do the trick.

Features

  • Download any literotica story URL.
  • Get all the pages (depagerize) into a single file.
  • Plain and simple text files.
  • Readable HTML page
    • With Color scheme switcher - Light,Dark and Sepia
    • Single page HTML pages, no extra files/ Folder.
    • With link to the original story
    • Link to the Authors submissions.

Usage

  1. From the terminal (command line), issue

    litero_getstory -u 'https://www.literotica.com/s/how-to-write-for-literotica'
    

    This will download the story and save it to the file how-to-write-for-literotica.txt in the current folder.

  2. Save the story as a web page (HTML) locally.

    litero_getstory -u 'https://www.literotica.com/s/how-to-write-for-literotica' -e html

    This will download the story and save it to the file how-to-write-for-literotica.html in the current folder.

  3. Save the story with custom name and format

    litero_getstory -u 'https://www.literotica.com/s/how-to-write-for-literotica' -f 'favorite_story' -e html

    This will save the story to a HTML file favorite_story.html to the current folder.

  4. Just want a text file with custom name? Simply issue,

    litero_getstory -u 'https://www.literotica.com/s/how-to-write-for-literotica' -f 'favorite_story' -e txt

Examples

Litero comes with much more option flags, that you can pass along the command line.

Required

* `-u` or `--url`  Pass the URL(link) to the story.
  ```sh
  litero_getstory --url 'https://www.literotica.com/s/how-to-write-for-literotica'
  ```

Optional

* `-h` or `--help` Display Help and usage.
  ```sh
  litero_getstory --help
  ```
* `-f` or `--filename` Custom filename for the story to be saved.
  ```sh
  litero_getstory -u 'https://www.literotica.com/s/how-to-write-for-literotica' -f 'favorite_story'
  ```
* `-e` or `--format` Format of the saved file - Can be `html` or `txt` (default).
  ```sh
  litero_getstory -u 'https://www.literotica.com/s/how-to-write-for-literotica' -e html
  ```
* `--verbose` - Output all information going on behind the screens. Useful when something's not working right

Demo

Demonstration on usage and features. Also featured is the ability to switch reading color schemes ( Light, Dark and Sepia) on saved HTML pages.

Demo

P.S. Sorry about the colors though. Here is a video version if you're interested.

FAQ

  1. Can this be used to download individual stories to my computer?

    • Yes.
  2. Is this code anyway affiliated to literotica or literotica community?

    • No. This software/code is no way affiliated to literotica, any of the authors, or the community. This is merely a work of a fan.
  3. Can this be used to rip all the stories in literotica/literotica category?

    • No. Kindly be respectful to the efforts of the authors and literotica.
  4. Can you modify this to do insert some new feature here that i want?

    • That depends. Drop me a mail, lets figure it out.

But why?

But Why?

  • Coding Fun, Nothing else.
  • Ah. Waitt aaaa minute.. What are you doing here BTW?
  • Actually - It is one of my favorite sites.Being frustated with the site's poorly readable color scheme, I decided to make it pleasant for reading with JS(using greasemonkey) and CSS. When some of my favorite authors took their stories down without warning, This project was born.

Acknowledgments

  • NodeJS and all modules used.
  • Literotica.
  • Individual Authors on literotica.

License

See LICENSE