StoryProtocol上のAIエージェント系案件(Benjamin)のエアドロを狙う@python
概要
2025年早々、X上で散見されるBenjaminのエアドロを自動化で狙う話です。
詳しい話は分かりませんが、
StoryProtocol上のAIエージェント系プロジェクトのようです。
新年からAIエージェントが盛り上がっているので一応旬です。
すごく簡単に言うと、下記サイトで
Walletを紐づけてXアカウントと連携して、@BenjaminonIPをタグ付けしてIPsやStoryについてのポストをするとランダムでポイントが貰える、というものです。
書いてあるまんまです・・・

実際に条件に合うポストをしてみたところポイントが入ったので自動化して放置することにします(初回がビギナーズラックだっただけかもしれませんが)。
On X, tagging @BenjaminonIP account and commenting about IPs and Story. Receive random █████ reward. █████ reward is guaranteed
— 賭柱gonzales (@Gonzale11602907) January 3, 2025
また、Xへの自動ポスト記事のコードがかなり散らかっていたので整理したかったという理由もあって記事にしました。
ポスト内容
AIにはAIを、ということでChatGPTに作成してもらいました。

回答には「Story」という文字列が含まれていなかったので意図的に足すことにします(後述)。
pythonコード
import tweepy
import requests
import time
def tweet(message):
client = tweepy.Client(
consumer_key="xxx",
consumer_secret="yyy",
access_token="zzz",
access_token_secret="ttt",
)
client.create_tweet(text = message)
counter = 0
while True:
message = "Exploring the fascinating world of IPs and storytelling! 🚀 @BenjaminonIP, your insights are truly inspiring. What’s your take on how intellectual property shapes creative narratives today? #IPStories" + "\n" + "Story counter=" + str(counter)
tweet(message)
print(message)
time.sleep(43200)
counter = counter + 1
if counter > 600:
counter = 0
consumer_key
consumer_secret
access_token
access_koken_secret
は別途Xにて取得する必要があります。
1日に2回ポストするぐらいが良いかなと思ってポストとポストの間を43200秒あけています(ポストしまくってXからNGを食らうのが怖いのもあります)。
また、完全に同じ文面だとまずいかもという思いと、死活監視の意味合いを込めてStory counterをポストするごとに1インクリメントしています。
(※無理やり「Story」という文字列を入れました。)
しばらくこれで放置してみます。