1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "tweetText": "🚀 Just automated my first tweet using the Twitter Poster Actor! This is amazing for social media automation. #TwitterAutomation #SocialMedia #Apify",
10 "postingMethod": "browser",
11 "twitterAuthToken": "your_auth_token_cookie_value_here",
12}
13
14
15run = client.actor("pixelated_pulse/twitter-poster").call(run_input=run_input)
16
17
18print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
19for item in client.dataset(run["defaultDatasetId"]).iterate_items():
20 print(item)
21
22