Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPFS Web Scraper

IPFS Web Scraper written in go with REST api to handle requests, saving data to AWS DynamoDB.

Entry point

main.go

Env vars

AWS_PROFILE //default: "personal"
AWS_REGION //default: "us-east-1"
HTTP_PORT //default: ":8000"
IPFS_GATEWAY_URL //default: "https://blockpartyplatform.mypinata.cloud/ipfs"

How to run

# first you'll need to setup a AWS DynamoDB table to save scraped data
go mod tidy
go run main.go

then hit some of this endpoints

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")

About

IPFS Web Scraper written in go with REST api to handle requests, saving data to AWS DynamoDB

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages