fn special_search(&self, searching_tag: &str) -> Vec<PostEntry> {
        let mut page: u16 = 1;
        let mut posts: Vec<PostEntry> = vec![];
        let mut filtered = 0;
        let mut invalid_posts = 0;
        loop {
            let mut searched_posts = self.request_sender.bulk_search(searching_tag, page).posts;
            if searched_posts.is_empty() {
                break;
            }

            filtered += self.filter_posts_with_blacklist(&mut searched_posts);
            invalid_posts += self.remove_invalid_posts(&mut searched_posts);

            searched_posts.reverse();
            posts.append(&mut searched_posts);
            page += 1;
        }

        if filtered > 0 {
            info!(
                "Filtered {} total blacklisted posts from search...",
                console::style(filtered).cyan().italic()
            );
        }

        if invalid_posts > 0 {
            info!(
                "Filtered {} total invalid posts from search...",
                console::style(invalid_posts).cyan().italic()
            );
        }

        posts
    }
/// Performs a special search that grabs all posts tied to the searching tag.
Performs a special search that grabs all posts tied to the searching tag.
Performs a special search that grabs all posts tied to the searching tag .
fn special_search(&self, searching_tag: &str) -> Vec<PostEntry> {
        let mut page: u16 = 1;
        let mut posts: Vec<PostEntry> = vec![];
        let mut filtered = 0;
        let mut invalid_posts = 0;
        loop {
            let mut searched_posts = self.request_sender.bulk_search(searching_tag, page).posts;
            if searched_posts.is_empty() {
                break;
            }
            filtered += self.filter_posts_with_blacklist(&mut searched_posts);
            invalid_posts += self.remove_invalid_posts(&mut searched_posts);
            searched_posts.reverse();
            posts.append(&mut searched_posts);
            page += 1;
        }
        if filtered > 0 {
            info!(
                "Filtered {} total blacklisted posts from search...",
                console::style(filtered).cyan().italic()
            );
        }
        if invalid_posts > 0 {
            info!(
                "Filtered {} total invalid posts from search...",
                console::style(invalid_posts).cyan().italic()
            );
        }
        posts
    }
fn special_search ( & self , searching_tag : & str ) -> Vec < PostEntry > { let mut page : u16 = 1 ; let mut posts : Vec < PostEntry > = vec ! [ ] ; let mut filtered = 0 ; let mut invalid_posts = 0 ; loop { let mut searched_posts = self . request_sender . bulk_search ( searching_tag , page ) . posts ; if searched_posts . is_empty ( ) { break ; } filtered += self . filter_posts_with_blacklist ( & mut searched_posts ) ; invalid_posts += self . remove_invalid_posts ( & mut searched_posts ) ; searched_posts . reverse ( ) ; posts . append ( & mut searched_posts ) ; page += 1 ; } if filtered > 0 { info ! ( " " console style ( filtered ) cyan ( ) italic ( ) ) ; } if invalid_posts > 0 { info ! ( " " console style ( invalid_posts ) cyan ( ) italic ( ) ) ; } posts }
Performs a special search that grabs all posts tied to the searching tag.
Performs a special search that grabs all posts tied to the searching tag .
&self
searching_tag
&str
&self
searching_tag
&str