woob.capabilities.calendar
¶
- class BaseCalendarEvent(id='', url=NotLoaded, backend=None)[source]¶
Bases:
BaseObject
Represents a calendar event
- Variables:
url – (
str
) urlstart_date – (
date
,datetime
) Start date of the eventend_date – (
date
,datetime
) End date of the eventtimezone – (
str
) Timezone of the event in order to convert to utc time (default: Etc/UCT)summary – (
str
) Title of the eventaddress – (
PostalAddress
) Address where event will take placecategory – (
str
) Category of the eventdescription – (
str
) Description of the eventprice – (
float
) Price of the eventbooked_entries – (
int
) Entry numbermax_entries – (
int
) Max entry numberevent_planner – (
str
) Name of the event plannersequence – (
int
) Number of updates, the first is number 1status – (
str
) Status of the eventtransp – (
str
) Describes if event is availableticket – (
str
) Describes if tickets are available
- property city¶
- property location¶
- property page_url¶
Get page URL of the announce.
- class CapCalendarEvent[source]¶
Bases:
CapCollection
Capability of calendar event type sites
- ASSOCIATED_CATEGORIES = 'ALL'¶
- search_events(query)[source]¶
Search event
- Parameters:
query (
Query
) – search query- Return type:
iter[
BaseCalendarEvent
]
- list_events(date_from, date_to=None)[source]¶
list coming event.
- Parameters:
- Return type:
iter[
BaseCalendarEvent
]
- get_event(_id)[source]¶
Get an event from an ID.
- Parameters:
_id (str) – id of the event
- Return type:
BaseCalendarEvent
or None is fot found.