Skip to content

Commit

Permalink
[X to Voice] fix apify rate limiting (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanvm authored Nov 15, 2024
1 parent db38e45 commit e58e53e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export const synthesizeHumanAction = actionClient
});
const run = await apifyClient.actor("apidojo/tweet-scraper").call({
twitterHandles: [handle],
maxItems: 5,
maxItems: 100,
});
console.info(
`[TTV-X] Apify run created with ID: ${run.defaultDatasetId}`,
Expand Down Expand Up @@ -202,7 +202,7 @@ export const synthesizeHumanAction = actionClient
location: userProfile.location,
followers: userProfile.followers,
following: userProfile.following,
tweets: items.map(tweet => ({
tweets: items.slice(0, 10).map(tweet => ({
id: tweet.id,
text: tweet.text,
isRetweet: tweet.isRetweet,
Expand Down

0 comments on commit e58e53e

Please sign in to comment.