Skip to content

Commit 1e8f5f9

Browse files
release: 0.2.0 (#6)
* feat(api): api update * codegen metadata * feat(api): api update * chore: update SDK settings * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * codegen metadata * release: 0.2.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 36d0acc commit 1e8f5f9

File tree

109 files changed

+1864
-916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+1864
-916
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@ jobs:
1212
publish:
1313
name: publish
1414
runs-on: ubuntu-latest
15-
environment: pypi
16-
permissions:
17-
contents: read
18-
id-token: write
1915

2016
steps:
2117
- uses: actions/checkout@v6
@@ -28,3 +24,5 @@ jobs:
2824
- name: Publish to PyPI
2925
run: |
3026
bash ./bin/publish-pypi
27+
env:
28+
PYPI_TOKEN: ${{ secrets.X_TWITTER_SCRAPER_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.github/workflows/release-doctor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ jobs:
1717
- name: Check release environment
1818
run: |
1919
bash ./bin/check-release-environment
20+
env:
21+
PYPI_TOKEN: ${{ secrets.X_TWITTER_SCRAPER_PYPI_TOKEN || secrets.PYPI_TOKEN }}

.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.1.3"
2+
".": "0.2.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 115
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/xquik%2Fx-twitter-scraper-af60c455e2c8579c3d7f0e33c07c0b8332aa3fe8869688c47b2fbf151e271235.yml
3-
openapi_spec_hash: a49d40286e54da6a4978a103b118d33f
4-
config_hash: cec075ca53645b9620ec200be71bdc48
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/xquik%2Fx-twitter-scraper-3b2c6c771ad1da0bbfeb0af115972929ed2c7fcd5e47a79556d66cd21431b224.yml
3+
openapi_spec_hash: de2890233b68387bf5f9b6d19e7d87dc
4+
config_hash: 8894c96caeb6df84c9394518810221bd

CHANGELOG.md

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

3+
## 0.2.0 (2026-04-01)
4+
5+
Full Changelog: [v0.1.3...v0.2.0](https://github.com/Xquik-dev/x-twitter-scraper-python/compare/v0.1.3...v0.2.0)
6+
7+
### Features
8+
9+
* **api:** api update ([dcfbf4f](https://github.com/Xquik-dev/x-twitter-scraper-python/commit/dcfbf4f110165019fa851654c1911715009be8bb))
10+
* **api:** api update ([017a1e4](https://github.com/Xquik-dev/x-twitter-scraper-python/commit/017a1e4dd340690e38449cb036f40d3f6b1360b9))
11+
12+
13+
### Chores
14+
15+
* update SDK settings ([3f45efe](https://github.com/Xquik-dev/x-twitter-scraper-python/commit/3f45efe97044b419663bd45d9f769bf2af860c0b))
16+
317
## 0.1.3 (2026-03-30)
418

519
Full Changelog: [v0.1.2...v0.1.3](https://github.com/Xquik-dev/x-twitter-scraper-python/compare/v0.1.2...v0.1.3)

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ client = XTwitterScraper(
3232
api_key=os.environ.get("X_TWITTER_SCRAPER_API_KEY"), # This is the default and can be omitted
3333
)
3434

35-
paginated_tweets = client.x.tweets.search(
35+
response = client.x.tweets.search(
3636
q="from:elonmusk",
3737
limit=10,
3838
)
39-
print(paginated_tweets.has_next_page)
39+
print(response.has_next_page)
4040
```
4141

4242
While you can provide an `api_key` keyword argument,
@@ -59,11 +59,11 @@ client = AsyncXTwitterScraper(
5959

6060

6161
async def main() -> None:
62-
paginated_tweets = await client.x.tweets.search(
62+
response = await client.x.tweets.search(
6363
q="from:elonmusk",
6464
limit=10,
6565
)
66-
print(paginated_tweets.has_next_page)
66+
print(response.has_next_page)
6767

6868

6969
asyncio.run(main())
@@ -98,11 +98,11 @@ async def main() -> None:
9898
), # This is the default and can be omitted
9999
http_client=DefaultAioHttpClient(),
100100
) as client:
101-
paginated_tweets = await client.x.tweets.search(
101+
response = await client.x.tweets.search(
102102
q="from:elonmusk",
103103
limit=10,
104104
)
105-
print(paginated_tweets.has_next_page)
105+
print(response.has_next_page)
106106

107107

108108
asyncio.run(main())

api.md

Lines changed: 72 additions & 33 deletions
Large diffs are not rendered by default.

bin/check-release-environment

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
errors=()
44

5+
if [ -z "${PYPI_TOKEN}" ]; then
6+
errors+=("The PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
7+
fi
8+
59
lenErrors=${#errors[@]}
610

711
if [[ lenErrors -gt 0 ]]; then

bin/publish-pypi

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,4 @@ set -eux
44
rm -rf dist
55
mkdir -p dist
66
uv build
7-
if [ -n "${PYPI_TOKEN:-}" ]; then
8-
uv publish --token=$PYPI_TOKEN
9-
else
10-
uv publish
11-
fi
7+
uv publish --token=$PYPI_TOKEN

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.1.3"
3+
version = "0.2.0"
44
description = "The official Python library for the x-twitter-scraper API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)