Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Call NameLoad AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assert CompareGt Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Num Expr Call NameLoad AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListLoad Assign NameStore ListLoad For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad BinOpMult Call AttributeLoad NameLoad attr BinOpPow Num Num Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Num keyword Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str Index Num SubscriptLoad SubscriptLoad NameLoad Index Str Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str Str Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr CompareIn Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Str Assign NameStore BinOpMod Str NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpMod Str AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Dict Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index Str decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Copyright (c) 2013 Qin Xuye <qin@qinxuye.me>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Created on 2013-6-10

@author: Chine
 N/A unittest N/A time cola.core.opener MechanizeOpener cola.core.unit Bundle app.weibo login_hook app.weibo.parsers MicroBlogParser ForwardCommentLikeParser UserInfoParser UserFriendParser app.weibo.conf user_config app.weibo.bundle WeiboUserBundle pymongo Connection Test N/A N/A unittest TestCase N/A setUp N/A N/A self N/A N/A N/A N/A self test_uid 1784725941 N/A N/A self bundle N/A WeiboUserBundle N/A self test_uid N/A N/A self opener N/A MechanizeOpener N/A N/A self conn N/A Connection N/A N/A self db N/A N/A self conn N/A N/A getattr N/A user_config job db N/A N/A self users_collection N/A N/A self db weibo_user N/A N/A self weibos_collection N/A N/A self db micro_blog N/A N/A N/A len N/A N/A user_config job N/A login 0 N/A N/A login_hook N/A self opener N/A N/A N/A user_config job N/A login N/A 0 N/A _get_urls_and_bundles N/A N/A self yields N/A N/A N/A urls N/A N/A bundles N/A N/A item yields N/A N/A N/A isinstance item Bundle N/A N/A N/A N/A bundles append item N/A N/A N/A N/A urls append item N/A N/A urls bundles N/A tearDown N/A N/A self N/A N/A N/A N/A N/A N/A self users_collection remove N/A uid N/A self test_uid N/A N/A N/A N/A self weibos_collection remove N/A uid N/A self test_uid N/A N/A N/A N/A self conn close N/A testMicroBlogParser N/A N/A self N/A N/A N/A test_url N/A http://weibo.com/aj/mblog/mbloglist?uid=%s&_k=%s N/A N/A self test_uid N/A int N/A N/A N/A time time N/A 10 6 N/A parser N/A MicroBlogParser opener N/A self opener url test_url bundle N/A self bundle N/A N/A _ bundles N/A N/A self _get_urls_and_bundles N/A N/A parser parse N/A N/A N/A self assertEqual N/A len bundles 0 N/A size N/A N/A N/A N/A N/A self weibos_collection find N/A uid N/A self test_uid count N/A N/A N/A self assertAlmostEqual size 15 delta 1 N/A testMicroBlogForwardsParser N/A N/A self N/A N/A N/A test_url http://weibo.com/aj/mblog/info/big?id=3596988739933218&_t=0&__rnd=1373094212593 N/A parser N/A ForwardCommentLikeParser opener N/A self opener url test_url bundle N/A self bundle N/A N/A urls _ N/A N/A self _get_urls_and_bundles N/A N/A parser parse N/A N/A N/A self assertEqual N/A len urls 1 N/A weibo N/A N/A N/A self weibos_collection find_one N/A mid uid 3596988739933218 N/A self test_uid N/A N/A N/A self assertLessEqual N/A len N/A weibo N/A forwards 20 N/A N/A N/A self assertGreater N/A len N/A weibo N/A forwards 0 N/A N/A N/A parser parse N/A urls N/A 0 N/A weibo N/A N/A N/A self weibos_collection find_one N/A mid uid 3596988739933218 N/A self test_uid N/A N/A N/A self assertLessEqual N/A len N/A weibo N/A forwards 40 N/A N/A N/A self assertGreater N/A len N/A weibo N/A forwards 10 N/A N/A N/A self assertNotEqual N/A N/A weibo N/A forwards N/A 0 N/A N/A weibo N/A forwards N/A 10 N/A testMicroBlogLikesParser N/A N/A self N/A N/A N/A test_url http://weibo.com/aj/like/big?mid=3599246068109415&_t=0&__rnd=1373634556882 N/A parser N/A ForwardCommentLikeParser opener N/A self opener url test_url bundle N/A self bundle N/A N/A urls _ N/A N/A self _get_urls_and_bundles N/A N/A parser parse N/A N/A N/A self assertEqual N/A len urls 1 N/A weibo N/A N/A N/A self weibos_collection find_one N/A mid uid 3599246068109415 N/A self test_uid N/A N/A N/A self assertEqual N/A len N/A weibo N/A likes 30 N/A testUserInfoParser N/A N/A self N/A N/A N/A test_url N/A http://weibo.com/%s/info N/A self test_uid N/A parser N/A UserInfoParser opener N/A self opener url test_url bundle N/A self bundle N/A N/A N/A parser parse N/A user N/A N/A N/A self users_collection find_one N/A uid N/A self test_uid N/A N/A N/A self assertTrue N/A info user N/A testUserInfoParserForSite N/A N/A self N/A N/A N/A test_uid 2733272463 N/A test_url N/A http://weibo.com/%s/info test_uid N/A bundle N/A WeiboUserBundle test_uid N/A parser N/A UserInfoParser opener N/A self opener url test_url bundle bundle N/A N/A N/A parser parse N/A testFriendParser N/A N/A self N/A N/A N/A test_url N/A http://weibo.com/%s/follow N/A self test_uid N/A parser N/A UserFriendParser opener N/A self opener url test_url bundle N/A self bundle N/A N/A urls bundles N/A N/A self _get_urls_and_bundles N/A N/A parser parse N/A N/A N/A self assertEqual N/A len urls 1 N/A N/A N/A self assertGreater bundles 0 N/A user N/A N/A N/A self users_collection find_one N/A uid N/A self test_uid N/A N/A N/A self assertEqual N/A len bundles N/A len N/A user N/A follows N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main