Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

tachiniererin/nargh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Your friendly LCSC scraper

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages