scrapbook/event

Types

pub opaque type EventBasicData
pub opaque type EventData
pub opaque type EventHost
pub opaque type EventParent
pub opaque type EventPhoto
pub opaque type EventPlace
pub opaque type EventSibling
pub opaque type EventTimeDetails
pub opaque type EventVideo
pub type HostType {
  User
  Page
}

Constructors

  • User
  • Page
pub opaque type OfflineCity
pub opaque type OfflineLocation
pub type OfflineType {
  Text
  Place
  City
}

Constructors

  • Text
  • Place
  • City
pub type OnlineType {
  MessengerRoom
  ThirdParty
  FacebookLive
  Other
}

Constructors

  • MessengerRoom
  • ThirdParty
  • FacebookLive
  • Other

Functions

pub fn get_event(
  html: String,
) -> Result(EventData, List(PropertyError))

Get all possible event data from the given HTML string.

pub fn scrape_from_id(
  id: String,
) -> Result(EventData, ScrapeError)

Scrape an event from the specified event id.

pub fn scrape_from_url(
  url: String,
) -> Result(EventData, ScrapeError)

Scrape an event from the specified event URL.

Search Document