Module Expr Str Import alias Import alias Import alias Import alias TryExcept body ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias handlers ExceptHandler type NameLoad body ImportFrom alias alias alias ImportFrom alias alias ImportFrom alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Print Str Expr Call AttributeLoad NameLoad attr Num If CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Assign NameStore NameLoad Assign NameStore Lambda arguments args NameParam defaults Call NameLoad NameLoad orelse FunctionDef arguments args NameParam defaults body If Call NameLoad NameLoad NameLoad body Return Call AttributeLoad NameLoad attr Str orelse Return Call NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict Str Str Str Str Num Num Num Num FunctionDef arguments args NameParam NameParam defaults NameLoad body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body If CompareNotIn NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr body Return If CompareGt SubscriptLoad AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr body Return Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Dict Str Str Str Str Str Str Str Str Str Str Str ListLoad NameLoad Str Num ListLoad NameLoad Str Num ListLoad NameLoad Str Num ListLoad Num Str Num ListLoad Num Str Num ListLoad NameLoad Str Num ListLoad NameLoad Str Num ListLoad NameLoad Str Num ListLoad NameLoad Str Num ListLoad NameLoad Str Num ListLoad NameLoad Str Num Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num NameLoad orelse Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad ListComp Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign NameStore BinOpMod Str NameLoad Assign NameStore ListLoad For NameStore NameLoad body If CompareIsNot SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod NameLoad TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call NameLoad ListComp TupleLoad NameLoad SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Assign NameStore ListLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr ListComp Call NameLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num comprehension NameStore NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BoolOpOr AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If SubscriptLoad AttributeLoad NameLoad attr Index Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If SubscriptLoad AttributeLoad NameLoad attr Index Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str keyword Dict Str Str If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If BoolOpAnd CompareIsNot NameLoad NameLoad CompareGt Call NameLoad NameLoad Num body TryExcept body Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr Index Num Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad Str body Continue If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad Str attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str If Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str If CompareEq AttributeLoad NameLoad attr Str body For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad Str body Continue If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad Str body Continue If BoolOpOr CompareNotEq AttributeLoad NameLoad attr Str CompareIs Call AttributeLoad NameLoad attr Str NameLoad body Continue If Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str body If BoolOpAnd Call NameLoad NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Assign NameStore SubscriptLoad Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str Num Index Num For NameStore Call AttributeLoad NameLoad attr Str body If Call AttributeLoad NameLoad attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Slice Num If Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Str body If BoolOpAnd Call NameLoad NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str If Call AttributeLoad Call AttributeLoad NameLoad attr attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BoolOpOr Call AttributeLoad NameLoad attr Str ListLoad If CompareNotEq Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Return CompareIn NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body TryExcept body Return Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call AttributeLoad NameLoad attr Str body Return NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr Str body Assign NameStore BinOpAdd Str NameLoad Return BinOpAdd AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Num If CompareNotEq Call NameLoad NameLoad Num body Return NameLoad Assign NameStore ListLoad For NameStore Call AttributeLoad SubscriptLoad NameLoad Index Num attr Str body If UnaryOpNot Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad Return BinOpAdd BinOpAdd SubscriptLoad NameLoad Index Num Str Call AttributeLoad Str attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad Str body Continue If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str If Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str IfExp CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad For NameStore NameLoad body If UnaryOpNot Call NameLoad NameLoad Str body Continue If Call AttributeLoad Call AttributeLoad Call NameLoad NameLoad attr attr Str body If Call AttributeLoad NameLoad attr Str Dict Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Dict Str Str If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr NameLoad Str body TryExcept body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad Str attr Call AttributeLoad NameLoad attr keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Str attr Str body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str handlers ExceptHandler body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str body Expr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call AttributeLoad Str attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If Call AttributeLoad NameLoad attr Str Dict Str Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr Str Dict Str Str attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str IfExp CompareGt Call NameLoad NameLoad Num SubscriptLoad NameLoad Index Num NameLoad If Call AttributeLoad NameLoad attr Str Dict Str Str body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str Dict Str Str If Call AttributeLoad NameLoad attr Str Dict Str Str body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str Dict Str Str attr keyword NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad NameLoad NameLoad Num Return Assign NameStore BinOpAdd Call NameLoad ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad ListLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Return SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If CompareIn NameLoad AttributeLoad NameLoad attr body Assign SubscriptStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareLt Call AttributeLoad NameLoad attr Str Num body Return NameLoad Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr If CompareGt Call AttributeLoad NameLoad attr Str Num body Assign NameStore BinOpAdd BinOpAdd Str NameLoad Str Expr Call AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad Str attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Str Str FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str Num Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call NameLoad Str Assign NameStore Dict Str Str AttributeLoad NameLoad attr BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Call NameLoad NameLoad Return BinOpMod AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Str Str Str Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Str Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If BoolOpAnd CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs AttributeLoad NameLoad attr NameLoad CompareIs SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad CompareIs SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad body Raise Call NameLoad Str Assign NameStore NameLoad Assign NameStore NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str BoolOpOr AttributeLoad NameLoad attr Str BoolOpOr NameLoad Str BoolOpOr NameLoad Str BoolOpOr AttributeLoad NameLoad attr Str IfExp AttributeLoad NameLoad attr Str Str BoolOpOr AttributeLoad NameLoad attr Str BoolOpOr AttributeLoad NameLoad attr Str BoolOpOr SubscriptLoad AttributeLoad NameLoad attr Index Num Str BoolOpOr SubscriptLoad AttributeLoad NameLoad attr Index Num Str IfExp AttributeLoad NameLoad attr Str Str IfExp AttributeLoad NameLoad attr Str Str BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index NameLoad Call NameLoad Call NameLoad NameLoad Return BinOpMod AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If BoolOpOr CompareLt NameLoad Num CompareGt NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd BinOpAdd AttributeLoad NameLoad attr Str Str Str Str Str Str Str Str Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpAnd CompareIsNot AttributeLoad NameLoad attr NameLoad CompareIsNot AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad If BoolOpAnd AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If BoolOpOr CompareIs NameLoad NameLoad UnaryOpNot Call AttributeLoad NameLoad attr body Return NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Str keyword Str If CompareIs NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Str keyword Dict Str Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Str Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str keyword Dict Str Str Str Str If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str Str Return NameLoad Assign NameStore Dict Str Str Str Str SubscriptLoad NameLoad Index Str AttributeLoad NameLoad attr Str Str If CompareNotEq AttributeLoad NameLoad attr Num body Assign SubscriptStore NameLoad Index Str Str Assign SubscriptStore NameLoad Index Str BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword BinOpMod AttributeLoad NameLoad attr NameLoad keyword Str keyword Str If CompareIs NameLoad NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr Str Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Str keyword Str If CompareIs NameLoad NameLoad body Return Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs SubscriptLoad NameLoad Index Str NameLoad body Return NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr Str Str Assign NameStore Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Str keyword Str keyword Str If CompareIs NameLoad NameLoad body Return NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Str If CompareIs NameLoad NameLoad body Assign NameStore Str TryExcept body Expr Call AttributeLoad NameLoad attr Str BinOpMod Str Call NameLoad NameLoad Assign NameStore Call NameLoad keyword NameLoad keyword Dict Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpAdd Str BinOpMult Str Num Expr Call AttributeLoad NameLoad attr Str BinOpMod Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpMod Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpAdd Str Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpAdd Str Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str BinOpAdd Str BinOpMult Str Num Return NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str BinOpAdd NameLoad BinOpMod Str NameLoad Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam defaults body If NameLoad body Assign NameStore Num If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad ListComp Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword Lambda arguments args NameParam defaults SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad BinOpAdd ListComp Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad ListLoad NameLoad Assign NameStore BinOpMod Str Call NameLoad Num BinOpSub NameLoad Num For NameStore NameLoad body If CompareIsNot SubscriptLoad NameLoad Index Num NameLoad body Print BinOpMod NameLoad TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num If CompareGt Call NameLoad NameLoad Num body Print Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Print BinOpAdd Call NameLoad Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Str body Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Print Call NameLoad NameLoad Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr For NameStore NameLoad body Print BinOpAdd Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Return Num If CompareGt AttributeLoad NameLoad attr Num body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str BinOpMod Str AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Print BinOpMod Str AttributeLoad NameLoad attr Return Num If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Print Str Return Num Assign NameStore Call NameLoad Assign NameStore Call NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body Print Str Return Num Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr orelse Assign NameStore Call NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad keyword NameLoad orelse If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call NameLoad NameLoad orelse Expr Call NameLoad NameLoad keyword AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Return Num decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad
N/A N/A 
This module provides classes for querying Google Scholar and parsing
returned results. It currently *only* processes the first results
page. It is not a recursive crawler.
 N/A optparse N/A os N/A sys N/A re N/A N/A urllib.request HTTPCookieProcessor Request build_opener urllib.parse quote unquote http.cookiejar MozillaCookieJar N/A N/A N/A ImportError N/A urllib2 Request build_opener HTTPCookieProcessor urllib quote unquote cookielib MozillaCookieJar N/A N/A bs4 BeautifulSoup N/A N/A N/A ImportError N/A N/A N/A BeautifulSoup BeautifulSoup N/A N/A N/A ImportError N/A N/A We need BeautifulSoup, sorry... N/A N/A N/A sys exit 1 N/A N/A N/A N/A sys version_info N/A 0 3 N/A N/A unicode str N/A encode N/A N/A N/A s N/A N/A unicode s N/A encode N/A N/A s N/A N/A N/A N/A isinstance s basestring N/A N/A N/A N/A s encode utf-8 N/A N/A N/A str s N/A Error N/A Exception N/A N/A Base class for any Scholar error. N/A FormatError N/A Error N/A N/A A query argument or setting was formatted incorrectly. N/A QueryArgumentError N/A Error N/A N/A A query did not have a suitable set of arguments. N/A ScholarConf N/A object N/A N/A Helper class for global settings. N/A VERSION 2.10 N/A LOG_LEVEL 1 N/A MAX_PAGE_RESULTS 20 N/A SCHOLAR_SITE http://scholar.google.com N/A USER_AGENT Mozilla/5.0 (X11; Linux x86_64; rv:27.0) Gecko/20100101 Firefox/27.0 N/A COOKIE_JAR_FILE None N/A ScholarUtils N/A object N/A N/A A wrapper for various utensils that come in handy. N/A LOG_LEVELS N/A error warn info debug 1 2 3 4 ensure_int N/A N/A arg msg N/A None N/A N/A N/A N/A N/A int arg N/A N/A N/A ValueError N/A N/A N/A FormatError msg N/A staticmethod log N/A N/A level msg N/A N/A N/A N/A level N/A N/A N/A ScholarUtils LOG_LEVELS keys N/A N/A N/A N/A N/A N/A ScholarUtils LOG_LEVELS N/A level N/A ScholarConf LOG_LEVEL N/A N/A N/A N/A N/A N/A sys stderr write N/A [%5s]  %s N/A N/A N/A level upper N/A msg N/A N/A N/A N/A sys stderr flush N/A staticmethod N/A ScholarArticle N/A object N/A N/A 
    A class representing articles listed on Google Scholar.  The class
    provides basic dictionary-like behavior.
     __init__ N/A N/A self N/A N/A N/A N/A self attrs N/A title url year num_citations num_versions cluster_id url_pdf url_citations url_versions url_citation excerpt N/A None Title 0 N/A None URL 1 N/A None Year 2 N/A 0 Citations 3 N/A 0 Versions 4 N/A None Cluster ID 5 N/A None PDF link 6 N/A None Citations list 7 N/A None Versions list 8 N/A None Citation link 9 N/A None Excerpt 10 N/A N/A self citation_data None N/A __getitem__ N/A N/A self key N/A N/A N/A N/A key N/A self attrs N/A N/A N/A N/A N/A self attrs N/A key N/A 0 N/A None N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A self attrs N/A __setitem__ N/A N/A self key item N/A N/A N/A N/A key N/A self attrs N/A N/A N/A N/A N/A self attrs N/A key N/A 0 item N/A N/A N/A N/A self attrs N/A key N/A item key N/A len N/A self attrs N/A __delitem__ N/A N/A self key N/A N/A N/A N/A key N/A self attrs N/A N/A N/A N/A self attrs N/A key N/A set_citation_data N/A N/A self citation_data N/A N/A N/A N/A self citation_data citation_data N/A as_txt N/A N/A self N/A N/A N/A items N/A sorted N/A list N/A N/A N/A self attrs values key N/A N/A N/A item N/A N/A item N/A 2 N/A max_label_len N/A max N/A N/A len N/A str N/A item N/A 1 N/A item items N/A fmt N/A %%%ds %%s max_label_len N/A res N/A N/A item items N/A N/A N/A N/A item N/A 0 None N/A N/A N/A N/A res append N/A fmt N/A N/A item N/A 1 N/A item N/A 0 N/A N/A N/A join res N/A as_csv N/A N/A self header sep N/A False | N/A N/A keys N/A N/A pair N/A 0 N/A pair N/A sorted N/A N/A key N/A val N/A 2 N/A N/A key val N/A list N/A N/A N/A self attrs items key N/A N/A N/A pair N/A N/A pair N/A 1 N/A res N/A N/A header N/A N/A N/A N/A res append N/A N/A sep join keys N/A N/A N/A res append N/A N/A sep join N/A N/A unicode N/A N/A N/A self attrs N/A key N/A 0 N/A key keys N/A N/A N/A join res N/A as_citation N/A N/A self N/A N/A N/A 
        Reports the article in a standard citation format. This works only
        if you have configured the querier to retrieve a particular
        citation export format. (See ScholarSettings.)
         N/A N/A N/A self citation_data N/A N/A ScholarArticleParser N/A object N/A N/A 
    ScholarArticleParser can parse HTML document strings obtained from
    Google Scholar. This is a base class; concrete implementations
    adapting to tweaks made by Google over time follow below.
     __init__ N/A N/A self site N/A None N/A N/A N/A self soup None N/A N/A self article None N/A N/A self site N/A site N/A ScholarConf SCHOLAR_SITE N/A N/A self year_re N/A N/A re compile \b(?:20|19)\d{2}\b N/A handle_article N/A N/A self art N/A N/A N/A 
        The parser invokes this callback on each article parsed
        successfully.  In this base class, the callback does nothing.
         N/A handle_num_results N/A N/A self num_results N/A N/A N/A 
        The parser invokes this callback if it determines the overall
        number of results, as reported on the parsed results page. The
        base class implementation does nothing.
         N/A parse N/A N/A self html N/A N/A N/A 
        This method initiates parsing of HTML content, cleans resulting
        content as needed, and notifies the parser instance of
        resulting instances via the handle_article callback.
         N/A N/A self soup N/A BeautifulSoup html N/A N/A N/A self _parse_globals N/A div N/A N/A N/A self soup findAll N/A ScholarArticleParser _tag_results_checker N/A N/A N/A N/A self _parse_article div N/A N/A N/A self _clean_article N/A N/A N/A self article N/A title N/A N/A N/A N/A self handle_article N/A self article N/A _clean_article N/A N/A self N/A N/A N/A 
        This gets invoked after we have parsed an article, to do any
        needed cleanup/polishing before we hand off the resulting
        article.
         N/A N/A N/A self article N/A title N/A N/A N/A N/A self article N/A title N/A N/A N/A N/A self article N/A title strip N/A _parse_globals N/A N/A self N/A N/A N/A tag N/A N/A N/A self soup find name div attrs N/A id gs_ab_md N/A N/A tag None N/A N/A raw_text N/A N/A tag findAll text True N/A N/A N/A raw_text None N/A N/A len raw_text 0 N/A N/A N/A N/A num_results N/A N/A N/A N/A raw_text N/A 0 split N/A 1 N/A num_results N/A N/A num_results replace , N/A num_results N/A int num_results N/A N/A N/A self handle_num_results num_results N/A N/A N/A N/A IndexError ValueError N/A N/A N/A _parse_article N/A N/A self div N/A N/A N/A N/A self article N/A ScholarArticle N/A tag div N/A N/A N/A N/A hasattr tag name N/A N/A N/A N/A N/A N/A tag name div N/A N/A self _tag_has_class tag gs_rt N/A tag h3 N/A N/A tag h3 a N/A N/A N/A N/A self article N/A title N/A N/A join N/A N/A N/A N/A tag h3 a findAll text True N/A N/A N/A self article N/A url N/A N/A self _path2url N/A N/A N/A tag h3 a N/A href N/A N/A N/A N/A N/A self article N/A url endswith .pdf N/A N/A N/A N/A self article N/A url_pdf N/A N/A self article N/A url N/A N/A N/A tag name font N/A N/A tag2 tag N/A N/A N/A N/A hasattr tag2 name N/A N/A N/A N/A N/A N/A tag2 name span N/A N/A self _tag_has_class tag2 gs_fl N/A N/A N/A N/A self _parse_links tag2 N/A _parse_links N/A N/A self span N/A N/A N/A tag span N/A N/A N/A N/A hasattr tag name N/A N/A N/A N/A N/A N/A tag name a N/A N/A N/A tag get href None N/A N/A N/A N/A N/A N/A N/A tag get href startswith /scholar?cites N/A N/A N/A N/A hasattr tag string N/A N/A N/A tag string startswith Cited by N/A N/A N/A N/A self article N/A num_citations N/A N/A self _as_int N/A N/A N/A N/A tag string split N/A -1 N/A N/A N/A self article N/A url_citations N/A N/A self _strip_url_arg num N/A N/A self _path2url N/A N/A tag get href N/A args N/A N/A N/A N/A N/A self article N/A url_citations split ? 1 N/A 1 N/A arg N/A N/A args split & N/A N/A N/A N/A arg startswith cites= N/A N/A N/A N/A self article N/A cluster_id N/A arg N/A 6 N/A N/A N/A N/A N/A tag get href startswith /scholar?cluster N/A N/A N/A N/A hasattr tag string N/A N/A N/A tag string startswith All  N/A N/A N/A N/A self article N/A num_versions N/A N/A self _as_int N/A N/A N/A N/A tag string split N/A 1 N/A N/A N/A self article N/A url_versions N/A N/A self _strip_url_arg num N/A N/A self _path2url N/A N/A tag get href N/A N/A N/A N/A N/A tag getText startswith Import N/A N/A N/A N/A self article N/A url_citation N/A N/A self _path2url N/A N/A tag get href N/A _tag_has_class N/A N/A tag klass N/A N/A N/A 
        This predicate function checks whether a BeatifulSoup Tag instance
        has a class attribute.
         N/A res N/A N/A N/A tag get class N/A N/A N/A N/A type res list N/A N/A res N/A N/A res split N/A N/A klass res N/A staticmethod _tag_results_checker N/A N/A tag N/A N/A N/A N/A N/A N/A tag name div N/A N/A ScholarArticleParser _tag_has_class tag gs_r N/A staticmethod _as_int N/A N/A obj N/A N/A N/A N/A N/A N/A int obj N/A N/A N/A ValueError N/A N/A None N/A staticmethod _path2url N/A N/A self path N/A N/A N/A Helper, returns full URL in case path isn't one. N/A N/A N/A path startswith http:// N/A N/A path N/A N/A N/A N/A path startswith / N/A N/A path N/A / path N/A N/A N/A self site path N/A _strip_url_arg N/A N/A self arg url N/A N/A N/A Helper, removes a URL-encoded argument, if present. N/A parts N/A N/A url split ? 1 N/A N/A N/A len parts 2 N/A N/A url N/A res N/A N/A part N/A N/A N/A parts N/A 1 split & N/A N/A N/A N/A N/A part startswith N/A arg = N/A N/A N/A N/A res append part N/A N/A N/A N/A parts N/A 0 ? N/A N/A & join res N/A N/A ScholarArticleParser120201 N/A ScholarArticleParser N/A N/A 
    This class reflects update to the Scholar results page layout that
    Google recently.
     _parse_article N/A N/A self div N/A N/A N/A N/A self article N/A ScholarArticle N/A tag div N/A N/A N/A N/A hasattr tag name N/A N/A N/A N/A N/A N/A tag name h3 N/A N/A self _tag_has_class tag gs_rt N/A tag a N/A N/A N/A N/A self article N/A title N/A N/A join N/A N/A N/A tag a findAll text True N/A N/A N/A self article N/A url N/A N/A self _path2url N/A N/A tag a N/A href N/A N/A N/A N/A N/A self article N/A url endswith .pdf N/A N/A N/A N/A self article N/A url_pdf N/A N/A self article N/A url N/A N/A N/A N/A tag name div N/A N/A self _tag_has_class tag gs_a N/A N/A year N/A N/A N/A self year_re findall N/A tag text N/A N/A N/A self article N/A year N/A N/A N/A len year 0 N/A year N/A 0 None N/A N/A N/A N/A tag name div N/A N/A self _tag_has_class tag gs_fl N/A N/A N/A N/A self _parse_links tag N/A N/A ScholarArticleParser120726 N/A ScholarArticleParser N/A N/A 
    This class reflects update to the Scholar results page layout that
    Google made 07/26/12.
     _parse_article N/A N/A self div N/A N/A N/A N/A self article N/A ScholarArticle N/A tag div N/A N/A N/A N/A hasattr tag name N/A N/A N/A N/A N/A N/A N/A N/A str tag lower find .pdf N/A N/A N/A N/A tag find div N/A class gs_ttss N/A N/A N/A N/A self _parse_links N/A N/A tag find div N/A class gs_ttss N/A N/A N/A N/A tag name div N/A N/A self _tag_has_class tag gs_ri N/A N/A N/A N/A atag N/A N/A tag h3 a N/A N/A N/A self article N/A title N/A N/A join N/A N/A atag findAll text True N/A N/A N/A self article N/A url N/A N/A self _path2url N/A atag N/A href N/A N/A N/A N/A N/A self article N/A url endswith .pdf N/A N/A N/A N/A self article N/A url_pdf N/A N/A self article N/A url N/A N/A N/A N/A span N/A N/A N/A tag h3 findAll name span N/A N/A N/A N/A span clear N/A N/A N/A self article N/A title N/A N/A join N/A N/A N/A tag h3 findAll text True N/A N/A N/A tag find div N/A class gs_a N/A N/A year N/A N/A N/A self year_re findall N/A N/A N/A tag find div N/A class gs_a text N/A N/A N/A self article N/A year N/A N/A N/A len year 0 N/A year N/A 0 None N/A N/A N/A tag find div N/A class gs_fl N/A N/A N/A N/A self _parse_links N/A N/A tag find div N/A class gs_fl N/A N/A N/A tag find div N/A class gs_rs N/A N/A raw_text N/A N/A N/A N/A tag find div N/A class gs_rs findAll text True N/A N/A N/A len raw_text 0 N/A N/A raw_text N/A N/A join raw_text N/A raw_text N/A N/A raw_text replace N/A N/A N/A self article N/A excerpt raw_text N/A N/A ScholarQuery N/A object N/A N/A 
    The base class for any kind of results query we send to Scholar.
     __init__ N/A N/A self N/A N/A N/A N/A self url None N/A N/A self num_results N/A ScholarConf MAX_PAGE_RESULTS N/A N/A self attrs N/A N/A set_num_page_results N/A N/A self num_page_results N/A N/A N/A msg maximum number of results on page must be numeric N/A N/A self num_results N/A N/A ScholarUtils ensure_int num_page_results msg N/A get_url N/A N/A self N/A N/A N/A 
        Returns a complete, submittable URL string for this particular
        query instance. The URL and its arguments will vary depending
        on the query.
         N/A None N/A _add_attribute_type N/A N/A self key label default_value N/A None N/A N/A 
        Adds a new type of attribute to the list of attributes
        understood by this query. Meant to be used by the constructors
        in derived classes.
         N/A N/A N/A len N/A self attrs 0 N/A N/A N/A N/A self attrs N/A key N/A default_value label 0 N/A N/A idx N/A N/A max N/A N/A item N/A 2 N/A item N/A N/A N/A self attrs values 1 N/A N/A N/A self attrs N/A key N/A default_value label idx N/A __getitem__ N/A N/A self key N/A N/A N/A Getter for attribute value. Returns None if no such key. N/A N/A key N/A self attrs N/A N/A N/A N/A N/A self attrs N/A key N/A 0 N/A None N/A __setitem__ N/A N/A self key item N/A N/A N/A Setter for attribute value. Does nothing if no such key. N/A N/A key N/A self attrs N/A N/A N/A N/A N/A self attrs N/A key N/A 0 item N/A _parenthesize_phrases N/A N/A self query N/A N/A N/A 
        Turns a query string containing comma-separated phrases into a
        space-separated list of tokens, quoted if containing
        whitespace. For example, input

          'some words, foo, bar'

        becomes

          '"some words" foo bar'

        This comes in handy during the composition of certain queries.
         N/A N/A N/A N/A query find , 0 N/A N/A query N/A phrases N/A N/A phrase N/A N/A query split , N/A N/A phrase N/A N/A phrase strip N/A N/A N/A N/A phrase find 0 N/A N/A phrase N/A N/A " phrase " N/A N/A N/A phrases append phrase N/A N/A N/A join phrases N/A N/A ClusterScholarQuery N/A ScholarQuery N/A N/A 
    This version just pulls up an article cluster whose ID we already
    know about.
     N/A SCHOLAR_CLUSTER_URL N/A N/A N/A N/A ScholarConf SCHOLAR_SITE /scholar? cluster=%(cluster)s &num=%(num)s __init__ N/A N/A self cluster N/A None N/A N/A N/A N/A ScholarQuery __init__ self N/A N/A N/A self _add_attribute_type num_results Results 0 N/A N/A self cluster None N/A N/A N/A self set_cluster cluster N/A set_cluster N/A N/A self cluster N/A N/A N/A 
        Sets search to a Google Scholar results cluster ID.
         N/A msg cluster ID must be numeric N/A N/A self cluster N/A N/A ScholarUtils ensure_int cluster msg N/A get_url N/A N/A self N/A N/A N/A N/A N/A self cluster None N/A N/A N/A QueryArgumentError cluster query needs cluster ID N/A urlargs N/A cluster num N/A self cluster N/A N/A self num_results N/A ScholarConf MAX_PAGE_RESULTS N/A N/A key val N/A N/A urlargs items N/A N/A N/A urlargs N/A key N/A quote N/A encode val N/A N/A N/A self SCHOLAR_CLUSTER_URL urlargs N/A N/A SearchScholarQuery N/A ScholarQuery N/A N/A 
    This version represents the search query parameters the user can
    configure on the Scholar website, in the advanced search options.
     N/A SCHOLAR_QUERY_URL N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A ScholarConf SCHOLAR_SITE /scholar? as_q=%(words)s &as_epq=%(phrase)s &as_oq=%(words_some)s &as_eq=%(words_none)s &as_occt=%(scope)s &as_sauthors=%(authors)s &as_publication=%(pub)s &as_ylo=%(ylo)s &as_yhi=%(yhi)s &as_sdt=%(patents)s%%2C5 &as_vis=%(citations)s &btnG=&hl=en &num=%(num)s __init__ N/A N/A self N/A N/A N/A N/A N/A ScholarQuery __init__ self N/A N/A N/A self _add_attribute_type num_results Results 0 N/A N/A self words None N/A N/A self words_some None N/A N/A self words_none None N/A N/A self phrase None N/A N/A self scope_title False N/A N/A self author None N/A N/A self pub None N/A N/A self timeframe N/A None None N/A N/A self include_patents True N/A N/A self include_citations True N/A set_words N/A N/A self words N/A N/A N/A Sets words that *all* must be found in the result. N/A N/A self words words N/A set_words_some N/A N/A self words N/A N/A N/A Sets words of which *at least one* must be found in result. N/A N/A self words_some words N/A set_words_none N/A N/A self words N/A N/A N/A Sets words of which *none* must be found in the result. N/A N/A self words_none words N/A set_phrase N/A N/A self phrase N/A N/A N/A Sets phrase that must be found in the result exactly. N/A N/A self phrase phrase N/A set_scope N/A N/A self title_only N/A N/A N/A 
        Sets Boolean indicating whether to search entire article or title
        only.
         N/A N/A self scope_title title_only N/A set_author N/A N/A self author N/A N/A N/A Sets names that must be on the result's author list. N/A N/A self author author N/A set_pub N/A N/A self pub N/A N/A N/A Sets the publication in which the result must be found. N/A N/A self pub pub N/A set_timeframe N/A N/A self start end N/A None None N/A N/A 
        Sets timeframe (in years as integer) in which result must have
        appeared. It's fine to specify just start or end, or both.
         N/A start N/A N/A start N/A N/A ScholarUtils ensure_int start N/A end N/A N/A end N/A N/A ScholarUtils ensure_int end N/A N/A self timeframe N/A start end N/A set_include_citations N/A N/A self yesorno N/A N/A N/A N/A self include_citations yesorno N/A set_include_patents N/A N/A self yesorno N/A N/A N/A N/A self include_patents yesorno N/A get_url N/A N/A self N/A N/A N/A N/A N/A N/A self words None N/A N/A self words_some None N/A N/A self words_none None N/A N/A self phrase None N/A N/A self author None N/A N/A self pub None N/A N/A N/A self timeframe N/A 0 None N/A N/A N/A self timeframe N/A 1 None N/A N/A N/A QueryArgumentError search query needs more parameters N/A words_some None N/A words_none None N/A N/A self words_some N/A N/A words_some N/A N/A self _parenthesize_phrases N/A self words_some N/A N/A self words_none N/A N/A words_none N/A N/A self _parenthesize_phrases N/A self words_none N/A urlargs N/A words words_some words_none phrase scope authors pub ylo yhi patents citations num N/A N/A self words N/A words_some N/A words_none N/A N/A self phrase N/A N/A self scope_title title any N/A N/A self author N/A N/A self pub N/A N/A N/A self timeframe N/A 0 N/A N/A N/A self timeframe N/A 1 N/A N/A self include_patents 0 1 N/A N/A self include_citations 0 1 N/A N/A self num_results N/A ScholarConf MAX_PAGE_RESULTS N/A N/A key val N/A N/A urlargs items N/A N/A N/A urlargs N/A key N/A quote N/A encode val N/A N/A N/A self SCHOLAR_QUERY_URL urlargs N/A N/A ScholarSettings N/A object N/A N/A 
    This class lets you adjust the Scholar settings for your
    session. It's intended to mirror the features tunable in the
    Scholar Settings pane, but right now it's a bit basic.
     N/A CITFORM_NONE 0 N/A CITFORM_REFWORKS 1 N/A CITFORM_REFMAN 2 N/A CITFORM_ENDNOTE 3 N/A CITFORM_BIBTEX 4 __init__ N/A N/A self N/A N/A N/A N/A self citform 0 N/A N/A self per_page_results N/A ScholarConf MAX_PAGE_RESULTS N/A N/A self _is_configured False N/A set_citation_format N/A N/A self citform N/A N/A N/A citform N/A N/A ScholarUtils ensure_int citform N/A N/A N/A citform 0 N/A citform N/A self CITFORM_BIBTEX N/A N/A N/A FormatError N/A citation format invalid, is "%s" citform N/A N/A self citform citform N/A N/A self _is_configured True N/A set_per_page_results N/A N/A self per_page_results N/A N/A N/A msg page results must be integer N/A N/A self per_page_results N/A N/A ScholarUtils ensure_int per_page_results msg N/A N/A self per_page_results N/A min N/A self per_page_results N/A ScholarConf MAX_PAGE_RESULTS N/A N/A self _is_configured True N/A is_configured N/A N/A self N/A N/A N/A N/A self _is_configured N/A N/A ScholarQuerier N/A object N/A N/A 
    ScholarQuerier instances can conduct a search on Google Scholar
    with subsequent parsing of the resulting HTML content.  The
    articles found are collected in the articles member, a list of
    ScholarArticle instances.
     N/A GET_SETTINGS_URL N/A N/A N/A ScholarConf SCHOLAR_SITE /scholar_settings? sciifh=1&hl=en&as_sdt=0,5 N/A SET_SETTINGS_URL N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A ScholarConf SCHOLAR_SITE /scholar_setprefs? q= &scisig=%(scisig)s &inststart=0 &as_sdt=1,5 &as_sdtp= &num=%(num)s &scis=%(scis)s %(scisf)s &hl=en&lang=all&instq=&inst=569367360547434339&save= Parser N/A ScholarArticleParser120726 N/A __init__ N/A N/A self querier N/A N/A N/A N/A N/A ScholarArticleParser120726 __init__ self N/A N/A self querier querier N/A handle_num_results N/A N/A self num_results N/A N/A N/A N/A N/A N/A self querier None N/A N/A N/A self querier query None N/A N/A N/A N/A N/A self querier query N/A num_results num_results N/A handle_article N/A N/A self art N/A N/A N/A N/A N/A N/A self querier add_article art N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self articles N/A N/A N/A self query None N/A N/A self cjar N/A MozillaCookieJar N/A N/A N/A ScholarConf COOKIE_JAR_FILE N/A N/A N/A os path exists N/A ScholarConf COOKIE_JAR_FILE N/A N/A N/A N/A N/A N/A N/A self cjar load N/A ScholarConf COOKIE_JAR_FILE ignore_discard True N/A N/A N/A ScholarUtils log info loaded cookies file N/A N/A N/A Exception N/A msg N/A N/A N/A N/A ScholarUtils log warn N/A could not load cookies file: %s msg N/A N/A self cjar N/A MozillaCookieJar N/A N/A self opener N/A build_opener N/A HTTPCookieProcessor N/A self cjar N/A N/A self settings None N/A apply_settings N/A N/A self settings N/A N/A N/A 
        Applies settings as provided by a ScholarSettings instance.
         N/A N/A N/A settings None N/A N/A N/A settings is_configured N/A N/A True N/A N/A self settings settings N/A html N/A N/A self _get_http_response url N/A self GET_SETTINGS_URL log_msg dump of settings form HTML err_msg requesting settings failed N/A N/A html None N/A N/A False N/A soup N/A BeautifulSoup html N/A tag N/A N/A soup find name form attrs N/A id gs_settings_form N/A N/A tag None N/A N/A N/A N/A ScholarUtils log info parsing settings failed: no form N/A False N/A tag N/A N/A tag find input attrs N/A type name hidden scisig N/A N/A tag None N/A N/A N/A N/A ScholarUtils log info parsing settings failed: scisig N/A False N/A urlargs N/A scisig num scis scisf N/A tag N/A value N/A settings per_page_results no N/A N/A N/A settings citform 0 N/A N/A N/A urlargs N/A scis yes N/A N/A urlargs N/A scisf N/A &scisf=%d N/A settings citform N/A html N/A N/A self _get_http_response url N/A N/A self SET_SETTINGS_URL urlargs log_msg dump of settings result HTML err_msg applying setttings failed N/A N/A html None N/A N/A False N/A N/A N/A ScholarUtils log info settings applied N/A True N/A send_query N/A N/A self query N/A N/A N/A 
        This method initiates a search query (a ScholarQuery instance)
        with subsequent parsing of the response.
         N/A N/A N/A self clear_articles N/A N/A self query query N/A html N/A N/A self _get_http_response url N/A N/A query get_url log_msg dump of query response HTML err_msg results retrieval failed N/A N/A html None N/A N/A N/A N/A N/A self parse html N/A get_citation_data N/A N/A self article N/A N/A N/A 
        Given an article, retrieves citation link. Note, this requires that
        you adjusted the settings to tell Google Scholar to actually
        provide this information, *prior* to retrieving the article.
         N/A N/A N/A article N/A url_citation None N/A N/A False N/A N/A N/A article citation_data None N/A N/A True N/A N/A N/A ScholarUtils log info retrieving citation export data N/A data N/A N/A self _get_http_response url N/A article N/A url_citation log_msg citation data response err_msg requesting citation data failed N/A N/A data None N/A N/A False N/A N/A N/A article set_citation_data data N/A True N/A parse N/A N/A self html N/A N/A N/A 
        This method allows parsing of provided HTML content.
         N/A parser N/A N/A self Parser self N/A N/A N/A parser parse html N/A add_article N/A N/A self art N/A N/A N/A N/A N/A self get_citation_data art N/A N/A N/A N/A self articles append art N/A clear_articles N/A N/A self N/A N/A N/A Clears any existing articles stored from previous queries. N/A N/A self articles N/A N/A save_cookies N/A N/A self N/A N/A N/A 
        This stores the latest cookies we're using to disk, for reuse in a
        later session.
         N/A N/A N/A ScholarConf COOKIE_JAR_FILE None N/A N/A False N/A N/A N/A N/A N/A N/A self cjar save N/A ScholarConf COOKIE_JAR_FILE ignore_discard True N/A N/A N/A ScholarUtils log info saved cookies file N/A True N/A N/A N/A Exception N/A msg N/A N/A N/A N/A ScholarUtils log warn N/A could not save cookies file: %s msg N/A False N/A _get_http_response N/A N/A self url log_msg err_msg N/A None None N/A N/A 
        Helper method, sends HTTP request and returns response payload.
         N/A N/A log_msg None N/A N/A log_msg HTTP response data follow N/A N/A err_msg None N/A N/A err_msg request failed N/A N/A N/A N/A N/A ScholarUtils log info N/A requesting %s N/A unquote url N/A req N/A Request url url headers N/A User-Agent N/A ScholarConf USER_AGENT N/A hdl N/A N/A N/A self opener open req N/A html N/A N/A hdl read N/A N/A N/A ScholarUtils log debug log_msg N/A N/A N/A ScholarUtils log debug N/A >>>> N/A - 68 N/A N/A N/A ScholarUtils log debug N/A url: %s N/A N/A hdl geturl N/A N/A N/A ScholarUtils log debug N/A result: %s N/A N/A hdl getcode N/A N/A N/A ScholarUtils log debug N/A headers:
 N/A str N/A N/A hdl info N/A N/A N/A ScholarUtils log debug N/A data:
 N/A N/A html decode utf-8 N/A N/A N/A ScholarUtils log debug N/A <<<< N/A - 68 N/A html N/A N/A N/A Exception N/A err N/A N/A N/A N/A ScholarUtils log info N/A err_msg N/A : %s err N/A None N/A N/A txt N/A N/A querier with_globals N/A N/A N/A with_globals N/A N/A max_label_len 0 N/A N/A N/A len N/A querier articles 0 N/A N/A items N/A sorted N/A list N/A N/A N/A N/A N/A querier articles N/A 0 attrs values key N/A N/A N/A item N/A N/A item N/A 2 N/A max_label_len N/A max N/A N/A len N/A str N/A item N/A 1 N/A item items N/A items N/A sorted N/A list N/A N/A N/A N/A querier query attrs values key N/A N/A N/A item N/A N/A item N/A 2 N/A max_label_len N/A max N/A N/A N/A len N/A str N/A item N/A 1 N/A item items N/A max_label_len N/A fmt N/A [G] %%%ds %%s N/A max 0 N/A max_label_len 4 N/A item items N/A N/A N/A N/A item N/A 0 None N/A N/A N/A fmt N/A N/A item N/A 1 N/A item N/A 0 N/A N/A N/A len items 0 N/A N/A N/A articles N/A querier articles N/A art articles N/A N/A N/A N/A encode N/A N/A art as_txt N/A csv N/A N/A querier header sep N/A False | N/A N/A articles N/A querier articles N/A art articles N/A N/A result N/A N/A art as_csv header header sep sep N/A N/A encode result N/A header False N/A citation_export N/A N/A querier N/A N/A N/A articles N/A querier articles N/A art articles N/A N/A N/A N/A N/A art as_citation N/A main N/A N/A N/A N/A N/A usage scholar.py [options] <query string>
