nargh

command module
v0.0.0-...-c17cfc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2021 License: 0BSD Imports: 22 Imported by: 0

README

NARGH, a LCSC scraper

This scrapes LCSC, because i have ADD and can't finish the firmware for my boards.

That's all.

Usage

Please use the pre-processed data. It's being updated semi-regularly and hosted here.

To install it into $GOPATH/bin run:

go get github.com/tachiniererin/nargh
go install github.com/tachiniererin/nargh

Otherwise you can just clone the repo and run it with go run nargh.go.

Downloading and converting datasheets
find . -name "*.pdf" | xargs -I '{}' pdftotext -layout '{}'

Product categories

Look for the string 分类数据 in the page source of https://lcsc.com/products. This contains all the categories as a list. The file categories.json contains this data, just formatted nicely.

Why is it called Nargh?

Because that was the sound I made when I realised what I did.

TODO

  • Product Pictures
  • Scrape JLCSMT part library (which was the initial goal)
  • Make the terminal output a bit prettier.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL