Table of Contents

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

document IDocument
text string

Properties

Document

解析済みの DOM。

public IDocument Document { get; }

Property Value

IDocument

Text

生の HTML テキスト。

public string Text { get; }

Property Value

string

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

session IRawHttpSession
headers Dictionary<string, string>

Returns

Task<HomePage>

Parse(string)

public static HomePage Parse(string html)

Parameters

html string

Returns

HomePage