spiders

package
v0.0.0-...-1ded935 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCityName

func GetCityName(doc *goquery.Document) string

func GetCurrentPage

func GetCurrentPage(doc *goquery.Document) (page int)

func GetNextPageUrl

func GetNextPageUrl(doc *goquery.Document) (val string, exists bool)

Types

type QcArea

type QcArea struct {
	Name string `json:"name"`
	City []QcCity
}

type QcCar

type QcCar struct {
	CityName  string
	Title     string
	Price     float64
	Kilometer float64
	Year      int
}

func GetCars

func GetCars(doc *goquery.Document) (cars []QcCar)

type QcCity

type QcCity struct {
	Name   string `json:"name"`
	Pinyin string `json:"pinyin"`
}

func GetCitys

func GetCitys() []QcCity

Jump to

Keyboard shortcuts

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