Documentation
¶
Index ¶
- func GetImg(imgURL string, proxyURL *url.URL) (string, []byte, error)
- func GetMainRoomIds(mainURL string, proxyURL *url.URL) ([]int64, error)
- func ParseBodyDetails(body []byte) (Data, PriceDependencyInput, error)
- type Amenity
- type AmenityGroup
- type Cohost
- type Coordinates
- type Data
- type DescriptionItems
- type HTML
- type Highlight
- type Host
- type HouseRule
- type HouseRuleValue
- type HouseRules
- type Img
- type Item
- type LocationDetail
- type PdpSectionsRequest
- type Price
- type PriceDependencyInput
- type Rating
- type SbuiData
- type SeeAllAmenitiesGroup
- type SubDescription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseBodyDetails ¶
func ParseBodyDetails(body []byte) (Data, PriceDependencyInput, error)
Types ¶
type AmenityGroup ¶
type Coordinates ¶
type Data ¶
type Data struct { Title string URL string RoomType string Language string HomeTier int PersonCapacity int IsSuperHost bool Price Price Rating Rating Coordinates Coordinates Host Host CoHosts []Cohost SubDescription SubDescription Description string Highlights []Highlight Amenities []AmenityGroup HouseRules HouseRules LocationDescriptions []LocationDetail Images []Img }
func GetFromRoomID ¶
func GetFromRoomIDAndDomain ¶
func GetFromRoomURL ¶
optimized to work on this format: "https://www.airbnb.com/rooms/[roomID]"
type DescriptionItems ¶
type HouseRule ¶
type HouseRule struct { Title string Values []HouseRuleValue }
type HouseRuleValue ¶
type HouseRules ¶
type Img ¶
type LocationDetail ¶
type PdpSectionsRequest ¶
type PdpSectionsRequest struct { Adults string `json:"adults"` BypassTargetings bool `json:"bypassTargetings"` CategoryTag *string `json:"categoryTag"` CauseId *string `json:"causeId"` Children *string `json:"children"` DisasterId *string `json:"disasterId"` DiscountedGuestFeeVersion *string `json:"discountedGuestFeeVersion"` DisplayExtensions *string `json:"displayExtensions"` FederatedSearchId *string `json:"federatedSearchId"` ForceBoostPriorityMessageType *string `json:"forceBoostPriorityMessageType"` Infants *string `json:"infants"` InteractionType *string `json:"interactionType"` Layouts []string `json:"layouts"` Pets int `json:"pets"` PdpTypeOverride *string `json:"pdpTypeOverride"` PhotoId *string `json:"photoId"` Preview bool `json:"preview"` PreviousStateCheckIn *string `json:"previousStateCheckIn"` PreviousStateCheckOut *string `json:"previousStateCheckOut"` PriceDropSource *string `json:"priceDropSource"` PrivateBooking bool `json:"privateBooking"` PromotionUuid *string `json:"promotionUuid"` RelaxedAmenityIds *string `json:"relaxedAmenityIds"` SearchId *string `json:"searchId"` SelectedCancellationPolicyId *string `json:"selectedCancellationPolicyId"` SelectedRatePlanId *string `json:"selectedRatePlanId"` SplitStays *string `json:"splitStays"` StaysBookingMigrationEnabled bool `json:"staysBookingMigrationEnabled"` TranslateUgc *string `json:"translateUgc"` UseNewSectionWrapperApi bool `json:"useNewSectionWrapperApi"` SectionIds []string `json:"sectionIds"` CheckIn *string `json:"checkIn"` CheckOut *string `json:"checkOut"` P3ImpressionId string `json:"p3ImpressionId"` }
type PriceDependencyInput ¶
type SbuiData ¶
type SbuiData struct { Typename string `json:"__typename"` SectionConfiguration sectionConfiguration `json:"sectionConfiguration"` }
type SeeAllAmenitiesGroup ¶
type SubDescription ¶
Click to show internal directories.
Click to hide internal directories.