crawlora-airbnb 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/README.md +16 -2
- data/lib/crawlora/airbnb/client.rb +1 -1
- data/lib/crawlora/airbnb/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7eb6e0ace6baba1579acfcf9c5ff30ad696ab7776f78800162934e0b3d6fb511
|
|
4
|
+
data.tar.gz: 13a30e6527b1f0a2397f4d0d780c2eac088f495db84e7d912dc569d5083094d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 78c65d3d1e648ba0abb93416501d665b3be300a39fc26d68d01dc2db7aaff3d1b60eec9fc270769631f91d9604ef9156280e4456663f1133129e4b0b1283879c
|
|
7
|
+
data.tar.gz: 1c56937d2380ce9f8e64d246118bc06b39a1b2b36d06d275f1322ab7bbd5a7215e804125e7ec2c5d4b3c2c70720568e8b3ec885e403fb77372fcff218c2bbc52
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Crawlora Airbnb Ruby
|
|
1
|
+
# Crawlora Airbnb API client for Ruby (`crawlora-airbnb`)
|
|
2
2
|
|
|
3
|
-
This gem calls
|
|
3
|
+
This Ruby gem calls Crawlora's hosted Airbnb API at `https://api.crawlora.net/api/v1`. It exposes 7 endpoints covering listing search, room details, calendars and reviews, and host profiles, listings and reviews; it does not call or scrape Airbnb directly. Requests require your Crawlora API key and use your account's service plan.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -30,4 +30,18 @@ client.close
|
|
|
30
30
|
|
|
31
31
|
Client options include `api_key`, `base_url`, and `timeout`. Ruby stdlib provides the HTTP and JSON support.
|
|
32
32
|
|
|
33
|
+
## Supported Airbnb API endpoints
|
|
34
|
+
|
|
35
|
+
Browse every route included in this gem. The [endpoint reference](https://github.com/Crawlora-org/crawlora-airbnb/blob/main/docs/usage.md) includes parameter and response details.
|
|
36
|
+
|
|
37
|
+
| Method | Endpoint | API operation | Description |
|
|
38
|
+
| --- | --- | --- | --- |
|
|
39
|
+
| `GET` | `/airbnb/host/{id}` | `airbnb-host` | Get Airbnb host profile |
|
|
40
|
+
| `GET` | `/airbnb/host/{id}/listings` | `airbnb-host-listings` | Get Airbnb host listings |
|
|
41
|
+
| `GET` | `/airbnb/host/{id}/reviews` | `airbnb-host-reviews` | Get Airbnb host reviews |
|
|
42
|
+
| `GET` | `/airbnb/room/{id}` | `airbnb-room` | Get Airbnb room |
|
|
43
|
+
| `GET` | `/airbnb/room/{id}/calendar` | `airbnb-room-calendar` | Get Airbnb room calendar |
|
|
44
|
+
| `GET` | `/airbnb/room/{id}/reviews` | `airbnb-room-reviews` | Get Airbnb room reviews |
|
|
45
|
+
| `GET` | `/airbnb/search` | `airbnb-search` | Search Airbnb stays |
|
|
46
|
+
|
|
33
47
|
See [Crawlora](https://crawlora.net/?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=airbnb-ruby-homepage), the [API documentation](https://crawlora.net/docs?utm_source=rubygems&utm_medium=referral&utm_campaign=platform-clients&utm_content=airbnb-ruby-api-docs), and [the package repository](https://github.com/Crawlora-org/crawlora-airbnb) for account setup, the API operation reference, and release history.
|
|
@@ -29,7 +29,7 @@ module Crawlora
|
|
|
29
29
|
class Client
|
|
30
30
|
attr_reader :base_url
|
|
31
31
|
|
|
32
|
-
def initialize(api_key: ENV["CRAWLORA_API_KEY"], base_url: "https://api.crawlora.net/api/v1", timeout: 30, user_agent: "crawlora-airbnb-ruby/0.1.
|
|
32
|
+
def initialize(api_key: ENV["CRAWLORA_API_KEY"], base_url: "https://api.crawlora.net/api/v1", timeout: 30, user_agent: "crawlora-airbnb-ruby/0.1.1", transport: nil)
|
|
33
33
|
@api_key = api_key
|
|
34
34
|
@base_url = base_url.to_s.sub(%r{/+$}, "")
|
|
35
35
|
@timeout = Float(timeout)
|
metadata
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: crawlora-airbnb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Crawlora
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
|
-
description:
|
|
13
|
+
description: Ruby client for Crawlora's hosted Airbnb API. Covers listing search,
|
|
14
|
+
room details, calendars and reviews, and host profiles, listings and reviews across
|
|
15
|
+
7 endpoints.
|
|
14
16
|
email:
|
|
15
17
|
executables: []
|
|
16
18
|
extensions: []
|
|
@@ -47,5 +49,5 @@ requirements: []
|
|
|
47
49
|
rubygems_version: 3.4.19
|
|
48
50
|
signing_key:
|
|
49
51
|
specification_version: 4
|
|
50
|
-
summary: Airbnb client for
|
|
52
|
+
summary: Airbnb API client for Crawlora (7 endpoints)
|
|
51
53
|
test_files: []
|