Skip to content

crawl albums/videos from Vimeo API... for learning Golang!

License

Notifications You must be signed in to change notification settings

CapgeminiNorway/crawlerbaba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crawler-baba

crawl videos from Vimeo API... learning-by-doing Golang!

LEARN - MAKE - SHOW - SHARE

Prerequisites

In order to build and run this app you need to have a couple of things installed:

  • The Go SDK
  • An IDE for the development, like Atom or IntelliJ/Goland

Running the App

check Releases to download the binary suitable for your platform, then you can run it as executable prog.

Building the App

Clone this repo

  # clone this repo  
$ git clone https://github.com/capgemininorway/crawlerbaba  
$ cd crawlerbaba  

Prepare env-vars

WARNING This APP requires a valid token for connecting to Vimeo API!!!
You can get it from Vimeo Developer portal

By default, app checks for env-var to find vimeoToken, if not found then it asks user for input.

# set vimeoToken as env-variable    
$ export VIMEO_TOKEN=<your-vimeo-token>     

# OR just enter it when app asks you for it     

Build & Run the App

  # run the App from the code    
$ go run crawler.go

# build & run it as executable 
$ go build crawler.go
$ ./crawler  

# by default, 'go build' generates executable per env it runs.  
# see https://golang.org/pkg/go/build/    

# if you want to specify per OS compatibility, see each below      
## - linux   
$ GOOS=linux GOARCH=amd64 go build crawler.go     

## - mac   
$ GOOS=darwin GOARCH=amd64 go build crawler.go  

## - windows   
$ GOOS=windows GOARCH=amd64 go build crawler.go    

see make-build.sh that builds for all common platforms