Module ImportFrom alias ImportFrom alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Num For NameStore SubscriptLoad NameLoad Slice Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad Num body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return Assign NameStore Str Assign NameStore Str Assign NameStore Str If BoolOpAnd CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareNotIn Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body If BoolOpOr Call AttributeLoad NameLoad attr NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad orelse If NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad If CompareGt NameLoad AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad NameLoad Slice Num NameLoad Str keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad Num body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr If UnaryOpNot NameLoad body Return For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd NameStore Num Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad AugAssignSub NameStore Num handlers ExceptHandler type TupleLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpMult AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Str attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword Call NameLoad Call NameLoad AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Num Assign NameStore BinOpAdd Str Call AttributeLoad BinOpAdd Call NameLoad NameLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str keyword AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str keyword AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore Str AugAssignAdd NameStore Call AttributeLoad NameLoad attr BinOpAdd Call NameLoad AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore IfExp AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str AugAssignAdd NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str keyword AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad keyword Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign AttributeStore AttributeLoad NameLoad attr attr ListLoad Assign NameStore Num For NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AugAssignAdd NameStore Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call NameLoad BinOpSub NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr BinOpAdd Str Str keyword AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If BoolOpAnd CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot NameLoad UnaryOpNot NameLoad body Return NameLoad orelse Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr Str keyword Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword Str Return Assign NameStore NameLoad If CompareLt NameLoad AttributeLoad NameLoad attr body TryExcept body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index BinOpSub NameLoad Num handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index BinOpSub NameLoad Num Return If BoolOpAnd UnaryOpNot NameLoad CompareIs AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str keyword NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad If NameLoad body Assign NameStore BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpAdd Str NameLoad keyword AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr If NameLoad body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore BinOpAdd NameLoad NameLoad AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore Call AttributeLoad NameLoad attr Str keyword AttributeLoad AttributeLoad NameLoad attr attr If CompareEq Call AttributeLoad NameLoad attr Str body TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr orelse Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad If NameLoad body Assign NameStore Str Assign NameStore NameLoad If NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore NameLoad If NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list
N/A __future__ print_function __future__ division N/A platform N/A re N/A sys N/A webbrowser N/A click compat HTMLParser compat urlparse config Config lib.haxor.haxor HackerNewsApi HTTPError InvalidItemID InvalidUserID lib.pretty_date_time pretty_date_time onions onions web_viewer WebViewer HackerNews N/A object N/A N/A Encapsulate Hacker News.

        :type COMMENT_INDENT: str (const)
        :param COMMENT_INDENT: The comment indent.

        :type COMMENT_UNSEEN: str (const)
        :param COMMENT_UNSEEN: The adornment for unseen
            comments..

        :type config: :class:`config.Config`
        :param config: An instance of `config.Config`.

        :type html: :class:`HTMLParser`
        :param html: An instance of `HTMLParser`.

        :type MAX_LIST_INDEX: int (const)
        :param MAX_LIST_INDEX: The maximum 1-based index value
            hn view will use to match item_ids.  Any value larger than
            MAX_LIST_INDEX will result in hn view treating that index as an
            actual post id..

        :type MAX_SNIPPET_LENGTH: int (const)
        :param MAX_SNIPPET_LENGTH: The max length of a comment snippet shown
            when filtering comments.

        :type hacker_news_api: :class:`haxor.HackerNewsApi`
        :param hacker_news_api: An instance of `haxor.HackerNewsApi`.

        :type QUERY_UNSEEN: str (const)
        :param foo: the query to show unseen comments.

        :type web_viewer: :class:`web_viewer.WebViewer`
        :param web_viewer: An instance of `web_viewer.WebViewer`.
     N/A COMMENT_INDENT N/A COMMENT_UNSEEN  [!] N/A MAX_LIST_INDEX 1000 N/A MAX_SNIPPET_LENGTH 60 N/A QUERY_UNSEEN \[!\] __init__ N/A N/A self N/A N/A N/A N/A self hacker_news_api N/A HackerNewsApi N/A N/A N/A N/A self html N/A N/A HTMLParser HTMLParser N/A N/A N/A N/A N/A self html HTMLParser N/A N/A self config N/A Config N/A N/A self web_viewer N/A WebViewer N/A ask N/A N/A self limit N/A N/A N/A Display Ask HN posts.

        :type limit: int
        :param limit: the number of items to show, optional, defaults to 10.
         N/A N/A N/A self print_items message N/A N/A self headlines_message Ask HN item_ids N/A N/A N/A self hacker_news_api ask_stories limit N/A best N/A N/A self limit N/A N/A N/A Display best posts.

        :type limit: int
        :param limit: the number of items to show, optional, defaults to 10.
         N/A N/A N/A self print_items message N/A N/A self headlines_message Best item_ids N/A N/A N/A self hacker_news_api best_stories limit N/A headlines_message N/A N/A self message N/A N/A N/A Create the "Fetching [message] Headlines..." string.

        :type message: str
        :param message: The headline message.

        :rtype: str
        :return: "Fetching [message] Headlines...".
         N/A N/A N/A Fetching {0} Headlines... format message N/A hiring_and_freelance N/A N/A self regex_query post_id N/A N/A N/A Display comments matching the monthly who is hiring post.

        Searches the monthly Hacker News who is hiring post for comments
        matching the given regex_query.  Defaults to searching the latest
        post based on your installed version of haxor-news.

        :type regex_query: str
        :param regex_query: The regex query to match.

        :type post_id: int
        :param post_id: the who is hiring post id.
                Optional, defaults to the latest post based on your installed
                version of haxor-news.
         N/A N/A N/A item N/A N/A N/A self hacker_news_api get_item post_id N/A N/A N/A self print_comments item regex_query comments_hide_non_matching True N/A N/A N/A N/A self config save_cache N/A N/A N/A InvalidItemID N/A N/A N/A N/A self print_item_not_found post_id N/A N/A IOError N/A N/A N/A N/A N/A sys stderr close N/A jobs N/A N/A self limit N/A N/A N/A Display job posts.

        :type limit: int
        :param limit: the number of items to show, optional, defaults to 10.
         N/A N/A N/A self print_items message N/A N/A self headlines_message Jobs item_ids N/A N/A N/A self hacker_news_api job_stories limit N/A new N/A N/A self limit N/A N/A N/A Display the latest posts.

        :type limit: int
        :param limit: the number of items to show, optional, defaults to 10.
         N/A N/A N/A self print_items message N/A N/A self headlines_message Latest item_ids N/A N/A N/A self hacker_news_api new_stories limit N/A onion N/A N/A self limit N/A N/A N/A Display onions.

        :type limit: int
        :param limit: the number of items to show, optional, defaults to 10.
         N/A N/A N/A click secho N/A N/A 
{h}
 format h N/A N/A self headlines_message Top Onion fg N/A N/A self config clr_title N/A index 1 N/A onion N/A onions N/A 0 limit N/A N/A formatted_index_title N/A N/A self format_index_title index onion N/A N/A N/A click echo formatted_index_title N/A index 1 N/A N/A N/A click echo N/A print_comment N/A N/A self item regex_query comments_hide_non_matching depth N/A False 0 N/A N/A Print the comments for the given item.

        :type item: :class:`haxor.Item`
        :param item: An instance of `haxor.Item`.

        :type regex_query: str
        :param regex_query: the regex query to match.

        :type comments_hide_non_matching: bool
        :param comments_hide_non_matching: determines whether to
                hide comments that don't match (False) or truncate them (True).

        :type depth: int
        :param depth: The current recursion depth, used to indent the comment.
         N/A N/A N/A item text None N/A N/A N/A header_color yellow N/A header_color_highlight magenta N/A header_adornment N/A N/A N/A N/A N/A self config item_cache None N/A N/A str N/A item item_id N/A N/A self config item_cache N/A N/A header_adornment N/A self COMMENT_UNSEEN N/A N/A N/A N/A N/A self config item_cache append N/A item item_id N/A show_comment True N/A N/A regex_query None N/A N/A N/A N/A N/A self match_comment_unseen regex_query header_adornment N/A N/A self match_regex item regex_query N/A N/A header_color header_color_highlight N/A N/A show_comment False N/A N/A formatted_heading formatted_comment N/A N/A self format_comment item depth header_color header_adornment N/A show_comment N/A N/A N/A N/A click echo formatted_heading color True N/A N/A N/A click echo formatted_comment color True N/A N/A comments_hide_non_matching N/A N/A N/A N/A click secho . nl False N/A N/A N/A N/A click echo formatted_heading color True N/A num_chars N/A len formatted_comment N/A N/A num_chars N/A self MAX_SNIPPET_LENGTH N/A N/A num_chars N/A self MAX_SNIPPET_LENGTH N/A N/A N/A click echo N/A N/A formatted_comment N/A 0 num_chars  [...] color True N/A print_comments N/A N/A self item regex_query comments_hide_non_matching depth N/A False 0 N/A N/A Recursively print comments and subcomments for the given item.

        :type item: :class:`haxor.Item`
        :param item: An instance of `haxor.Item`.

        :type regex_query: str
        :param regex_query: the regex query to match.

        :type comments_hide_non_matching: bool
        :param comments_hide_non_matching: determines whether to
                hide comments that don't match (False) or truncate them (True).

        :type depth: int
        :param depth: The current recursion depth, used to indent the comment.
         N/A N/A N/A self print_comment item regex_query comments_hide_non_matching depth N/A comment_ids N/A item kids N/A N/A comment_ids N/A N/A N/A comment_id comment_ids N/A N/A N/A N/A comment N/A N/A N/A self hacker_news_api get_item comment_id N/A depth 1 N/A N/A N/A self print_comments comment regex_query regex_query comments_hide_non_matching comments_hide_non_matching depth depth N/A depth 1 N/A N/A N/A N/A InvalidItemID HTTPError N/A N/A N/A N/A click echo N/A N/A N/A self print_item_not_found comment_id N/A format_comment N/A N/A self item depth header_color header_adornment N/A N/A N/A Format a given item's comment.

        :type item: :class:`haxor.Item`
        :param item: An instance of `haxor.Item`.

        :type depth: int
        :param depth: The current recursion depth, used to indent the comment.

        :type header_color: str
        :param header_color: The header color.

        :type header_adornment: str
        :param header_adornment: The header adornment.

        :rtype: tuple
        :return: * A string representing the formatted comment header.
                 * A string representing the formatted comment.
         N/A indent N/A N/A self COMMENT_INDENT depth N/A formatted_heading N/A N/A click style N/A N/A 
{i}{b} - {d}{h} format i indent b N/A item by d N/A str N/A pretty_date_time N/A item submission_time h header_adornment fg header_color N/A unescaped_text N/A N/A N/A self html unescape N/A item text N/A regex_paragraph N/A N/A re compile <p> N/A unescaped_text N/A N/A regex_paragraph sub N/A N/A click style N/A indent unescaped_text N/A regex_url N/A N/A re compile (<a href=(".*") .*</a>) N/A unescaped_text N/A N/A regex_url sub N/A N/A click style \2 fg N/A N/A self config clr_link unescaped_text N/A regex_tag N/A N/A re compile (<(.*)>.*?<\/\2>) N/A unescaped_text N/A N/A regex_tag sub N/A N/A click style \1 fg N/A N/A self config clr_tag unescaped_text N/A formatted_comment N/A N/A click wrap_text text unescaped_text initial_indent indent subsequent_indent indent N/A N/A formatted_heading formatted_comment N/A format_index_title N/A N/A self index title N/A N/A N/A Format and item's index and title.

        :type index: int
        :param index: The index for the given item, used with the
            hn view [index] commend.

        :type title: str
        :param title: The item's title.

        :rtype: str
        :return: The formatted index and title.
         N/A INDEX_PAD 5 N/A formatted_index N/A N/A N/A N/A N/A str index . ljust INDEX_PAD N/A formatted_index_title N/A N/A click style formatted_index fg N/A N/A self config clr_view_index N/A formatted_index_title N/A N/A click style N/A title fg N/A N/A self config clr_title N/A formatted_index_title N/A format_item N/A N/A self item index N/A N/A N/A Format an item.

        :type item: :class:`haxor.Item`
        :param item: An instance of `haxor.Item`.

        :type index: int
        :param index: The index for the given item, used with the
            hn view [index] commend.

        :rtype: str
        :return: The formatted item.
         N/A formatted_item N/A N/A self format_index_title index N/A item title N/A N/A N/A item url None N/A N/A netloc N/A N/A urlparse N/A item url netloc N/A netloc N/A N/A re sub www. netloc N/A formatted_item N/A N/A click style N/A N/A ( netloc ) fg N/A N/A self config clr_view_link N/A formatted_item N/A formatted_item N/A N/A click style N/A N/A str N/A item score  points  fg N/A N/A self config clr_num_points N/A formatted_item N/A N/A click style N/A N/A by  N/A item by fg N/A N/A self config clr_user N/A submission_time N/A str N/A pretty_date_time N/A item submission_time N/A formatted_item N/A N/A click style N/A submission_time fg N/A N/A self config clr_time N/A num_comments N/A N/A item descendants N/A str N/A item descendants 0 N/A formatted_item N/A N/A click style N/A N/A |  num_comments  comments fg N/A N/A self config clr_num_comments N/A formatted_item N/A print_item_not_found N/A N/A self item_id N/A N/A N/A Print a message the given item id was not found.

        :type item_id: int
        :param item_id: The item's id.
         N/A N/A N/A click secho N/A N/A Item with id {0} not found. format item_id fg red N/A print_items N/A N/A self message item_ids N/A N/A N/A Print the items.

        :type message: str
        :param message: A message to print out to the user before outputting
                the results.

        :type item_ids: iterable
        :param item_ids: A collection of items to print.
                Can be a list or dictionary.
         N/A N/A N/A self config item_ids N/A N/A index 1 N/A item_id item_ids N/A N/A N/A N/A item N/A N/A N/A self hacker_news_api get_item item_id N/A N/A item title N/A N/A formatted_item N/A N/A self format_item item index N/A N/A N/A N/A N/A self config item_ids append N/A item item_id N/A N/A N/A click echo formatted_item N/A index 1 N/A N/A N/A InvalidItemID N/A N/A N/A N/A self print_item_not_found item_id N/A N/A N/A N/A self config save_cache N/A N/A N/A self config show_tip N/A N/A N/A N/A click secho N/A N/A self tip_view N/A str N/A index 1 N/A tip_view N/A N/A self max_index N/A N/A N/A Create the tip about the view command.

        :type max_index: string
        :param max_index: The index uppor bound, used with the
            hn view [index] commend.

        :rtype: str
        :return: The formatted tip.
         N/A tip N/A N/A click style   Tip: View the page or comments for  fg N/A N/A self config clr_tooltip N/A tip N/A N/A click style 1 through  fg N/A N/A self config clr_view_index N/A tip N/A N/A click style N/A str max_index fg N/A N/A self config clr_view_index N/A tip N/A N/A click style  with the following command:
 fg N/A N/A self config clr_tooltip N/A tip N/A N/A click style     hn view [#]  fg N/A N/A self config clr_view_index N/A tip N/A N/A click style N/A optional: [-c] [-cr] [-cu] [-cq "regex"] [-ch] [-b] [--help] fg N/A N/A self config clr_tooltip N/A tip N/A match_comment_unseen N/A N/A self regex_query header_adornment N/A N/A N/A Determine if a comment is unseen based on the query and header.

        :type regex_query: str
        :param regex_query: The regex query to match.

        :type header_adornment: str
        :param header_adornment: The header adornment.

        :rtype: bool
        :return: Specifies if there is a match found.
         N/A N/A N/A regex_query N/A self QUERY_UNSEEN N/A header_adornment N/A self COMMENT_UNSEEN N/A N/A True N/A N/A False N/A match_regex N/A N/A self item regex_query N/A N/A N/A Determine if there is a match with the given regex_query.

        :type item: :class:`haxor.Item`
        :param item: An instance of `haxor.Item`.

        :type regex_query: str
        :param regex_query: The regex query to match.

        :rtype: bool
        :return: Specifies if there is a match found.
         N/A match_time N/A N/A re search regex_query N/A str N/A pretty_date_time N/A item submission_time N/A match_user N/A N/A re search regex_query N/A item by N/A match_text N/A N/A re search regex_query N/A item text N/A N/A N/A match_text N/A match_user N/A match_time N/A N/A False N/A N/A True N/A show N/A N/A self limit N/A N/A N/A Display Show HN posts.

        :type limit: int
        :param limit: the number of items to show, optional, defaults to 10.
         N/A N/A N/A self print_items message N/A N/A self headlines_message Show HN item_ids N/A N/A N/A self hacker_news_api show_stories limit N/A top N/A N/A self limit N/A N/A N/A Display the top posts.

        :type limit: int
        :param limit: the number of items to show, optional, defaults to 10.
         N/A N/A N/A self print_items message N/A N/A self headlines_message Top item_ids N/A N/A N/A self hacker_news_api top_stories limit N/A user N/A N/A self user_id submission_limit N/A N/A N/A Display basic user info and submitted posts.

        :type user_id: str.
        :param user_id: The user'd login name.

        :type submission_limit: int
        :param submission_limit: the number of submissions to show.
                Optional, defaults to 10.
         N/A N/A N/A user N/A N/A N/A self hacker_news_api get_user user_id N/A N/A N/A click secho 
User Id:  nl False fg N/A N/A self config clr_general N/A N/A N/A click secho user_id fg N/A N/A self config clr_user N/A N/A N/A click secho Created:  nl False fg N/A N/A self config clr_general N/A N/A N/A click secho N/A str N/A user created fg N/A N/A self config clr_user N/A N/A N/A click secho Karma:  nl False fg N/A N/A self config clr_general N/A N/A N/A click secho N/A str N/A user karma fg N/A N/A self config clr_user N/A N/A N/A self print_items User submissions: N/A N/A user submitted N/A 0 submission_limit N/A N/A N/A InvalidUserID N/A N/A N/A N/A self print_item_not_found user_id N/A view N/A N/A self index comments_query comments comments_hide_non_matching browser N/A N/A N/A View the given index in a browser.

        Uses ids from ~/.haxornewsconfig stored in self.config.item_ids.
        If url is True, opens a browser with the url based on the given index.
        Else, displays the post's comments.

        :param index: The index for the given item, used with the
            hn view [index] commend.

        :type comments: bool
        :param comments: Determines whether to view the comments
                or a simplified version of the post url.

        :type comments_hide_non_matching: bool
        :param comments_hide_non_matching: determines whether to
                hide comments that don't match (False) or truncate them (True).

        :type browser: bool
        :param browser: determines whether to view the url in a browser.
         N/A N/A N/A N/A self config item_ids None N/A N/A N/A N/A click secho There are no posts indexed, run a command such as hn top first fg red N/A N/A item_id index N/A N/A index N/A self MAX_LIST_INDEX N/A N/A N/A N/A item_id N/A N/A N/A self config item_ids N/A N/A index 1 N/A N/A N/A IndexError N/A N/A N/A N/A self print_item_not_found item_id N/A N/A N/A N/A item N/A N/A N/A self hacker_news_api get_item item_id N/A N/A N/A InvalidItemID N/A N/A N/A N/A self print_item_not_found N/A N/A N/A self config item_ids N/A N/A index 1 N/A N/A N/A N/A comments N/A N/A item url None N/A N/A N/A N/A click secho 
No url associated with post. nl False fg N/A N/A self config clr_general N/A comments True N/A comments N/A N/A comments_url N/A https://news.ycombinator.com/item?id= N/A str N/A item item_id N/A N/A N/A click secho N/A 
Fetching Comments from  comments_url fg N/A N/A self config clr_general N/A browser N/A N/A N/A N/A webbrowser open comments_url N/A N/A N/A N/A N/A N/A self print_comments item regex_query comments_query comments_hide_non_matching comments_hide_non_matching N/A N/A N/A click echo N/A N/A N/A IOError N/A N/A N/A N/A N/A sys stderr close N/A N/A N/A N/A self config save_cache N/A N/A N/A N/A click secho N/A N/A 
Opening  N/A item url ... fg N/A N/A self config clr_general N/A browser N/A N/A N/A N/A webbrowser open N/A item url N/A N/A contents N/A N/A N/A self web_viewer generate_url_contents N/A item url N/A header N/A N/A click style N/A N/A Viewing  N/A item url fg N/A N/A self config clr_general N/A contents N/A header contents N/A contents N/A N/A click style 
View this article in a browser with the -b/--browser flag.
 fg N/A N/A self config clr_general N/A contents N/A N/A click style 
Press q to quit viewing this article.
 fg N/A N/A self config clr_general N/A N/A N/A N/A platform system Windows N/A N/A N/A N/A N/A N/A click echo contents N/A N/A N/A IOError N/A N/A N/A N/A N/A sys stderr close N/A N/A N/A N/A click echo_via_pager contents N/A N/A N/A click echo N/A view_setup N/A N/A self index comments_regex_query comments comments_recent comments_unseen comments_hide_non_matching clear_cache browser N/A N/A N/A Set up the call to view the given index comments or url.

        This method is meant to be called after a command that outputs a
        table of posts.

        :type index: int
        :param index: The index for the given item, used with the
            hn view [index] commend.

        :type regex_query: str
        :param regex_query: The regex query to match.

        :type comments: bool
        :param comments: Determines whether to view the comments
                or a simplified version of the post url.

        :type comments_recent: bool
        :param comments_recent: Determines whether to view only
                recently comments (posted within the past 59 minutes or less).

        :type comments_unseen: bool
        :param comments_unseen: Determines whether to view only
                comments that you have not yet seen.

        :type comments_hide_non_matching: bool
        :param comments_hide_non_matching: determines whether to
                hide comments that don't match (False) or truncate them (True).

        :type clear_cache: bool
        :param clear_cache: foos.

        :type browser: bool
        :param browser: Determines whether to clear the comment cache before
            running the view command.
         N/A N/A comments_regex_query None N/A N/A comments True N/A comments_recent N/A N/A comments_regex_query seconds ago|minutes ago N/A comments True N/A comments_unseen N/A N/A comments_regex_query N/A self QUERY_UNSEEN N/A comments True N/A clear_cache N/A N/A N/A N/A N/A self config clear_item_cache N/A N/A N/A self view N/A int index comments_regex_query comments comments_hide_non_matching browser N/A N/A