コミット
96377a58b4
|
@ -83,18 +83,16 @@ func getRouteDetail(e *colly.HTMLElement) Route {
|
||||||
onDivs = "div.routeDetail div.fareSection div.access"
|
onDivs = "div.routeDetail div.fareSection div.access"
|
||||||
e.ForEach(onDivs, func (jf int, elf *colly.HTMLElement) {
|
e.ForEach(onDivs, func (jf int, elf *colly.HTMLElement) {
|
||||||
Fares.Stops = nil
|
Fares.Stops = nil
|
||||||
if jf == j {
|
if jf != j { return }
|
||||||
f := handleFare(elf, Fares, Stops)
|
f := handleFare(elf, Fares, Stops)
|
||||||
Stations.Fares = append(Stations.Fares, f)
|
Stations.Fares = append(Stations.Fares, f)
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
onDivs = "div.routeDetail div.walk ul.info"
|
onDivs = "div.routeDetail div.walk ul.info"
|
||||||
e.ForEach(onDivs, func (jw int, elw *colly.HTMLElement) {
|
e.ForEach(onDivs, func (jw int, elw *colly.HTMLElement) {
|
||||||
if jw == j {
|
if jw != j { return }
|
||||||
f := handleWalk(elw, Fares)
|
f := handleWalk(elw, Fares)
|
||||||
Stations.Fares = append(Stations.Fares, f)
|
Stations.Fares = append(Stations.Fares, f)
|
||||||
}
|
|
||||||
})
|
})
|
||||||
r.Stations = append(r.Stations, Stations)
|
r.Stations = append(r.Stations, Stations)
|
||||||
})
|
})
|
||||||
|
|
読み込み中…
新しいイシューから参照