Giter Site home page Giter Site logo

issue9 / cnregion Goto Github PK

View Code? Open in Web Editor NEW
182.0 7.0 24.0 34.67 MB

2009-2023 年**全国(省、市、县、乡/镇、村/街道)五级行政区域划分数据

Home Page: https://pkg.go.dev/github.com/issue9/cnregion/v2

License: MIT License

Go 99.76% Shell 0.24%
go golang cn-region region cn-location

cnregion's Issues

Search 函数缺少单测

cn, err := data.Embed("|", 2021)
assert.Nil(err)

got := cn.Search(&cnregion.SearchOptions{Text: "温州"})

got 是空的.

PS: 加入了Embed 可以再发布一个版本出来, go get github.com/issue9/cnregion 得到的版本是不带有Embed 函数的版本

是不是tjj服务端有流量检测了?等一会就context deadline exceeded

抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/42/01/03/420103010.html
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/42/01/03/420103013.html
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/42/01/03/420103006.html
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/42/01/03/420103400.html
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/42/01/03/420103012.html
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/42/01/03/420103401.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/42/10/88/421088103.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/42/10/88/421088103.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/36/07/31/360731205.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/36/07/31/360731205.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/13/11/27/131127105.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/13/11/27/131127105.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/13/11/25/131125401.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/13/11/25/131125401.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/32/05/07/320507006.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/32/05/07/320507006.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/32/05/05/320505408.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/32/05/05/320505408.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/32/04/02/320402003.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/32/04/02/320402003.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/41/15/28/411528205.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/41/15/28/411528205.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/41/14/02/411402007.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/41/14/02/411402007.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/51/33/26/513326214.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/51/33/26/513326214.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/51/17/25/511725121.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0
抓取 http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/51/17/25/511725121.html
ERROR: Get "http://www.stats.gov.cn/tjsj/tjbz/tjyqhdmhcxhfdm/2022/21/01/15/210115111.html": context deadline exceeded (Client.Timeout exceeded while awaiting headers) 并返回状态码 0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.