Skip to content

Commit cf9e957

Browse files
Burak Bayırkriptoburak
andauthored
docs: refine Java SDK copy (#56)
Signed-off-by: kriptoburak <kriptoburak@users.noreply.github.com> Co-authored-by: kriptoburak <kriptoburak@users.noreply.github.com>
1 parent 71293d6 commit cf9e957

6 files changed

Lines changed: 34 additions & 48 deletions

File tree

.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.10.2"
2+
".": "0.10.3"
33
}

CHANGELOG.md

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

3+
## 0.10.3 (2026-08-21)
4+
5+
Full Changelog: [v0.10.2...v0.10.3](https://github.com/Xquik-dev/x-twitter-scraper-java/compare/v0.10.2...v0.10.3)
6+
7+
### Documentation
8+
9+
* tighten Java setup and API guidance
10+
311
## 0.10.2 (2026-08-20)
412

513
Full Changelog: [v0.10.1...v0.10.2](https://github.com/Xquik-dev/x-twitter-scraper-java/compare/v0.10.1...v0.10.2)

OPENSSF.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ Assessment date: 2026-07-24.
88

99
## Eligibility
1010

11-
This public Java SDK is active and released.
12-
13-
It is eligible for the OpenSSF Best Practices badge.
14-
15-
No OpenSSF-defined ineligibility applies.
11+
This active, public Java SDK qualifies for the OpenSSF Best Practices badge.
1612

1713
## Verified Technical Controls
1814

@@ -36,17 +32,11 @@ No OpenSSF-defined ineligibility applies.
3632
| CI | Pull requests and pushes run pinned, least-privilege workflows |
3733
| Two-factor authentication | The Xquik-dev organization requires 2FA |
3834

39-
The maintained-source gate covers 1,198 of 1,319 executable lines.
40-
41-
That result is 90.83% line coverage.
35+
The maintained-source gate covers 1,198 of 1,319 executable lines (90.83%).
4236

4337
It covers 424 of 520 branches, or 81.54%.
4438

45-
The raw report keeps untouched generated-source coverage visible.
46-
47-
It covers 104,652 of 110,632 generated-inclusive lines, or 94.59%.
48-
49-
It covers 27,560 of 30,010 generated-inclusive branches, or 91.84%.
39+
The raw report covers 104,652 of 110,632 generated-inclusive lines (94.59%) and 27,560 of 30,010 branches (91.84%).
5040

5141
Exclusions use the repository-owned, provider-neutral generated-source header prefix.
5242

@@ -68,15 +58,15 @@ The license report covers 100 resolved runtime and test components.
6858

6959
Jazzer completed 3,544,654 retry-header iterations during this assessment.
7060

71-
Maven Central published `v0.5.2` from the exact release tag.
61+
Maven Central published `v0.10.2` from the exact release tag.
7262

7363
All 15 public files verify with this OpenPGP fingerprint:
7464

7565
`6965 E561 C0AC EE32 060A B961 D203 7E41 57E6 2A59`
7666

7767
The root JAR SHA-256 is:
7868

79-
`87a9b770f16b32d016fac4220a5ec626d32871e692d9b7bc8d261be8e0a58e89`
69+
`7c0ba8741e41eae3c13f5d47e91e100668862b1ae03f57832bfa513e9e5b2393`
8070

8171
## Outstanding Gold Blockers
8272

README.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,28 @@
33
[![CI](https://github.com/Xquik-dev/x-twitter-scraper-java/actions/workflows/ci.yml/badge.svg)](https://github.com/Xquik-dev/x-twitter-scraper-java/actions/workflows/ci.yml)
44
[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/13735/badge)](https://www.bestpractices.dev/projects/13735)
55

6-
Use the Xquik Java SDK for Twitter search, timelines, profiles & followers.
7-
Manage media, webhooks & X automation with typed Java methods.
8-
It provides a Twitter API alternative through documented Xquik REST routes.
6+
Search Twitter, read timelines, fetch profiles & export followers with Xquik.
7+
Use typed Java methods for media, webhooks & X automation.
98

10-
[API Reference](https://docs.xquik.com/api-reference/overview) | [Authentication](https://xquik.com/auth.md) | [Javadocs](https://javadoc.io/doc/com.xquik.api/x-twitter-scraper-java)
9+
[API Reference](https://docs.xquik.com/api-reference/overview) | [Authentication](https://xquik.com/auth.md) | [Javadocs](https://javadoc.io/doc/com.xquik.api/x-twitter-scraper-java-core)
1110

1211
<!-- x-release-please-start-version -->
1312

14-
[![Maven Central](https://img.shields.io/maven-central/v/com.xquik.api/x-twitter-scraper-java)](https://central.sonatype.com/artifact/com.xquik.api/x-twitter-scraper-java/0.10.2)
15-
[![Javadocs](https://javadoc.io/badge2/com.xquik.api/x-twitter-scraper-java/0.10.2/javadoc.svg)](https://javadoc.io/doc/com.xquik.api/x-twitter-scraper-java/0.10.2)
13+
[![Maven Central](https://img.shields.io/maven-central/v/com.xquik.api/x-twitter-scraper-java)](https://central.sonatype.com/artifact/com.xquik.api/x-twitter-scraper-java/0.10.3)
14+
[![Javadocs](https://javadoc.io/badge2/com.xquik.api/x-twitter-scraper-java-core/0.10.3/javadoc.svg)](https://javadoc.io/doc/com.xquik.api/x-twitter-scraper-java-core/0.10.3)
1615

1716
<!-- x-release-please-end -->
1817

19-
## Choose the Java SDK
18+
## Java Client
2019

21-
Choose this client for Java services using builders and typed models.
20+
Use this SDK for Java services with builders and typed models.
2221
Use synchronous calls or `client.async()` for `CompletableFuture` pipelines.
2322

2423
## Common Twitter & X Tasks
2524

26-
Map each task to its REST route and Java service.
27-
2825
| Task | REST Route | Java Service |
2926
| --- | --- | --- |
30-
| Search tweets without the X API | `GET /x/tweets/search` | `client.x().tweets()` |
27+
| Run an advanced Twitter search | `GET /x/tweets/search` | `client.x().tweets()` |
3128
| Retrieve tweets, threads, replies, or quotes | `GET /x/tweets/{id}`, `GET /x/tweets/{id}/thread` | `client.x().tweets()` |
3229
| Search X or Twitter users | `GET /x/users/search` | `client.x().users()` |
3330
| Scrape an X profile timeline | `GET /x/users/{id}/tweets` | `client.x().users()` |
@@ -55,7 +52,7 @@ Map each task to its REST route and Java service.
5552
Gradle:
5653

5754
```kotlin
58-
implementation("com.xquik.api:x-twitter-scraper-java:0.10.2")
55+
implementation("com.xquik.api:x-twitter-scraper-java:0.10.3")
5956
```
6057

6158
Maven:
@@ -64,7 +61,7 @@ Maven:
6461
<dependency>
6562
<groupId>com.xquik.api</groupId>
6663
<artifactId>x-twitter-scraper-java</artifactId>
67-
<version>0.10.2</version>
64+
<version>0.10.3</version>
6865
</dependency>
6966
```
7067

@@ -96,7 +93,7 @@ export X_TWITTER_SCRAPER_API_KEY="your-api-key"
9693

9794
OAuth users can set `X_TWITTER_SCRAPER_BEARER_TOKEN` instead.
9895

99-
Create 1 client and reuse it:
96+
Create one client and reuse it:
10097

10198
```java
10299
import com.x_twitter_scraper.api.client.XTwitterScraperClient;
@@ -105,7 +102,7 @@ import com.x_twitter_scraper.api.client.okhttp.XTwitterScraperOkHttpClient;
105102
XTwitterScraperClient client = XTwitterScraperOkHttpClient.fromEnv();
106103
```
107104

108-
You can also pass credentials directly:
105+
Pass credentials directly when needed:
109106

110107
```java
111108
XTwitterScraperClient client = XTwitterScraperOkHttpClient.builder()
@@ -123,7 +120,7 @@ Supported client settings:
123120

124121
System properties override environment variables.
125122

126-
## Search Posts
123+
## Search Tweets
127124

128125
```java
129126
import com.x_twitter_scraper.api.models.x.tweets.TweetSearchParams;
@@ -165,7 +162,7 @@ XTwitterScraperClient client = XTwitterScraperOkHttpClient.builder()
165162
.build();
166163
```
167164

168-
Xquik may return a successful HTTP response with a structured API error. Handle its documented code.
165+
Successful HTTP responses can contain structured API errors. Handle documented codes.
169166

170167
## Read Raw Responses
171168

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ licenseReport {
3636

3737
allprojects {
3838
group = "com.xquik.api"
39-
version = "0.10.2" // x-release-please-version
39+
version = "0.10.3" // x-release-please-version
4040

4141
dependencyLocking {
4242
lockAllConfigurations()

scripts/fast-format

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,34 @@
66

77
set -euo pipefail
88

9-
echo "Script started with $# arguments"
10-
echo "Arguments: $*"
11-
echo "Script location: $(dirname "$0")"
12-
139
cd "$(dirname "$0")/.."
14-
echo "Changed to directory: $(pwd)"
1510

1611
if [ $# -eq 0 ]; then
1712
echo "Usage: $0 <file-with-paths> [additional-formatter-args...]"
18-
echo "The file should contain one file path per line"
13+
echo "Provide one file path per line."
1914
exit 1
2015
fi
2116

2217
FILE_LIST="$1"
2318

24-
echo "Looking for file: $FILE_LIST"
25-
2619
if [ ! -f "$FILE_LIST" ]; then
27-
echo "Error: File '$FILE_LIST' not found"
20+
echo "File list not found: $FILE_LIST. Check the path."
2821
exit 1
2922
fi
3023

3124
if ! command -v ktfmt &> /dev/null; then
32-
echo "Error: ktfmt not found"
25+
echo "ktfmt is unavailable. Install it first."
3326
exit 1
3427
fi
3528

3629
# Process Kotlin files
37-
echo "==> Looking for Kotlin files"
3830
kt_files=$(grep -E '\.kt$' "$FILE_LIST" | grep -v './buildSrc/build/' || true)
39-
echo "==> Done looking for Kotlin files"
4031

4132
if [[ -n "$kt_files" ]]; then
42-
echo "==> will format Kotlin files"
33+
echo "==> Formatting Kotlin files"
4334
echo "$kt_files" | tr '\n' '\0' | xargs -0 ktfmt --kotlinlang-style "$@"
4435
else
45-
echo "No Kotlin files to format -- expected outcome during incremental formatting"
36+
echo "No Kotlin files found. Nothing to format."
4637
fi
4738

4839
# TODO(mbudayr): support palantir-java-format

0 commit comments

Comments
 (0)