go-license-scraper collects go module license by scraping http://pkg.go.dev (or http://github.com if its path includes github.com) with Playwright.
- Node.js
- Google Chrome
- Your Golang project
$ npm install --location=global go-license-scraper
$ cd path/to/your/directory/of/go.mod
$ go-license-scraper PATH/TO/LICENSES.csv
Set browser channel to environment variable BROWSER_CHANNEL
.
If you want to use Microsoft Edge instead of Chrome, set msedge
.
See https://playwright.dev/docs/api/class-testoptions#test-options-channel for more details.