📝Twitter Private API
Twitterの非公式API情報まとめ.
Twitter Private API解析 #
- GET UserSessionList
- https://twitter.com/settings/sessions
- セッションリスト取得
- GET account/multi/list.json
- https://twitter.com/i/api/1.1/account/multi/list.json
- ログイン中のアカウントを取得
- おそらくauth_multiで判定.
- response cookieにてauth_multiを確認.
References #
Articles #
- TwitterScraperの代わりになるような情報収集モジュール作成しまし(Python3)|神瀬来未|note
- TwitterのフロントエンドAPIの使い方(Python3)|神瀬来未|note
- twitter.com/i/という形式のAPIはheader情報(authorization, x-guest-token)を設定すると利用できる.
- 【Twitterスクレイピング】twintの代わりにstweetをインストール | ジコログ
- TwitterAPIめっちゃ調べてみた - Qiita
- TwitterをCookieで操作する - Qiita
- https://www.libertyspecialtymarkets.com/static/2020-07/Liberty-specialy-markets-cookies.pdf
- 実行したいAPIの特定はChrome Developer ToolsのNetworkタブから Copy -> Copy as cURL(bash)を選択してそれっぽいものをコピー. https://curlconverter.com/ で別の言語に変換して実行.
- Logic using cURL, PHP and Twitter without using API - Stack Overflow
- Cookieを使ってTwitterになりすまし投稿してみよう | すずきライフ
- How to Hack APIs in 2021 by Hakluke and Farah Hawa | Detectify Labs
- SPAアーキの時代はPrivate API-based AutomationはWebdriver-basedによりも有利な時代になったという話.
- 最近のモダンなサイトはreact やvuejsをつかったspaモデルで構築されているためそのapiをpostmanで解析することで自動化は圧倒的にしやすい時代になった.
- これは従来のhttpを解析して自動化するより効率的、なるほど.
Books #
GitHub #
- https://github.com/hannahcooper716/oauth-twitter
- https://github.com/twintproject/twint
- https://github.com/markowanga/stweet
- https://github.com/KohnoseLami/Twitter_Frontend_API
- https://gist.github.com/stepney141/c161a83f02c42e161c905249733b9225