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

fugotcha

v1.0.0

Published

A web scraper for Dischord's Fugazi Live Series

Downloads

4

Readme

Fugotcha

Fugotcha is a command-line utility for scraping data from the Fugazi Live Series on Dischord.com.

You might be interested in this project if:

  • You're a Fugazi-obsessed friend of mine (I have many of these) working on a data-visualization project for school (with no data), and your first instinct was to collect it manually.
  • You're curious about Puppeteer, Google's Node library for controlling Chrom(e|ium) programmatically, or any of the other technologies used. This project contains relatively simple implementations to get your feet wet.
  • You'd like to teach me something about how to do it better. This was a learning project for me; create an issue if you've got something to share!

Installation

Use the package manager npm to install fugotcha.

npm install --global fugotcha

Requirements

Requires Node v7.6.0 or greater.

Usage

Scrape every (-c 0) release, starting with the first (-p washington-dc-usa-90387), and put the results in /tmp/fugotcha.csv:

fugotcha -p washington-dc-usa-90387 -c 0 -o /tmp/fugotcha.csv

Get help:

fugotcha -h

Notes

Data is dumped into a CSV-ish file specified by the -f option.

CSV-ish? RFC 4180 specifies that each line of a CSV "should contain the same number of fields throughout the file." Because the number of tracks is variable across releases, the rows of the CSV will have different numbers of fields unless I pick an arbitrary number of tracks (x) and supply empty values for releases with fewer than x tracks. Doing so, however, guarantees that Fugazi will get together for another show and play x+1 songs -- and then where would we be?

LibreOffice handles CSV-ish files with unequal numbers of fields without problem. I suspect most spreadsheet applications do.

Technologies

Why Puppeteer?

Dischord's website doesn't appear to do much DOM manipulation via JavaScript. One could argue that launching a web browser capable of interpreting JavaScript, headless though it may be, is overkill when the content could be fetched using wget or similar. That's a totally valid argument.

So, why puppeteer? Eh, I wanted to learn something new.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

AGPL-3.0