Extractor Class

Namespace:
Weavy.Core.TwitterText
Assembly:
Weavy.Core.dll

A class to extract usernames, lists, hashtags and URLs from Tweet text.

public class Extractor
Inheritance:
System.Object → Extractor

Constructors

Extractor() Initializes a new instance of the Extractor class.

Properties

ExtractMarkdownUrl Indicates whether URLs without protocol should be extracted.
ExtractMentionedEntity Indicates whether mentioned user/space should be extacted with id.
ExtractUrlWithoutProtocol Indicates whether URLs without protocol should be extracted.
ExtractUrlWithoutTopDomain Indicates whether URLs without top level domain (intranet urls) should be extracted.

Methods

ExtractCashtags(String) Extract $cashtag references from Tweet text.
ExtractCashtagsWithIndices(String) Extract $cashtag references from Tweet text.
ExtractHashtags(String) Extract #hashtag references from Tweet text.
ExtractHashtagsWithIndices(String) Extract #hashtag references from Tweet text.
ExtractMentions(String) Extract @username references from Tweet text. A mention is an occurance of @username anywhere in a Tweet.
ExtractMentionsWithIndices(String) Extract @username references from Tweet text. A mention is an occurance of @username anywhere in a Tweet.
ExtractReplyTo(String) Extract a @username reference from the beginning of Tweet text. A reply is an occurance of @username at the beginning of a Tweet, preceded by 0 or more spaces.
ExtractTokens(String) Extract URLs, #hashtags, @mentions, lists and $cashtags from a given text/tweet.
ExtractUrls(String) Extract URL references from Tweet text.
ExtractUrlsWithIndices(String) Extract URL references from Tweet text.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(Object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(Object, Nullable, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(Object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.