Colly: Why couldn't I download colly in China?

Created on 18 Apr 2019  路  3Comments  路  Source: gocolly/colly

I executed 'go get -u github.com/gocolly/colly/...', but it always notice that:

https fetch: Get https://google.golang.org/appengine/urlfetch?go-get=1: dial tcp 216.239.37.1:443: i/o timeout

Most helpful comment

or if you are using Shadowsocks

export http_proxy=http://0.0.0.0:1087;export https_proxy=http://0.0.0.0:1087;
go get github.com/gocolly/colly

All 3 comments

There's two methods to resolve the problem:

  1. Use a proxy or VPN
  2. If you use go1.11 and above, you can set the env var as below:
export GO111MODULE=on
export GOPROXY=https://goproxy.io
go get github.com/gocolly/colly

or if you are using Shadowsocks

export http_proxy=http://0.0.0.0:1087;export https_proxy=http://0.0.0.0:1087;
go get github.com/gocolly/colly

Thank you all above!馃憣 I've get the package with your method.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dzakaammar picture dzakaammar  路  3Comments

andystroz picture andystroz  路  3Comments

expatmt picture expatmt  路  4Comments

yanshiyason picture yanshiyason  路  7Comments

mishop picture mishop  路  3Comments