facebook

package
v0.0.0-...-2795187 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeEventID

func NormalizeEventID(input string) string

Types

type JsonLdScraper

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

func NewJsonLdScraper

func NewJsonLdScraper() *JsonLdScraper

NewJsonLdScraper creates a new scraper that extracts event data via ld+json script tags from a facebook event page. NOTE that this is only included on the mobile pages for *upcoming* events. This special casing suggests that this is phased out and won't work long term.

func (JsonLdScraper) ScrapeEvent

func (s JsonLdScraper) ScrapeEvent(id string) (*mobilizon.Event, error)

func (JsonLdScraper) ScrapeFeed

func (s JsonLdScraper) ScrapeFeed(id string) ([]*mobilizon.Event, error)

Jump to

Keyboard shortcuts

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