IPFS Web Scraper written in go with REST api to handle requests, saving data to AWS DynamoDB.
main.go
AWS_PROFILE //default: "personal"
AWS_REGION //default: "us-east-1"
HTTP_PORT //default: ":8000"
IPFS_GATEWAY_URL //default: "https://blockpartyplatform.mypinata.cloud/ipfs"
# first you'll need to setup a AWS DynamoDB table to save scraped data
go mod tidy
go run main.go
r.HandleFunc("/tokens", srv.GetContentsHandler)
r.HandleFunc("/tokens/{cid}", srv.GetContentByIdHandler)
r.HandleFunc("/scrape", srv.CreateContentHandler).Methods("POST")
r.HandleFunc("/bulk-scrape", srv.BulkCreateContentHandler).Methods("POST")