crawler

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2020 License: MIT Imports: 9 Imported by: 0

README

Go Build Gosec Go Test

Crawler COVID-19 State Rio Grande do Sul at Brazil

This system gets data official website of government to extract data and generate a CSV.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	URL      = "http://ti.saude.rs.gov.br/covid19/"
	FileName = "data.csv" // we can set path e.g /var/crawser/br/rs/Data.csv

)

Exported ...

Functions

func GetCityValue

func GetCityValue(body string) ([]string, []string)

GetCityValue ...

func GetData

func GetData() string

GetData ...

func ReplaceValue

func ReplaceValue(splitCity, splitVals []string) ([]string, []string)

ReplaceValue ...

func Run

func Run()

Run ...

Types

type CityValue

type CityValue struct {
	City  string `csv:"city"`
	Value uint64 `csv:"value"`
}

CityValue ...

type ListCityValue

type ListCityValue struct {
	Data  []CityValue
	Total uint64
}

ListCityValue ...

func SetCitiesValues

func SetCitiesValues(splitCity, splitVals []string) ListCityValue

SetCitiesValues ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL