Skip to content

Commit e58c595

Browse files
stainless-app[bot]kriptoburak
andauthored
release: 0.7.0 (#30)
* feat(api): api update * feat(api): api update * release: 0.7.0 * fix(release): refresh generated lockfile Signed-off-by: kriptoburak <kriptoburak@users.noreply.github.com> --------- Signed-off-by: kriptoburak <kriptoburak@users.noreply.github.com> Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: kriptoburak <kriptoburak@users.noreply.github.com>
1 parent af8d314 commit e58c595

24 files changed

Lines changed: 622 additions & 121 deletions

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.6.1"
2+
".": "0.7.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 122
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/xquik/x-twitter-scraper-26de9a1d18b92c9472fcc289877ba281ae305db846b7b14065142e26c7637d72.yml
3-
openapi_spec_hash: f90f7016413291fdcbedb986385dc3ae
4-
config_hash: 17c84052d27489691ee6dd861cc56e24
1+
configured_endpoints: 123
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/xquik/x-twitter-scraper-323137ebb1ee9824cd9cfb63a325c0839deb81f17244e42e8154d6567e7af954.yml
3+
openapi_spec_hash: 48da9c2747c1e7c474dd514d39c28c49
4+
config_hash: dab26921eb273c16e5570c0485c9ac2c

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 0.7.0 (2026-07-29)
4+
5+
Full Changelog: [v0.6.1...v0.7.0](https://github.com/Xquik-dev/x-twitter-scraper-python/compare/v0.6.1...v0.7.0)
6+
7+
### Features
8+
9+
* **api:** api update ([b63b37b](https://github.com/Xquik-dev/x-twitter-scraper-python/commit/b63b37b882b4d227a542f0404604927912b60e99))
10+
* **api:** api update ([533e09c](https://github.com/Xquik-dev/x-twitter-scraper-python/commit/533e09c3b13682cc872ad9bac273dbc9f3de00ac))
11+
312
## 0.6.1 (2026-07-28)
413

514
Full Changelog: [v0.6.0...v0.6.1](https://github.com/Xquik-dev/x-twitter-scraper-python/compare/v0.6.0...v0.6.1)

api.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ Types:
460460
from x_twitter_scraper.types.x import (
461461
XAccount,
462462
XAccountDetail,
463-
AccountCreateResponse,
464463
AccountListResponse,
465464
AccountDeleteResponse,
466465
AccountBulkRetryResponse,
@@ -470,7 +469,7 @@ from x_twitter_scraper.types.x import (
470469

471470
Methods:
472471

473-
- <code title="post /x/accounts">client.x.accounts.<a href="./src/x_twitter_scraper/resources/x/accounts.py">create</a>(\*\*<a href="src/x_twitter_scraper/types/x/account_create_params.py">params</a>) -> <a href="./src/x_twitter_scraper/types/x/account_create_response.py">AccountCreateResponse</a></code>
472+
- <code title="post /x/accounts">client.x.accounts.<a href="./src/x_twitter_scraper/resources/x/accounts.py">create</a>(\*\*<a href="src/x_twitter_scraper/types/x/account_create_params.py">params</a>) -> object</code>
474473
- <code title="get /x/accounts/{id}">client.x.accounts.<a href="./src/x_twitter_scraper/resources/x/accounts.py">retrieve</a>(id) -> <a href="./src/x_twitter_scraper/types/x/x_account_detail.py">XAccountDetail</a></code>
475474
- <code title="get /x/accounts">client.x.accounts.<a href="./src/x_twitter_scraper/resources/x/accounts.py">list</a>() -> <a href="./src/x_twitter_scraper/types/x/account_list_response.py">AccountListResponse</a></code>
476475
- <code title="delete /x/accounts/{id}">client.x.accounts.<a href="./src/x_twitter_scraper/resources/x/accounts.py">delete</a>(id) -> <a href="./src/x_twitter_scraper/types/x/account_delete_response.py">AccountDeleteResponse</a></code>
@@ -489,6 +488,18 @@ Methods:
489488

490489
- <code title="post /x/account-connection-challenges/{id}/submit">client.x.account_connection_challenges.<a href="./src/x_twitter_scraper/resources/x/account_connection_challenges.py">submit</a>(id, \*\*<a href="src/x_twitter_scraper/types/x/account_connection_challenge_submit_params.py">params</a>) -> <a href="./src/x_twitter_scraper/types/x/account_connection_challenge_submit_response.py">AccountConnectionChallengeSubmitResponse</a></code>
491490

491+
## AccountConnectionAttempts
492+
493+
Types:
494+
495+
```python
496+
from x_twitter_scraper.types.x import AccountConnectionAttemptRetrieveResponse
497+
```
498+
499+
Methods:
500+
501+
- <code title="get /x/account-connection-attempts/{id}">client.x.account_connection_attempts.<a href="./src/x_twitter_scraper/resources/x/account_connection_attempts.py">retrieve</a>(id) -> <a href="./src/x_twitter_scraper/types/x/account_connection_attempt_retrieve_response.py">AccountConnectionAttemptRetrieveResponse</a></code>
502+
492503
## Bookmarks
493504

494505
Types:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "x_twitter_scraper"
3-
version = "0.6.1"
3+
version = "0.7.0"
44
description = "Python library for the Xquik API. Not affiliated with X Corp."
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/x_twitter_scraper/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
66

77
__title__ = "x_twitter_scraper"
8-
__version__ = "0.6.1" # x-release-please-version
8+
__version__ = "0.7.0" # x-release-please-version

src/x_twitter_scraper/resources/compose.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ def create(
6767
) -> ComposeCreateResponse:
6868
"""Run one step of Xquik's three-step writing workflow.
6969
70-
Compose returns questions
71-
and editorial rules. Refine returns goal-specific guidance. Score applies
72-
deterministic text checks. It does not predict reach or expose X ranking
73-
weights.
70+
Compose returns questions,
71+
editorial rules, and source-specific Radar recommendations. Refine returns
72+
goal-specific guidance. Score applies deterministic text checks. It does not
73+
predict reach or expose X ranking weights.
7474
7575
Args:
7676
topic: Subject for the post.
@@ -109,10 +109,10 @@ def create(
109109
) -> ComposeCreateResponse:
110110
"""Run one step of Xquik's three-step writing workflow.
111111
112-
Compose returns questions
113-
and editorial rules. Refine returns goal-specific guidance. Score applies
114-
deterministic text checks. It does not predict reach or expose X ranking
115-
weights.
112+
Compose returns questions,
113+
editorial rules, and source-specific Radar recommendations. Refine returns
114+
goal-specific guidance. Score applies deterministic text checks. It does not
115+
predict reach or expose X ranking weights.
116116
117117
Args:
118118
goal: Editorial goal for the guidance.
@@ -154,10 +154,10 @@ def create(
154154
) -> ComposeCreateResponse:
155155
"""Run one step of Xquik's three-step writing workflow.
156156
157-
Compose returns questions
158-
and editorial rules. Refine returns goal-specific guidance. Score applies
159-
deterministic text checks. It does not predict reach or expose X ranking
160-
weights.
157+
Compose returns questions,
158+
editorial rules, and source-specific Radar recommendations. Refine returns
159+
goal-specific guidance. Score applies deterministic text checks. It does not
160+
predict reach or expose X ranking weights.
161161
162162
Args:
163163
draft: Full post text for deterministic editorial checks.
@@ -267,10 +267,10 @@ async def create(
267267
) -> ComposeCreateResponse:
268268
"""Run one step of Xquik's three-step writing workflow.
269269
270-
Compose returns questions
271-
and editorial rules. Refine returns goal-specific guidance. Score applies
272-
deterministic text checks. It does not predict reach or expose X ranking
273-
weights.
270+
Compose returns questions,
271+
editorial rules, and source-specific Radar recommendations. Refine returns
272+
goal-specific guidance. Score applies deterministic text checks. It does not
273+
predict reach or expose X ranking weights.
274274
275275
Args:
276276
topic: Subject for the post.
@@ -309,10 +309,10 @@ async def create(
309309
) -> ComposeCreateResponse:
310310
"""Run one step of Xquik's three-step writing workflow.
311311
312-
Compose returns questions
313-
and editorial rules. Refine returns goal-specific guidance. Score applies
314-
deterministic text checks. It does not predict reach or expose X ranking
315-
weights.
312+
Compose returns questions,
313+
editorial rules, and source-specific Radar recommendations. Refine returns
314+
goal-specific guidance. Score applies deterministic text checks. It does not
315+
predict reach or expose X ranking weights.
316316
317317
Args:
318318
goal: Editorial goal for the guidance.
@@ -354,10 +354,10 @@ async def create(
354354
) -> ComposeCreateResponse:
355355
"""Run one step of Xquik's three-step writing workflow.
356356
357-
Compose returns questions
358-
and editorial rules. Refine returns goal-specific guidance. Score applies
359-
deterministic text checks. It does not predict reach or expose X ranking
360-
weights.
357+
Compose returns questions,
358+
editorial rules, and source-specific Radar recommendations. Refine returns
359+
goal-specific guidance. Score applies deterministic text checks. It does not
360+
predict reach or expose X ranking weights.
361361
362362
Args:
363363
draft: Full post text for deterministic editorial checks.

src/x_twitter_scraper/resources/x/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@
100100
WriteActionsResourceWithStreamingResponse,
101101
AsyncWriteActionsResourceWithStreamingResponse,
102102
)
103+
from .account_connection_attempts import (
104+
AccountConnectionAttemptsResource,
105+
AsyncAccountConnectionAttemptsResource,
106+
AccountConnectionAttemptsResourceWithRawResponse,
107+
AsyncAccountConnectionAttemptsResourceWithRawResponse,
108+
AccountConnectionAttemptsResourceWithStreamingResponse,
109+
AsyncAccountConnectionAttemptsResourceWithStreamingResponse,
110+
)
103111
from .account_connection_challenges import (
104112
AccountConnectionChallengesResource,
105113
AsyncAccountConnectionChallengesResource,
@@ -170,6 +178,12 @@
170178
"AsyncAccountConnectionChallengesResourceWithRawResponse",
171179
"AccountConnectionChallengesResourceWithStreamingResponse",
172180
"AsyncAccountConnectionChallengesResourceWithStreamingResponse",
181+
"AccountConnectionAttemptsResource",
182+
"AsyncAccountConnectionAttemptsResource",
183+
"AccountConnectionAttemptsResourceWithRawResponse",
184+
"AsyncAccountConnectionAttemptsResourceWithRawResponse",
185+
"AccountConnectionAttemptsResourceWithStreamingResponse",
186+
"AsyncAccountConnectionAttemptsResourceWithStreamingResponse",
173187
"BookmarksResource",
174188
"AsyncBookmarksResource",
175189
"BookmarksResourceWithRawResponse",
Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing import Any, cast
6+
7+
import httpx
8+
9+
from ..._types import Body, Query, Headers, NotGiven, not_given
10+
from ..._utils import path_template
11+
from ..._compat import cached_property
12+
from ..._resource import SyncAPIResource, AsyncAPIResource
13+
from ..._response import (
14+
to_raw_response_wrapper,
15+
to_streamed_response_wrapper,
16+
async_to_raw_response_wrapper,
17+
async_to_streamed_response_wrapper,
18+
)
19+
from ..._base_client import make_request_options
20+
from ...types.x.account_connection_attempt_retrieve_response import AccountConnectionAttemptRetrieveResponse
21+
22+
__all__ = ["AccountConnectionAttemptsResource", "AsyncAccountConnectionAttemptsResource"]
23+
24+
25+
class AccountConnectionAttemptsResource(SyncAPIResource):
26+
"""Connected X account management"""
27+
28+
@cached_property
29+
def with_raw_response(self) -> AccountConnectionAttemptsResourceWithRawResponse:
30+
"""
31+
This property can be used as a prefix for any HTTP method call to return
32+
the raw response object instead of the parsed content.
33+
34+
For more information, see https://www.github.com/Xquik-dev/x-twitter-scraper-python#accessing-raw-response-data-eg-headers
35+
"""
36+
return AccountConnectionAttemptsResourceWithRawResponse(self)
37+
38+
@cached_property
39+
def with_streaming_response(self) -> AccountConnectionAttemptsResourceWithStreamingResponse:
40+
"""
41+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
42+
43+
For more information, see https://www.github.com/Xquik-dev/x-twitter-scraper-python#with_streaming_response
44+
"""
45+
return AccountConnectionAttemptsResourceWithStreamingResponse(self)
46+
47+
def retrieve(
48+
self,
49+
id: str,
50+
*,
51+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
52+
# The extra values given here take precedence over values defined on the client or passed to this method.
53+
extra_headers: Headers | None = None,
54+
extra_query: Query | None = None,
55+
extra_body: Body | None = None,
56+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
57+
) -> AccountConnectionAttemptRetrieveResponse:
58+
"""
59+
Get X account connection status
60+
61+
Args:
62+
extra_headers: Send extra headers
63+
64+
extra_query: Add additional query parameters to the request
65+
66+
extra_body: Add additional JSON properties to the request
67+
68+
timeout: Override the client-level default timeout for this request, in seconds
69+
"""
70+
if not id:
71+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
72+
return cast(
73+
AccountConnectionAttemptRetrieveResponse,
74+
self._get(
75+
path_template("/x/account-connection-attempts/{id}", id=id),
76+
options=make_request_options(
77+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
78+
),
79+
cast_to=cast(
80+
Any, AccountConnectionAttemptRetrieveResponse
81+
), # Union types cannot be passed in as arguments in the type system
82+
),
83+
)
84+
85+
86+
class AsyncAccountConnectionAttemptsResource(AsyncAPIResource):
87+
"""Connected X account management"""
88+
89+
@cached_property
90+
def with_raw_response(self) -> AsyncAccountConnectionAttemptsResourceWithRawResponse:
91+
"""
92+
This property can be used as a prefix for any HTTP method call to return
93+
the raw response object instead of the parsed content.
94+
95+
For more information, see https://www.github.com/Xquik-dev/x-twitter-scraper-python#accessing-raw-response-data-eg-headers
96+
"""
97+
return AsyncAccountConnectionAttemptsResourceWithRawResponse(self)
98+
99+
@cached_property
100+
def with_streaming_response(self) -> AsyncAccountConnectionAttemptsResourceWithStreamingResponse:
101+
"""
102+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
103+
104+
For more information, see https://www.github.com/Xquik-dev/x-twitter-scraper-python#with_streaming_response
105+
"""
106+
return AsyncAccountConnectionAttemptsResourceWithStreamingResponse(self)
107+
108+
async def retrieve(
109+
self,
110+
id: str,
111+
*,
112+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
113+
# The extra values given here take precedence over values defined on the client or passed to this method.
114+
extra_headers: Headers | None = None,
115+
extra_query: Query | None = None,
116+
extra_body: Body | None = None,
117+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
118+
) -> AccountConnectionAttemptRetrieveResponse:
119+
"""
120+
Get X account connection status
121+
122+
Args:
123+
extra_headers: Send extra headers
124+
125+
extra_query: Add additional query parameters to the request
126+
127+
extra_body: Add additional JSON properties to the request
128+
129+
timeout: Override the client-level default timeout for this request, in seconds
130+
"""
131+
if not id:
132+
raise ValueError(f"Expected a non-empty value for `id` but received {id!r}")
133+
return cast(
134+
AccountConnectionAttemptRetrieveResponse,
135+
await self._get(
136+
path_template("/x/account-connection-attempts/{id}", id=id),
137+
options=make_request_options(
138+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
139+
),
140+
cast_to=cast(
141+
Any, AccountConnectionAttemptRetrieveResponse
142+
), # Union types cannot be passed in as arguments in the type system
143+
),
144+
)
145+
146+
147+
class AccountConnectionAttemptsResourceWithRawResponse:
148+
def __init__(self, account_connection_attempts: AccountConnectionAttemptsResource) -> None:
149+
self._account_connection_attempts = account_connection_attempts
150+
151+
self.retrieve = to_raw_response_wrapper(
152+
account_connection_attempts.retrieve,
153+
)
154+
155+
156+
class AsyncAccountConnectionAttemptsResourceWithRawResponse:
157+
def __init__(self, account_connection_attempts: AsyncAccountConnectionAttemptsResource) -> None:
158+
self._account_connection_attempts = account_connection_attempts
159+
160+
self.retrieve = async_to_raw_response_wrapper(
161+
account_connection_attempts.retrieve,
162+
)
163+
164+
165+
class AccountConnectionAttemptsResourceWithStreamingResponse:
166+
def __init__(self, account_connection_attempts: AccountConnectionAttemptsResource) -> None:
167+
self._account_connection_attempts = account_connection_attempts
168+
169+
self.retrieve = to_streamed_response_wrapper(
170+
account_connection_attempts.retrieve,
171+
)
172+
173+
174+
class AsyncAccountConnectionAttemptsResourceWithStreamingResponse:
175+
def __init__(self, account_connection_attempts: AsyncAccountConnectionAttemptsResource) -> None:
176+
self._account_connection_attempts = account_connection_attempts
177+
178+
self.retrieve = async_to_streamed_response_wrapper(
179+
account_connection_attempts.retrieve,
180+
)

0 commit comments

Comments
 (0)