Class: ThreadFilterBuilder

ThreadFilterBuilder()

A thread contains global information about the content of the whole page and its content. A thread can contain multiple posts grouped together.

Constructor

new ThreadFilterBuilder()

Source:

Methods

build() → {Filter}

Source:
Returns:
Type
Filter

crawled(c, comparator) → {this}

A time-stamp (in milliseconds) enable you to filter posts that were crawled before or after certain date/time. Return posts crawled after Thu, 30 Mar 2017 09:16:28 GMT: crawled:>1490865388
Parameters:
Name Type Description
c Number | Date
comparator String
Source:
Returns:
Type
this

published(p, comparator) → {this}

A time-stamp (in milliseconds) enable you to filter threads that were published before or after certain date/time. Return threads published after Thu, 30 Mar 2017 09:16:28 GMT: thread.published:>1490865388
Parameters:
Name Type Description
p Number | Date
comparator String
Source:
Returns:
Type
this

section_title(s) → {this}

A textual Boolean query describing the keywords that should (or shouldn’t) appear in the site’s section where the post was published
Parameters:
Name Type Description
s String
Source:
Returns:
Type
this

spam_score(ss, comparator) → {this}

A score value between 0 to 1, indicating how spammy the thread text is. Return threads with spam score lower or equals to 0.8: spam_score:<=0.8
Parameters:
Name Type Description
ss Number
comparator String
Source:
Returns:
Type
this

title(t) → {ThreadFilter}

A textual Boolean query describing the keywords that should (or shouldn’t) appear in the thread title.
Parameters:
Name Type Description
t String
Source:
Returns:
Type
ThreadFilter

url(u) → {this}

Get all the posts of a specific thread (note that you must escape the http:// part of the URL like so: http\:\/\/).
Parameters:
Name Type Description
u String
Source:
Returns:
Type
this