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

tumblr-lks-downldr

v1.5.2

Published

Node module for downloading Tumblr liked posts from an specific user.

Downloads

44

Readme

tumblr-lks-downldr

Travis Codecov NPM Downloads Total Commitizen Friendly Semantic Released

Simple node module for downloading your precious Tumblr likes.

A few things for having in mind while using it:

  • This will save just image files and not any other kind of content.
  • Images are saved with the filenames given by Tumblr unless the attribution parameter is set to true (see below).
  • The number of postsToLoad it likely NOT going to be the same as the number of images that you will get. Posts can have more than one image or not having any image AT ALL.
  • The maximum value for postsOffset is 1000 (this is a limitation of the Tumblr API).
  • If the attribution parameter is set to true, images will be renamed in the form "{blogname}_{timestamp}" and a .txt file with the like's textual content will be created using the same name (i.e. 'blogpost_123456_0.jpg' will have its note saved as 'blogpost_123456.txt').

How to use

Install the module as a dependency in your project:

npm i tumblr-lks-downldr --save

Require it into your project:

const tumblrLksDownldr = require('tumblr-lks-downldr');

Then you can interact with it using the setGlobalParams and getLikedPosts methods:

tumblrLksDownldr.setGlobalParams(
  {
    url: 'yourblog.tumblr.com',
    postsToLoad: '10',
    postsOffset: '10',
    attribution: true,
    path: 'some-path-you-want',
    onStart: (info) => {
      console.log('onStart:', info);
    },
    onFetch: (info) => {
      console.log('onFetch:', info);
    },
    onDownloadStart: (info) => {
      console.log('Download start:', info);
    },
    onSuccess: (info) => {
      console.log(`${info.fileName} succeed!`);
    },
    onError: (error, info) => {
      console.log(`${info.fileName} failed!`);
    },
    onComplete: () => {
      console.log('Complete!');
    }
  }
);
tumblrLksDownldr.getLikedPosts();

I want a functionality that is not supported. What can I do?

Well, you can ask for it as an issue and depending on my available time, I can see how feasible it is. At that point the idea can be added as a To-Do itemor just get closed if it is not following our expectations with the module.

Do I really need to create a javascript file to use this?

Yes and no. For this specific module yes but if you want to use it as a CLI tool you can use tumblr-lks-downldr-cli that is basically a wrapper.

Issues

I'm working on this module once on a while but if you find out any issue please report it here.