netcoupe

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package netcoupe provides crawler and optimizer implementations for netcoupe.

https://www.netcoupe.net

Index

Constants

View Source
const DailyUrlPattern = "https://%v.netcoupe.net/Results/DailyResults.aspx"

DailyUrlPattern is the main page to list netcoupe flights.

View Source
const FlightBaseUrlPattern = "https://%v.netcoupe.net/Results/FlightDetail.aspx?FlightID="

FlightBaseUrl is the base path to fetch flight details from a flight ID.

View Source
const TrackBaseUrlPattern = "https://%v.netcoupe.net/Download/DownloadIGC.aspx?FileID="

TrackBaseUrlPattern is the base path to download the flight track from a track ID.

Variables

This section is empty.

Functions

This section is empty.

Types

type Netcoupe

type Netcoupe struct {
	// contains filtered or unexported fields
}

Netcoupe implements a crawler for http://netcoupe.net.

func NewNetcoupe

func NewNetcoupe() Netcoupe

func NewNetcoupeYear

func NewNetcoupeYear(year int) Netcoupe

func (Netcoupe) Crawl

func (n Netcoupe) Crawl(start time.Time, end time.Time) ([]igc.Flight, error)

Crawl checks for flights on netcoupe.net.

It works by querying flights for specific days, making it easier to iterate through past data. The rules for flight submission are defined here: http://www.planeur.net/_download/netcoupe/2018_np4.2.pdf """ Chaque performance doit être enregistrée dans un délai de 15 jours sur le site de la NetCoupe (www.netcoupe.net) par le commandant de bord ou par le Responsable de la NetCoupe de l’association avec l'accord du pilote. """ Which means that it's only worth to crawl for new flights back to 2 weeks max.

func (Netcoupe) Get

func (n Netcoupe) Get(url string) ([]byte, error)

func (Netcoupe) TrackBaseUrl

func (n Netcoupe) TrackBaseUrl() string

Jump to

Keyboard shortcuts

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