x-twitter-scraper 0.10.4 → 0.10.5
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 +11 -0
- data/README.md +22 -14
- data/lib/x_twitter_scraper/resources/monitors/keywords.rb +1 -1
- data/lib/x_twitter_scraper/resources/monitors.rb +1 -1
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/rbi/x_twitter_scraper/resources/monitors/keywords.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/monitors.rbi +1 -1
- metadata +13 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43da66645ccb25ebf91b2fce7abd6f6e3c9ceaadf07a86086839fd29bb0e2b9f
|
|
4
|
+
data.tar.gz: 57f8e8b8924975b71f79ed2f7a25e5d6b9a42024a11b489a14ec1a2a0536a016
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32e8fbf3f54f3717f81c99b7551a44ed0d572ce900f9bae41d259ac8f4a30111f89cdd49d4355989d52a9a34ea4e3e05daa98686357b829eda37886217eb2da7
|
|
7
|
+
data.tar.gz: 71b43f3cfcc7a21d9c1999210eb0f283d273ff28664aeb2b2eb980c8509f49d618a1f06f91be66fc5d226c585f7ba700375618a98898483f1ca1a7bd7627668f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.5 (2026-10-13)
|
|
4
|
+
|
|
5
|
+
[Full changelog from v0.10.4 to v0.10.5](https://github.com/Xquik-dev/x-twitter-scraper-ruby/compare/v0.10.4...v0.10.5)
|
|
6
|
+
|
|
7
|
+
### Documentation
|
|
8
|
+
|
|
9
|
+
* The README title is now "X API & Twitter API Ruby SDK by Xquik".
|
|
10
|
+
* The README says near the top what Xquik is, how it bills and that it is not affiliated with X Corp.
|
|
11
|
+
* Doc comments use the current price. An active monitor costs 30 credits per hour.
|
|
12
|
+
* The gem page gains a description and links to the docs, the changelog and the issue tracker.
|
|
13
|
+
|
|
3
14
|
## 0.10.4 (2026-08-21)
|
|
4
15
|
|
|
5
16
|
Full Changelog: [v0.10.3...v0.10.4](https://github.com/Xquik-dev/x-twitter-scraper-ruby/compare/v0.10.3...v0.10.4)
|
data/README.md
CHANGED
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# X API & Twitter API Ruby SDK by Xquik
|
|
2
2
|
|
|
3
3
|
[](https://www.bestpractices.dev/projects/13739)
|
|
4
4
|
|
|
5
|
-
Use
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
Use this X API & Twitter API SDK to work with X from Ruby.
|
|
6
|
+
It works as a Twitter scraper & tweet scraper for search, profiles & followers.
|
|
7
|
+
Scrape Twitter timelines, lists, communities & trends into typed results.
|
|
8
|
+
Manage media, webhooks, monitors & X automation with typed requests.
|
|
9
|
+
It provides a Twitter API alternative through documented Xquik REST routes.
|
|
10
|
+
|
|
11
|
+
Xquik is the world's fastest and cheapest X Twitter scraper service with the most complete X data.
|
|
12
|
+
Xquik charges only for delivered, unique, filter-matching results and never pads rows.
|
|
13
|
+
|
|
14
|
+
> Xquik is an independent third-party service. Not affiliated with X Corp.
|
|
15
|
+
> "Twitter" and "X" are trademarks of X Corp.
|
|
8
16
|
|
|
9
17
|
[Ruby SDK Guide](https://docs.xquik.com/sdks/ruby) | [REST API](https://docs.xquik.com/api-reference/overview) | [RubyDoc](https://gemdocs.org/gems/x-twitter-scraper) | [Webhooks](https://docs.xquik.com/api-reference/webhooks/create)
|
|
10
18
|
|
|
@@ -26,12 +34,12 @@ Use documented Xquik REST routes as a Twitter API alternative.
|
|
|
26
34
|
|
|
27
35
|
Requires Ruby 3.2.0 or higher.
|
|
28
36
|
|
|
29
|
-
Add the gem to your `Gemfile
|
|
37
|
+
Add the gem to your `Gemfile`.
|
|
30
38
|
|
|
31
39
|
<!-- x-release-please-start-version -->
|
|
32
40
|
|
|
33
41
|
```ruby
|
|
34
|
-
gem "x-twitter-scraper", "~> 0.10.
|
|
42
|
+
gem "x-twitter-scraper", "~> 0.10.5"
|
|
35
43
|
```
|
|
36
44
|
|
|
37
45
|
<!-- x-release-please-end -->
|
|
@@ -53,7 +61,7 @@ puts(response)
|
|
|
53
61
|
|
|
54
62
|
### Handling errors
|
|
55
63
|
|
|
56
|
-
The SDK raises an `APIError` subclass for connection failures and non-2xx responses
|
|
64
|
+
The SDK raises an `APIError` subclass for connection failures and non-2xx responses.
|
|
57
65
|
|
|
58
66
|
```ruby
|
|
59
67
|
begin
|
|
@@ -87,7 +95,7 @@ end
|
|
|
87
95
|
|
|
88
96
|
The SDK retries connection errors, timeouts & HTTP 408, 409, 429, and 5xx responses.
|
|
89
97
|
It uses exponential backoff with 2 retries by default.
|
|
90
|
-
Set `max_retries` to change or disable retries
|
|
98
|
+
Set `max_retries` to change or disable retries.
|
|
91
99
|
|
|
92
100
|
```ruby
|
|
93
101
|
# Change the client default.
|
|
@@ -101,7 +109,7 @@ x_twitter_scraper.account.retrieve(request_options: {max_retries: 5})
|
|
|
101
109
|
|
|
102
110
|
### Timeouts
|
|
103
111
|
|
|
104
|
-
Requests time out after 60 seconds. Set `timeout` to change or disable this limit
|
|
112
|
+
Requests time out after 60 seconds. Set `timeout` to change or disable this limit.
|
|
105
113
|
|
|
106
114
|
```ruby
|
|
107
115
|
# Change the client default.
|
|
@@ -117,7 +125,7 @@ Timeouts raise `XTwitterScraper::Errors::APITimeoutError` and follow the retry p
|
|
|
117
125
|
|
|
118
126
|
## BaseModel
|
|
119
127
|
|
|
120
|
-
All parameter and response objects inherit from `XTwitterScraper::Internal::Type::BaseModel` and support
|
|
128
|
+
All parameter and response objects inherit from `XTwitterScraper::Internal::Type::BaseModel` and support these operations.
|
|
121
129
|
|
|
122
130
|
1. Access known and unknown fields with `obj[:prop]`.
|
|
123
131
|
2. Destructure fields with `obj => {prop: prop}` or pattern matching.
|
|
@@ -143,7 +151,7 @@ account =
|
|
|
143
151
|
puts(account[:my_undocumented_property])
|
|
144
152
|
```
|
|
145
153
|
|
|
146
|
-
Use `client.request` for undocumented endpoints while retaining authentication and retries
|
|
154
|
+
Use `client.request` for undocumented endpoints while retaining authentication and retries.
|
|
147
155
|
|
|
148
156
|
```ruby
|
|
149
157
|
response = client.request(
|
|
@@ -167,7 +175,7 @@ Other SDK classes do not lock their data.
|
|
|
167
175
|
|
|
168
176
|
The gem ships [RBI](https://sorbet.org/docs/rbi) definitions without `sorbet-runtime`.
|
|
169
177
|
|
|
170
|
-
Pass request hashes or typed parameter objects
|
|
178
|
+
Pass request hashes or typed parameter objects.
|
|
171
179
|
|
|
172
180
|
```ruby
|
|
173
181
|
# Hashes work without type safety:
|
|
@@ -180,7 +188,7 @@ x_twitter_scraper.x.tweets.search(**params)
|
|
|
180
188
|
|
|
181
189
|
### Enums
|
|
182
190
|
|
|
183
|
-
Tagged symbols replace [`T::Enum`](https://sorbet.org/docs/tenum) and remain runtime primitives
|
|
191
|
+
Tagged symbols replace [`T::Enum`](https://sorbet.org/docs/tenum) and remain runtime primitives.
|
|
184
192
|
|
|
185
193
|
```ruby
|
|
186
194
|
# :en
|
|
@@ -190,7 +198,7 @@ puts(XTwitterScraper::AccountUpdateLocaleParams::Locale::EN)
|
|
|
190
198
|
T.reveal_type(XTwitterScraper::AccountUpdateLocaleParams::Locale::EN)
|
|
191
199
|
```
|
|
192
200
|
|
|
193
|
-
Enum parameters accept constants or literal values
|
|
201
|
+
Enum parameters accept constants or literal values.
|
|
194
202
|
|
|
195
203
|
```ruby
|
|
196
204
|
# Enum constants preserve tagged type information:
|
|
@@ -10,7 +10,7 @@ module XTwitterScraper
|
|
|
10
10
|
# X account monitoring with 1-second checks
|
|
11
11
|
class Keywords
|
|
12
12
|
# Creates a keyword monitor. Keyword monitors are unlimited. Active monitors check
|
|
13
|
-
# every 1 second and cost
|
|
13
|
+
# every 1 second and cost 30 credits per hour. Events and webhook deliveries are
|
|
14
14
|
# included. Creation requires available credits for the first hourly charge.
|
|
15
15
|
#
|
|
16
16
|
# @overload create(event_types:, query:, request_options: {})
|
|
@@ -13,7 +13,7 @@ module XTwitterScraper
|
|
|
13
13
|
attr_reader :keywords
|
|
14
14
|
|
|
15
15
|
# Creates an account monitor. Monitors are unlimited. Active monitors check every
|
|
16
|
-
# 1 second and cost
|
|
16
|
+
# 1 second and cost 30 credits per hour. Events and webhook deliveries are
|
|
17
17
|
# included. Creation requires available credits for the first hourly charge and
|
|
18
18
|
# username lookup.
|
|
19
19
|
#
|
|
@@ -10,7 +10,7 @@ module XTwitterScraper
|
|
|
10
10
|
# X account monitoring with 1-second checks
|
|
11
11
|
class Keywords
|
|
12
12
|
# Creates a keyword monitor. Keyword monitors are unlimited. Active monitors check
|
|
13
|
-
# every 1 second and cost
|
|
13
|
+
# every 1 second and cost 30 credits per hour. Events and webhook deliveries are
|
|
14
14
|
# included. Creation requires available credits for the first hourly charge.
|
|
15
15
|
sig do
|
|
16
16
|
params(
|
|
@@ -13,7 +13,7 @@ module XTwitterScraper
|
|
|
13
13
|
attr_reader :keywords
|
|
14
14
|
|
|
15
15
|
# Creates an account monitor. Monitors are unlimited. Active monitors check every
|
|
16
|
-
# 1 second and cost
|
|
16
|
+
# 1 second and cost 30 credits per hour. Events and webhook deliveries are
|
|
17
17
|
# included. Creation requires available credits for the first hourly charge and
|
|
18
18
|
# username lookup.
|
|
19
19
|
sig do
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: x-twitter-scraper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Xquik
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 2026-10-13 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: base64
|
|
@@ -51,6 +51,11 @@ dependencies:
|
|
|
51
51
|
- - ">="
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
53
|
version: '0'
|
|
54
|
+
description: X API & Twitter API SDK for Ruby by Xquik. Scrape Twitter search, timelines,
|
|
55
|
+
profiles & followers as a typed Twitter scraper & tweet scraper. Manage media, webhooks,
|
|
56
|
+
monitors & X automation through documented Xquik REST routes. Xquik is the world's
|
|
57
|
+
fastest and cheapest X Twitter scraper service with the most complete X data. Not
|
|
58
|
+
affiliated with X Corp.
|
|
54
59
|
email: support@xquik.com
|
|
55
60
|
executables: []
|
|
56
61
|
extensions: []
|
|
@@ -955,6 +960,9 @@ licenses:
|
|
|
955
960
|
metadata:
|
|
956
961
|
homepage_uri: https://docs.xquik.com/sdks/ruby
|
|
957
962
|
source_code_uri: https://github.com/Xquik-dev/x-twitter-scraper-ruby
|
|
963
|
+
documentation_uri: https://docs.xquik.com/api-reference/overview
|
|
964
|
+
changelog_uri: https://github.com/Xquik-dev/x-twitter-scraper-ruby/blob/main/CHANGELOG.md
|
|
965
|
+
bug_tracker_uri: https://github.com/Xquik-dev/x-twitter-scraper-ruby/issues
|
|
958
966
|
rubygems_mfa_required: 'false'
|
|
959
967
|
rdoc_options: []
|
|
960
968
|
require_paths:
|
|
@@ -970,8 +978,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
970
978
|
- !ruby/object:Gem::Version
|
|
971
979
|
version: '0'
|
|
972
980
|
requirements: []
|
|
973
|
-
rubygems_version: 4.0.
|
|
981
|
+
rubygems_version: 4.0.11
|
|
974
982
|
specification_version: 4
|
|
975
|
-
summary:
|
|
976
|
-
with X Corp.
|
|
983
|
+
summary: X API & Twitter API SDK for Ruby. Scrape Twitter search, profiles & followers
|
|
984
|
+
as a Twitter scraper & tweet scraper. Not affiliated with X Corp.
|
|
977
985
|
test_files: []
|