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 🙏

© 2026 – Pkg Stats / Ryan Hefner

lihkg-crawler

v1.0.2

Published

Lihkg Web Crawler

Downloads

10

Readme

lihkg-crawler

The goal of lihkg-crawler is to provide a simplier and easier crawling tool to scrape data from Lihkg, a popluar forum in Hong Kong.

Installation

Installing by sudo npm link lihkg-crawler.

After installation, you will be able to access application with lihkg-crawler command. You can find more information by lihkg-crawler --help or lihkg-crawler -h.

Please make suer your have node installed ahead

Example of Use(s)

Application only support crawling by thread currently.

Crawl by thread: lihkg-crawler thread <thread>

{
    "thread_id": "2010222",
    "title": "學生記者被警方質疑「童工」",
    "no_of_reply": "164",
    "no_of_uni_user_reply": "53",
    "like_count": 84,
    "dislike_count": 11,
    "reply_like_count": "116",
    "reply_dislike_count": "25",
    "max_reply_like_count": "54",
    "max_reply_dislike_count": "3",
    "create_time": 1589103050,
    "last_reply_time": 1589111037,
    "max_reply": "5001",
    "total_page": 7,
    "category": "時事台",
    "sub_category": "突發",
    "author": {
        "user_id": "0",
        "nickname": "user",
        "level": "10",
        "gender": "F",
        "status": "1",
        "create_time": 1565372670,
        "level_name": "普通會員"
    },
    "posts": {
        "1": [
            {
                "post_id": "32a7bb05ecf24af7e6e420218411f851634c3284",
                "thread_id": "2010222",
                "user_nickname": "user",
                "user_gender": "F",
                "like_count": "0",
                "dislike_count": "0",
                "vote_score": "0",
                "no_of_quote": "0",
                "remark": [],
                "reply_time": 1589103050,
                "msg": "...",
                "user": {
                    "user_id": "0",
                    "nickname": "user",
                    "level": "10",
                    "gender": "F",
                    "status": "1",
                    "create_time": 1565372670,
                    "level_name": "普通會員"
                }
            }
        ]
    }
}

More feature(s) will be coming, hopefully :)