x-twitter-scraper 0.11.0 → 0.12.0
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.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/resources/shared.d.mts +2 -2
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +2 -2
- package/resources/shared.d.ts.map +1 -1
- package/resources/x/tweets/tweets.d.mts +135 -4
- package/resources/x/tweets/tweets.d.mts.map +1 -1
- package/resources/x/tweets/tweets.d.ts +135 -4
- package/resources/x/tweets/tweets.d.ts.map +1 -1
- package/resources/x/tweets/tweets.js +3 -1
- package/resources/x/tweets/tweets.js.map +1 -1
- package/resources/x/tweets/tweets.mjs +3 -1
- package/resources/x/tweets/tweets.mjs.map +1 -1
- package/resources/x/users/users.d.mts +5 -5
- package/resources/x/users/users.d.ts +5 -5
- package/src/resources/shared.ts +12 -0
- package/src/resources/x/tweets/tweets.ts +167 -4
- package/src/resources/x/users/users.ts +5 -5
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -185,7 +185,9 @@ export class Tweets extends APIResource {
|
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/**
|
|
188
|
-
* No-mode search maximizes coverage.
|
|
188
|
+
* No-mode search maximizes coverage. New cursorless `Latest` sessions return rows
|
|
189
|
+
* newest-first across cursor pages. Existing cursors preserve their established
|
|
190
|
+
* ordering.
|
|
189
191
|
*
|
|
190
192
|
* @example
|
|
191
193
|
* ```ts
|
|
@@ -1574,7 +1576,7 @@ export interface TweetGetQuotesParams {
|
|
|
1574
1576
|
minBookmarks?: number;
|
|
1575
1577
|
|
|
1576
1578
|
/**
|
|
1577
|
-
* Minimum likes threshold.
|
|
1579
|
+
* Minimum likes threshold. minLikes is also accepted.
|
|
1578
1580
|
*/
|
|
1579
1581
|
minFaves?: number;
|
|
1580
1582
|
|
|
@@ -1847,7 +1849,7 @@ export interface TweetGetRepliesParams {
|
|
|
1847
1849
|
minBookmarks?: number;
|
|
1848
1850
|
|
|
1849
1851
|
/**
|
|
1850
|
-
* Minimum likes threshold.
|
|
1852
|
+
* Minimum likes threshold. minLikes is also accepted.
|
|
1851
1853
|
*/
|
|
1852
1854
|
minFaves?: number;
|
|
1853
1855
|
|
|
@@ -2081,17 +2083,178 @@ export interface TweetGetRetweetersParams {
|
|
|
2081
2083
|
}
|
|
2082
2084
|
|
|
2083
2085
|
export interface TweetGetThreadParams {
|
|
2086
|
+
/**
|
|
2087
|
+
* Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
2088
|
+
* or lines.
|
|
2089
|
+
*/
|
|
2090
|
+
anyWords?: string;
|
|
2091
|
+
|
|
2092
|
+
/**
|
|
2093
|
+
* Only return tweets from Blue-verified authors.
|
|
2094
|
+
*/
|
|
2095
|
+
blueVerifiedOnly?: boolean;
|
|
2096
|
+
|
|
2097
|
+
/**
|
|
2098
|
+
* Cashtags separated by spaces, commas, or lines.
|
|
2099
|
+
*/
|
|
2100
|
+
cashtags?: string;
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* Conversation ID filter.
|
|
2104
|
+
*/
|
|
2105
|
+
conversationId?: string;
|
|
2106
|
+
|
|
2084
2107
|
/**
|
|
2085
2108
|
* Pagination cursor for thread tweets
|
|
2086
2109
|
*/
|
|
2087
2110
|
cursor?: string;
|
|
2088
2111
|
|
|
2112
|
+
/**
|
|
2113
|
+
* Exact phrase to match.
|
|
2114
|
+
*/
|
|
2115
|
+
exactPhrase?: string;
|
|
2116
|
+
|
|
2117
|
+
/**
|
|
2118
|
+
* Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
2119
|
+
*/
|
|
2120
|
+
excludeWords?: string;
|
|
2121
|
+
|
|
2122
|
+
/**
|
|
2123
|
+
* Filter by author username.
|
|
2124
|
+
*/
|
|
2125
|
+
fromUser?: string;
|
|
2126
|
+
|
|
2127
|
+
/**
|
|
2128
|
+
* Hashtags separated by spaces, commas, or lines.
|
|
2129
|
+
*/
|
|
2130
|
+
hashtags?: string;
|
|
2131
|
+
|
|
2132
|
+
/**
|
|
2133
|
+
* Only replies to this tweet ID.
|
|
2134
|
+
*/
|
|
2135
|
+
inReplyToTweetId?: string;
|
|
2136
|
+
|
|
2137
|
+
/**
|
|
2138
|
+
* Language code filter, e.g. en or tr.
|
|
2139
|
+
*/
|
|
2140
|
+
language?: string;
|
|
2141
|
+
|
|
2142
|
+
/**
|
|
2143
|
+
* Maximum likes threshold. maxLikes is also accepted.
|
|
2144
|
+
*/
|
|
2145
|
+
maxFaves?: number;
|
|
2146
|
+
|
|
2147
|
+
/**
|
|
2148
|
+
* Maximum quotes threshold.
|
|
2149
|
+
*/
|
|
2150
|
+
maxQuotes?: number;
|
|
2151
|
+
|
|
2152
|
+
/**
|
|
2153
|
+
* Maximum replies threshold.
|
|
2154
|
+
*/
|
|
2155
|
+
maxReplies?: number;
|
|
2156
|
+
|
|
2157
|
+
/**
|
|
2158
|
+
* Maximum retweets threshold.
|
|
2159
|
+
*/
|
|
2160
|
+
maxRetweets?: number;
|
|
2161
|
+
|
|
2162
|
+
/**
|
|
2163
|
+
* Filter by media type.
|
|
2164
|
+
*/
|
|
2165
|
+
mediaType?: 'images' | 'videos' | 'gifs' | 'media' | 'links' | 'none';
|
|
2166
|
+
|
|
2167
|
+
/**
|
|
2168
|
+
* Filter tweets mentioning a username.
|
|
2169
|
+
*/
|
|
2170
|
+
mentioning?: string;
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* Minimum bookmark count threshold.
|
|
2174
|
+
*/
|
|
2175
|
+
minBookmarks?: number;
|
|
2176
|
+
|
|
2177
|
+
/**
|
|
2178
|
+
* Minimum likes threshold. minLikes is also accepted.
|
|
2179
|
+
*/
|
|
2180
|
+
minFaves?: number;
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* Minimum quote count threshold.
|
|
2184
|
+
*/
|
|
2185
|
+
minQuotes?: number;
|
|
2186
|
+
|
|
2187
|
+
/**
|
|
2188
|
+
* Minimum replies threshold.
|
|
2189
|
+
*/
|
|
2190
|
+
minReplies?: number;
|
|
2191
|
+
|
|
2192
|
+
/**
|
|
2193
|
+
* Minimum retweets threshold.
|
|
2194
|
+
*/
|
|
2195
|
+
minRetweets?: number;
|
|
2196
|
+
|
|
2197
|
+
/**
|
|
2198
|
+
* Minimum view count threshold.
|
|
2199
|
+
*/
|
|
2200
|
+
minViews?: number;
|
|
2201
|
+
|
|
2089
2202
|
/**
|
|
2090
2203
|
* Maximum page items (1-100, default 20). Source, filters, or credits can reduce
|
|
2091
2204
|
* results. Continue while has_next_page is true. Deprecated limit and count
|
|
2092
2205
|
* aliases remain accepted.
|
|
2093
2206
|
*/
|
|
2094
2207
|
pageSize?: number;
|
|
2208
|
+
|
|
2209
|
+
/**
|
|
2210
|
+
* Quote mode.
|
|
2211
|
+
*/
|
|
2212
|
+
quotes?: 'include' | 'exclude' | 'only';
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
* Only quotes of this tweet ID.
|
|
2216
|
+
*/
|
|
2217
|
+
quotesOfTweetId?: string;
|
|
2218
|
+
|
|
2219
|
+
/**
|
|
2220
|
+
* Reply mode.
|
|
2221
|
+
*/
|
|
2222
|
+
replies?: 'include' | 'exclude' | 'only';
|
|
2223
|
+
|
|
2224
|
+
/**
|
|
2225
|
+
* Retweet mode.
|
|
2226
|
+
*/
|
|
2227
|
+
retweets?: 'include' | 'exclude' | 'only';
|
|
2228
|
+
|
|
2229
|
+
/**
|
|
2230
|
+
* Only retweets of this tweet ID.
|
|
2231
|
+
*/
|
|
2232
|
+
retweetsOfTweetId?: string;
|
|
2233
|
+
|
|
2234
|
+
/**
|
|
2235
|
+
* Start date in YYYY-MM-DD format.
|
|
2236
|
+
*/
|
|
2237
|
+
sinceDate?: string;
|
|
2238
|
+
|
|
2239
|
+
/**
|
|
2240
|
+
* Filter replies sent to a username.
|
|
2241
|
+
*/
|
|
2242
|
+
toUser?: string;
|
|
2243
|
+
|
|
2244
|
+
/**
|
|
2245
|
+
* End date in YYYY-MM-DD format.
|
|
2246
|
+
*/
|
|
2247
|
+
untilDate?: string;
|
|
2248
|
+
|
|
2249
|
+
/**
|
|
2250
|
+
* URL substring or domain filter.
|
|
2251
|
+
*/
|
|
2252
|
+
url?: string;
|
|
2253
|
+
|
|
2254
|
+
/**
|
|
2255
|
+
* Only return tweets from verified authors.
|
|
2256
|
+
*/
|
|
2257
|
+
verifiedOnly?: boolean;
|
|
2095
2258
|
}
|
|
2096
2259
|
|
|
2097
2260
|
export interface TweetSearchParams {
|
|
@@ -2235,7 +2398,7 @@ export interface TweetSearchParams {
|
|
|
2235
2398
|
minBookmarks?: number;
|
|
2236
2399
|
|
|
2237
2400
|
/**
|
|
2238
|
-
* Minimum likes threshold.
|
|
2401
|
+
* Minimum likes threshold. minLikes is also accepted.
|
|
2239
2402
|
*/
|
|
2240
2403
|
minFaves?: number;
|
|
2241
2404
|
|
|
@@ -1247,7 +1247,7 @@ export interface UserRetrieveLikesParams {
|
|
|
1247
1247
|
minBookmarks?: number;
|
|
1248
1248
|
|
|
1249
1249
|
/**
|
|
1250
|
-
* Minimum likes threshold.
|
|
1250
|
+
* Minimum likes threshold. minLikes is also accepted.
|
|
1251
1251
|
*/
|
|
1252
1252
|
minFaves?: number;
|
|
1253
1253
|
|
|
@@ -1482,7 +1482,7 @@ export interface UserRetrieveMediaParams {
|
|
|
1482
1482
|
minBookmarks?: number;
|
|
1483
1483
|
|
|
1484
1484
|
/**
|
|
1485
|
-
* Minimum likes threshold.
|
|
1485
|
+
* Minimum likes threshold. minLikes is also accepted.
|
|
1486
1486
|
*/
|
|
1487
1487
|
minFaves?: number;
|
|
1488
1488
|
|
|
@@ -1717,7 +1717,7 @@ export interface UserRetrieveMentionsParams {
|
|
|
1717
1717
|
minBookmarks?: number;
|
|
1718
1718
|
|
|
1719
1719
|
/**
|
|
1720
|
-
* Minimum likes threshold.
|
|
1720
|
+
* Minimum likes threshold. minLikes is also accepted.
|
|
1721
1721
|
*/
|
|
1722
1722
|
minFaves?: number;
|
|
1723
1723
|
|
|
@@ -1968,7 +1968,7 @@ export interface UserRetrieveRepliesParams {
|
|
|
1968
1968
|
minBookmarks?: number;
|
|
1969
1969
|
|
|
1970
1970
|
/**
|
|
1971
|
-
* Minimum likes threshold.
|
|
1971
|
+
* Minimum likes threshold. minLikes is also accepted.
|
|
1972
1972
|
*/
|
|
1973
1973
|
minFaves?: number;
|
|
1974
1974
|
|
|
@@ -2295,7 +2295,7 @@ export interface UserRetrieveTweetsParams {
|
|
|
2295
2295
|
minBookmarks?: number;
|
|
2296
2296
|
|
|
2297
2297
|
/**
|
|
2298
|
-
* Minimum likes threshold.
|
|
2298
|
+
* Minimum likes threshold. minLikes is also accepted.
|
|
2299
2299
|
*/
|
|
2300
2300
|
minFaves?: number;
|
|
2301
2301
|
|
package/src/version.ts
CHANGED
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.12.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.12.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
// SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.VERSION = void 0;
|
|
7
|
-
exports.VERSION = '0.
|
|
7
|
+
exports.VERSION = '0.12.0'; // x-release-please-version
|
|
8
8
|
//# sourceMappingURL=version.js.map
|
package/version.mjs
CHANGED