Twitter APIを使えばフォロワーが増えるかも?~Twitter API申請編~
みんなこんにちわ!
リトルメイドをしているラミィだよ!
今回はTwitter APIを使ってフォロワーが増えるかどうかの実験をしてみようと思うの。
今回はTwitter APIの取得とPythonの環境構築の解説をしていくよ!
Twitter APIの申請
Twitter APIは誰も彼もが使えるわけではないの。
まずはAPIを使うための申請をしよう!
以下のサイトから申請をするよ。
「Create an app」をクリック。
自分の用途に合ったジャンルを選択しようね。
今回はBotのようなものを作るので、「Making a bot」を選択。
以下の質問に答えて次へ行くよ。
ここまでは何も難しいことは無いんだけど、次が大変!
Twitter APIをどのように使うかを200文字以上で答えないとイケないの。
ここは自分なりの文章を書いて、熱意をTwitter社に送らないといけない!
頑張って書いていこう!
ちなみにあたしはこんな感じで送ったよ。
TwitterAPIを使い、アプリを開発しようと思っています。
TwitterAPIを利用して、自分の興味・関心のあるツイートを検索していいねやRTをします。
リプライやフォローが来た場合、自動でリプライやフォローをします。
また、定期的に自動でツイートをしようと思っています。
次はTwitterデータを使うかどうか、ツイートやリツイート、いいね、フォロー、DMは使うかどうか等々の質問があるので、ありのままに答えていこう。
ここで、面倒くさかったのは2番目の質問
文章で書かないといけないんだけど、100文字以上で書かないとダメなんだよね。
ツイート、リツイート、いいね、フォロー、DMを使うかどうかの質問だけで100文字って結構難しいものがあるよね。
気合でなんとかしよう!
あとは、確認をして利用規約を読んで申請すればOK!
確認のメールが来るので、クリックしてメールの確認をして、後は待つだけ!
何事も無ければ、このまま申請が通ってAPIが使えるよ。
あたしは2回ほどメールのやりとりしないとダメだったけど・・・
1回目:開発者ポリシーや自動化ルール、ツイッタールールに違反する可能性あるよ?もう一回ユースケース送ってね
Thanks for applying for access!
It looks like your proposed use case may be in violation of one or more sections of the Developer Agreement and Policy, Automation Rules, and/or the Twitter Rules.
As a next step please review these policies as they relate to your use case. Then, respond to this email with an updated use case that is in full compliance with Twitter policy.
Thank you for your interest in building on Twitter.
返事としては
1.1日1回程度、自分の興味・関心のあるツイートを検索していいねやRTをします。
2.特定のリプライが来た場合、予め用意した文章をリプライをします。
3.1日に1回程度、予め用意した文章をツイートをします。
4.Twitterの自動化ルールに違反する恐れがある処理は削除します。
5.これらの機能の動作の結果は全てTwitter上でのみ公表します。
というのを送ったんだけど、これでもまだ駄目
2回目:もっとユースケースの詳細をちょうだい!
Thanks for your interest in building on Twitter.
Before we can finish our review of your developer account application, we need some more details about your use case.
The types of information that are valuable for our review include:
- The core use case, intent, or business purpose for your use of the Twitter APIs.
- If you intend to analyze Tweets, Twitter users, or their content, share details about the analyses you plan to conduct, and the methods or techniques.
- If your use involves Tweeting, Retweeting, or liking content, share how you’ll interact with Twitter accounts, or their content.
- If you’ll display Twitter content off of Twitter, explain how, and where, Tweets and Twitter content will be displayed with your product or service, including whether Tweets and Twitter content will be displayed at row level, or aggregated.
Just reply to this email with these details. Once we’ve received your response, we’ll continue our review. We appreciate your help!
かなーり投げ捨てたかったけど、なんとか堪えつつ、
・「単純接触効果」や「返報性の原理」により、フォロワーが増えるかの実験したい。
というような文章を加えて返信したら見事に通った!!ヾ(=^▽^=)ノ
申請が通ったら、デベロッパーポータルに行くよ。
「Projects & Apps」→「Overview」に行って
「Standalone Apps」欄の「Create App」をクリックしてAPIキーを発行するよ!
アプリ名を好きなように付けて次へ進むと・・・
キーが発行されるよ!悪用されないためにも、これは絶対に誰にも教えないでね!
ツイートをする予定なので、パーミッションの変更を行うよ
「Projects & Apps」のさっき作ったアプリへ移動して
「App permissions」のEditから、パーミッションを「Read and Write」にします
「Keys and tokens」へ行き「Access token & secret」をgenerateして、この文字列も覚えておいてね
これでTwitter APIの取得は終わり!
お疲れ様だったね!
次回はTwitter APIを使う環境構築の説明と、実際に使ってみようと思うよ!
それじゃあまた次の記事で会おうね!
次の記事です。
ディスカッション
ピンバック & トラックバック一覧
[…] ↓↓こちらの記事でも解説しています↓↓ https://littlemaid.fun/archives/343 […]
[…] ↓↓こちらの記事でも解説しています↓↓ https://littlemaid.fun/archives/343 […]