Class HomePage
- Namespace
- Twikit.Transaction
- Assembly
- Twikit.dll
ハンドシェイクが読む x.com のホームページ(解析済み DOM と生の HTML)。
public sealed class HomePage
- Inheritance
-
HomePage
- Inherited Members
Constructors
HomePage(IDocument, string)
public HomePage(IDocument document, string text)
Parameters
documentIDocumenttextstring
Properties
Document
解析済みの DOM。
public IDocument Document { get; }
Property Value
- IDocument
Text
生の HTML テキスト。
public string Text { get; }
Property Value
Methods
HandleXMigrationAsync(IRawHttpSession, Dictionary<string, string>)
x.com を取得し、twitter.com → x.com の移行リダイレクト(meta refresh / 移行フォーム)を
追ってホームページを返します(Python 版の handle_x_migration)。
public static Task<HomePage> HandleXMigrationAsync(IRawHttpSession session, Dictionary<string, string> headers)
Parameters
sessionIRawHttpSessionheadersDictionary<string, string>
Returns
Parse(string)
public static HomePage Parse(string html)
Parameters
htmlstring