A command-line interface to Google Scholar.

Examples:

# Retrieve one article written by Einstein on quantum theory:
scholar.py -c 1 --author "albert einstein" --phrase "quantum theory"

# Retrieve a BibTeX entry for that quantum theory paper:
scholar.py -c 1 -C 17749203648027613321 --citation bt

# Retrieve five articles written by Einstein after 1970 where the title
# does not contain the words "quantum" and "theory":
scholar.py -c 5 -a "albert einstein" -t --none "quantum theory" --after 1970 N/A fmt N/A N/A optparse IndentedHelpFormatter max_help_position 50 width 100 N/A parser N/A N/A optparse OptionParser usage usage formatter fmt N/A group N/A N/A optparse OptionGroup parser Query arguments These options define search query arguments and parameters. N/A N/A N/A group add_option -a --author metavar AUTHORS default None help Author name(s) N/A N/A N/A group add_option -A --all metavar WORDS default None dest allw help Results must contain all of these words N/A N/A N/A group add_option -s --some metavar WORDS default None help Results must contain at least one of these words. Pass arguments in form -s "foo bar baz" for simple words, and -s "a phrase, another phrase" for phrases N/A N/A N/A group add_option -n --none metavar WORDS default None help Results must contain none of these words. See -s|--some re. formatting N/A N/A N/A group add_option -p --phrase metavar PHRASE default None help Results must contain exact phrase N/A N/A N/A group add_option -t --title-only action store_true default False help Search title only N/A N/A N/A group add_option -P --pub metavar PUBLICATIONS default None help Results must have appeared in this publication N/A N/A N/A group add_option --after metavar YEAR default None help Results must have appeared in or after given year N/A N/A N/A group add_option --before metavar YEAR default None help Results must have appeared in or before given year N/A N/A N/A group add_option --no-patents action store_true default False help Do not include patents in results N/A N/A N/A group add_option --no-citations action store_true default False help Do not include citations in results N/A N/A N/A group add_option -C --cluster-id metavar CLUSTER_ID default None help Do not search, just use articles in given cluster ID N/A N/A N/A group add_option -c --count type int default None help Maximum number of results N/A N/A N/A parser add_option_group group N/A group N/A N/A optparse OptionGroup parser Output format These options control the appearance of the results. N/A N/A N/A group add_option --txt action store_true help Print article data in text format (default) N/A N/A N/A group add_option --txt-globals action store_true help Like --txt, but first print global results too N/A N/A N/A group add_option --csv action store_true help Print article data in CSV form (separator is "|") N/A N/A N/A group add_option --csv-header action store_true help Like --csv, but print header with column names N/A N/A N/A group add_option --citation metavar FORMAT default None help Print article details in standard citation format. Argument Must be one of "bt" (BibTeX), "en" (EndNote), "rm" (RefMan), or "rw" (RefWorks). N/A N/A N/A parser add_option_group group N/A group N/A N/A optparse OptionGroup parser Miscellaneous N/A N/A N/A group add_option --cookie-file metavar FILE default None help File to use for cookie storage. If given, will read any existing cookies if found at startup, and save resulting cookies in the end. N/A N/A N/A group add_option -d --debug action count default 0 help Enable verbose logging to stderr. Repeated options increase detail of debug output. N/A N/A N/A group add_option -v --version action store_true default False help Show version information N/A N/A N/A parser add_option_group group N/A N/A options _ N/A N/A parser parse_args N/A N/A N/A len N/A sys argv 1 N/A N/A N/A N/A parser print_help N/A 1 N/A N/A N/A options debug 0 N/A N/A N/A options debug N/A min N/A options debug N/A N/A ScholarUtils LOG_LEVELS N/A debug N/A N/A ScholarConf LOG_LEVEL N/A options debug N/A N/A N/A ScholarUtils log info N/A using log level %d N/A ScholarConf LOG_LEVEL N/A N/A options version N/A N/A N/A This is scholar.py %s. N/A ScholarConf VERSION N/A 0 N/A N/A options cookie_file N/A N/A N/A ScholarConf COOKIE_JAR_FILE N/A options cookie_file N/A N/A N/A options cluster_id None N/A N/A N/A N/A options author N/A options allw N/A options some N/A options none N/A options phrase N/A options title_only N/A options pub N/A options after N/A options before N/A N/A Cluster ID queries do not allow additional search arguments. N/A 1 N/A querier N/A ScholarQuerier N/A settings N/A ScholarSettings N/A N/A N/A options citation bt N/A N/A N/A N/A settings set_citation_format N/A ScholarSettings CITFORM_BIBTEX N/A N/A N/A N/A options citation en N/A N/A N/A N/A settings set_citation_format N/A ScholarSettings CITFORM_ENDNOTE N/A N/A N/A N/A options citation rm N/A N/A N/A N/A settings set_citation_format N/A ScholarSettings CITFORM_REFMAN N/A N/A N/A N/A options citation rw N/A N/A N/A N/A settings set_citation_format N/A ScholarSettings CITFORM_REFWORKS N/A N/A N/A N/A options citation None N/A N/A Invalid citation link format, must be one of "bt", "en", "rm", or "rw". N/A 1 N/A N/A N/A querier apply_settings settings N/A N/A options cluster_id N/A N/A query N/A ClusterScholarQuery cluster N/A options cluster_id N/A N/A query N/A SearchScholarQuery N/A N/A options author N/A N/A N/A N/A query set_author N/A options author N/A N/A options allw N/A N/A N/A N/A query set_words N/A options allw N/A N/A options some N/A N/A N/A N/A query set_words_some N/A options some N/A N/A options none N/A N/A N/A N/A query set_words_none N/A options none N/A N/A options phrase N/A N/A N/A N/A query set_phrase N/A options phrase N/A N/A options title_only N/A N/A N/A N/A query set_scope True N/A N/A options pub N/A N/A N/A N/A query set_pub N/A options pub N/A N/A N/A options after N/A options before N/A N/A N/A N/A query set_timeframe N/A options after N/A options before N/A N/A options no_patents N/A N/A N/A N/A query set_include_patents False N/A N/A options no_citations N/A N/A N/A N/A query set_include_citations False N/A N/A N/A options count None N/A N/A N/A options count N/A min N/A options count N/A ScholarConf MAX_PAGE_RESULTS N/A N/A N/A query set_num_page_results N/A options count N/A N/A N/A querier send_query query N/A N/A options csv N/A N/A N/A csv querier N/A N/A N/A options csv_header N/A N/A N/A csv querier header True N/A N/A N/A N/A options citation None N/A N/A N/A citation_export querier N/A N/A N/A txt querier with_globals N/A options txt_globals N/A N/A options cookie_file N/A N/A N/A N/A querier save_cookies N/A 0 N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A main