Module ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias Import alias ImportFrom alias Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str keyword NameLoad Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameStore body Assign NameStore Call NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameStore body Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Str attr NameLoad Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr CompareGt Call NameLoad NameLoad Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call NameLoad NameStore body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Assign NameStore Call NameLoad With Call NameLoad NameLoad Str NameStore body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr CompareIn Str SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str Str Expr Call AttributeLoad NameLoad attr CompareIn SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str TupleLoad Call NameLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Return Call AttributeLoad Str attr TupleLoad NameLoad BinOpAdd NameLoad Str decorator_list decorator_list Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Index Str Str Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str NameLoad Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str NameLoad Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str Assign NameStore Call NameLoad keyword Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str Str NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore ListLoad BinOpAdd NameLoad Str NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore ListLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str decorator_list decorator_list
N/A test.util build_grab temp_file test.util BaseGrabTestCase TEST_SERVER_PORT EXTRA_PORT1 EXTRA_PORT2 test_server TestServer N/A six grab.proxylist BaseProxySource N/A ADDRESS 127.0.0.1 N/A PROXY1 N/A %s:%d N/A ADDRESS TEST_SERVER_PORT N/A PROXY2 N/A %s:%d N/A ADDRESS EXTRA_PORT1 N/A PROXY3 N/A %s:%d N/A ADDRESS EXTRA_PORT2 TestProxy N/A BaseGrabTestCase N/A test_proxy_option N/A N/A self N/A N/A N/A g N/A build_grab N/A N/A N/A g setup proxy PROXY1 proxy_type http debug True N/A N/A N/A N/A self server response N/A get.data 123 N/A N/A N/A g go http://yandex.ru N/A N/A N/A self assertEqual 123 N/A N/A g response body N/A N/A N/A self assertEqual yandex.ru N/A N/A N/A N/A self server request N/A headers N/A host N/A test_deprecated_setup_proxylist N/A N/A self N/A N/A N/A N/A temp_file tmp_file N/A N/A g N/A build_grab N/A N/A N/A N/A open tmp_file w write PROXY1 N/A N/A N/A g load_proxylist tmp_file text_file N/A N/A N/A N/A self server response N/A get.data 123 N/A N/A N/A g change_proxy N/A N/A N/A g go http://yandex.ru N/A N/A N/A self assertEqual 123 N/A N/A g response body N/A N/A N/A self assertEqual yandex.ru N/A N/A N/A N/A self server request N/A headers N/A host N/A test_load_proxylist N/A N/A self N/A N/A N/A N/A temp_file tmp_file N/A N/A content N/A %s
%s
%s N/A PROXY1 PROXY2 PROXY3 N/A N/A N/A N/A open tmp_file w write content N/A g N/A build_grab N/A N/A N/A g load_proxylist tmp_file text_file N/A N/A N/A self assertEqual N/A N/A g config N/A proxy_auto_change True N/A servers N/A set N/A x N/A N/A N/A six moves range 10 N/A N/A N/A N/A g go http://yandex.ru N/A N/A N/A servers add N/A N/A g config N/A proxy N/A N/A N/A self assertTrue N/A N/A len servers 1 N/A g N/A build_grab N/A N/A N/A g load_proxylist tmp_file text_file auto_change False N/A N/A N/A self assertEqual N/A N/A g config N/A proxy_auto_change False N/A servers N/A set N/A x N/A N/A N/A six moves range 10 N/A N/A N/A N/A g go http://yandex.ru N/A N/A N/A servers add N/A N/A g config N/A proxy N/A N/A N/A self assertEqual N/A len servers 1 N/A g N/A build_grab N/A N/A N/A g load_proxylist tmp_file text_file auto_change False auto_init False N/A N/A N/A self assertEqual N/A N/A g config N/A proxy_auto_change False N/A N/A N/A g go N/A N/A N/A self server get_url N/A N/A N/A self assertEqual N/A N/A g config N/A proxy None N/A test_change_proxy N/A N/A self N/A N/A N/A N/A temp_file tmp_file N/A N/A g N/A build_grab N/A N/A N/A g change_proxy N/A N/A N/A self assertEqual N/A N/A g config N/A proxy None N/A g N/A build_grab N/A N/A open tmp_file w out N/A N/A x N/A N/A N/A six moves range 10 N/A N/A N/A N/A out write N/A server-%d:777
 x N/A N/A N/A g load_proxylist tmp_file text_file auto_init False auto_change False N/A N/A N/A self assertEqual N/A N/A g config N/A proxy None N/A N/A N/A g load_proxylist tmp_file text_file auto_init False auto_change True N/A N/A N/A self assertEqual N/A N/A g config N/A proxy None N/A N/A N/A g load_proxylist tmp_file text_file auto_init True auto_change False N/A N/A N/A self assertTrue N/A server- N/A N/A g config N/A proxy N/A test_list_proxysource N/A N/A self N/A N/A N/A g N/A build_grab N/A items N/A PROXY1 PROXY2 N/A N/A N/A N/A g proxylist load_list items N/A N/A N/A g go http://yandex.ru N/A N/A N/A self assertEqual N/A N/A N/A N/A self server request N/A headers N/A host yandex.ru N/A N/A N/A self assertTrue N/A N/A N/A N/A g doc headers N/A listen-port N/A N/A str TEST_SERVER_PORT N/A str EXTRA_PORT1 N/A test_custom_proxysource N/A N/A self N/A N/A CustomProxySource N/A BaseProxySource N/A load_raw_data N/A N/A self N/A N/A N/A N/A N/A join N/A PROXY1 N/A PROXY2 :foo:bar N/A N/A N/A g N/A build_grab N/A N/A N/A g setup proxy_auto_change False N/A N/A N/A N/A g proxylist set_source N/A CustomProxySource N/A N/A N/A g use_next_proxy N/A N/A N/A g go http://yandex.ru N/A N/A N/A self assertEqual N/A N/A N/A N/A self server request N/A headers N/A host yandex.ru N/A N/A N/A self assertEqual N/A N/A N/A g doc headers N/A listen-port N/A str TEST_SERVER_PORT N/A N/A N/A g use_next_proxy N/A N/A N/A g go http://yandex.ru N/A N/A N/A self assertEqual N/A N/A N/A N/A self server request N/A headers N/A host yandex.ru N/A N/A N/A self assertEqual N/A N/A N/A g doc headers N/A listen-port N/A str EXTRA_PORT1 N/A test_baseproxysource_constructor_arguments N/A N/A self N/A N/A N/A ps N/A BaseProxySource N/A N/A N/A self assertEqual N/A ps config N/A proxy_type proxy_userpwd http None N/A ps N/A BaseProxySource proxy_type socks N/A N/A N/A self assertEqual N/A ps config N/A proxy_type proxy_userpwd socks None N/A ps N/A BaseProxySource proxy_userpwd foo:bar N/A N/A N/A self assertEqual N/A ps config N/A proxy_type proxy_userpwd http foo:bar N/A ps N/A BaseProxySource foo bar N/A N/A N/A self assertEqual N/A ps config N/A proxy_type proxy_userpwd foo http None bar N/A test_global_proxy_userpwd_argument N/A N/A self N/A N/A N/A g N/A build_grab N/A items N/A PROXY1 N/A N/A N/A N/A g proxylist load_list items N/A N/A N/A self assertEquals N/A N/A N/A N/A g proxylist get_next_proxy username None N/A N/A N/A N/A g proxylist load_list items proxy_userpwd foo:bar N/A proxy N/A N/A N/A g proxylist get_next_proxy N/A N/A N/A self assertEquals N/A proxy username foo N/A N/A N/A self assertEquals N/A proxy password bar N/A items N/A N/A PROXY1 :admin:test PROXY2 N/A N/A N/A N/A g proxylist load_list items proxy_userpwd foo:bar N/A proxy N/A N/A N/A g proxylist get_next_proxy N/A N/A N/A self assertEquals N/A proxy username admin N/A N/A N/A self assertEquals N/A proxy password test N/A test_global_proxy_type_argument N/A N/A self N/A N/A N/A g N/A build_grab N/A items N/A PROXY1 N/A N/A N/A N/A g proxylist load_list items N/A proxy N/A N/A N/A g proxylist get_next_proxy N/A N/A N/A self assertEquals N/A proxy proxy_type http N/A N/A N/A N/A g proxylist load_list items proxy_type socks N/A proxy N/A N/A N/A g proxylist get_next_proxy N/A N/A N/A self assertEquals N/A proxy proxy_type socks N/A N/A