SYMBOL INDEX (199 symbols across 30 files) FILE: bin/busm_failed.py function main (line 15) | def main(): FILE: bin/fin_schedule.py class JustDaemon (line 17) | class JustDaemon: method __init__ (line 23) | def __init__(self, init_task=None, loop_task=None, stdout='/dev/null',... method do_nothing (line 34) | def do_nothing(self): method on_quit (line 37) | def on_quit(self, signum, frame): method listen_sys_signals (line 40) | def listen_sys_signals(self): method stream_redirect (line 51) | def stream_redirect(self): method stream_flush (line 58) | def stream_flush(self): method stream_close (line 63) | def stream_close(self): method pidfile_create (line 68) | def pidfile_create(self): method pidfile_remove (line 77) | def pidfile_remove(self): method run (line 81) | def run(self): class ScheduleDaemon (line 100) | class ScheduleDaemon(JustDaemon): method __init__ (line 106) | def __init__(self, schedule_table, stdout='/dev/null', stderr='/dev/nu... method init_task (line 116) | def init_task(self, attrs): method loop_task (line 133) | def loop_task(self, attrs): method run_parallel (line 136) | def run_parallel(self, func, args): function im_fine (line 140) | def im_fine(): function tpe_at (line 144) | def tpe_at(timestr): function main (line 150) | def main(): FILE: bin/publish.py function get_wheel (line 14) | def get_wheel(): function get_latest_python (line 30) | def get_latest_python(): function test_in_virtualenv (line 58) | def test_in_virtualenv(pyver, wheel): function wheel_check (line 81) | def wheel_check(): function upload_to_pypi (line 117) | def upload_to_pypi(test=False): function main (line 147) | def main(): FILE: twnews/__init__.py function _replaced_print (line 20) | def _replaced_print(*objects, sep=' ', end='\n', file=sys.stdout, flush=... FILE: twnews/__main__.py function soup (line 13) | def soup(path): function search_and_list (line 34) | def search_and_list(keyword, channel): function search_and_soup (line 52) | def search_and_soup(keyword, channel): function search_and_compare_performance (line 72) | def search_and_compare_performance(keyword): function compare_keyword (line 108) | def compare_keyword(keyword): function usage (line 141) | def usage(): function get_cmd_param (line 152) | def get_cmd_param(index, default=None): function main (line 160) | def main(): FILE: twnews/cache.py class DateCache (line 9) | class DateCache: method __init__ (line 14) | def __init__(self, category, item, data_format): method get_path (line 22) | def get_path(self, datestr): method has (line 31) | def has(self, datestr): method load (line 38) | def load(self, datestr): method save (line 51) | def save(self, datestr, content): FILE: twnews/common.py function found_socks5 (line 29) | def found_socks5(): function get_package_dir (line 44) | def get_package_dir(): function get_logger (line 50) | def get_logger(name='news'): function get_session (line 77) | def get_session(proxy_first): function get_all_conf (line 113) | def get_all_conf(): function detect_channel (line 126) | def detect_channel(path): function get_channel_conf (line 136) | def get_channel_conf(channel, action=None): function get_cache_dir (line 149) | def get_cache_dir(category): FILE: twnews/exceptions.py class SyncException (line 5) | class SyncException(Exception): method __init__ (line 9) | def __init__(self, reason): class NetworkException (line 13) | class NetworkException(SyncException): class InvalidDataException (line 18) | class InvalidDataException(SyncException): FILE: twnews/finance/__init__.py function get_connection (line 92) | def get_connection(rebuild=False): function get_argument (line 120) | def get_argument(index, default=''): function fucking_get (line 128) | def fucking_get(hook, url, params): FILE: twnews/finance/broker.py class TradingLocation (line 31) | class TradingLocation(Base): function date_conv (line 45) | def date_conv(hw_date): function visit_branch (line 67) | def visit_branch(session, parent_id): function visit_parent (line 100) | def visit_parent(session): function geocode_single (line 127) | def geocode_single(address, req_session, sid, transformer): function geocode (line 158) | def geocode(orm_session): function main (line 229) | def main(): FILE: twnews/finance/tdcc.py function import_dist (line 15) | def import_dist(csv_date='latest'): function rebuild_dist (line 81) | def rebuild_dist(): function backup_dist (line 107) | def backup_dist(refresh=False): function sync_dataset (line 136) | def sync_dataset(): function main (line 148) | def main(): FILE: twnews/finance/ticksmap.py class CaptchaDialog (line 18) | class CaptchaDialog(wx.App): method __init__ (line 23) | def __init__(self, captcha_stream): method OnInit (line 28) | def OnInit(self): method OnKeyPress (line 52) | def OnKeyPress(self, event): function handle_captcha (line 60) | def handle_captcha(captcha_stream): function load_soup (line 68) | def load_soup(security_id, date_str): function parse_tick_node (line 159) | def parse_tick_node(row): function main (line 172) | def main(): FILE: twnews/finance/tpex.py function download_margin (line 21) | def download_margin(datestr): function download_block (line 38) | def download_block(datestr): function download_institution (line 55) | def download_institution(datestr): function download_selled (line 79) | def download_selled(datestr): function import_margin (line 115) | def import_margin(dbcon, trading_date, dataset): function import_block (line 139) | def import_block(dbcon, trading_date, dataset): function import_institution (line 184) | def import_institution(dbcon, trading_date, dataset): function import_selled (line 208) | def import_selled(dbcon, trading_date, dataset): function sync_dataset (line 223) | def sync_dataset(dsitem, trading_date='latest'): function main (line 294) | def main(): FILE: twnews/finance/twse.py function download_margin (line 19) | def download_margin(datestr): function download_block (line 40) | def download_block(datestr): function download_institution (line 61) | def download_institution(datestr): function download_borrowed (line 80) | def download_borrowed(datestr): function download_selled (line 107) | def download_selled(datestr): function download_etfnet (line 127) | def download_etfnet(datestr): function import_margin (line 141) | def import_margin(dbcon, trading_date, dataset): function import_block (line 164) | def import_block(dbcon, trading_date, dataset): function import_institution (line 200) | def import_institution(dbcon, trading_date, dataset): function import_borrowed (line 221) | def import_borrowed(dbcon, trading_date, dataset): function import_selled (line 247) | def import_selled(dbcon, trading_date, dataset): function import_etfnet (line 266) | def import_etfnet(dbcon, trading_date, dataset): function sync_dataset (line 289) | def sync_dataset(dsitem, trading_date='latest'): function main (line 350) | def main(): FILE: twnews/search.py function visit_dict (line 17) | def visit_dict(dict_node, path): function filter_duplicated (line 29) | def filter_duplicated(results): class NewsSearchException (line 52) | class NewsSearchException(Exception): class NewsSearch (line 57) | class NewsSearch: method __init__ (line 62) | def __init__(self, channel, limit=25, beg_date=None, end_date=None, pr... method by_keyword (line 122) | def by_keyword(self, keyword, title_only=False): method to_dict_list (line 186) | def to_dict_list(self): method to_soup_list (line 192) | def to_soup_list(self): method elapsed (line 202) | def elapsed(self): method pages (line 208) | def pages(self): method __flip_to_end_date (line 214) | def __flip_to_end_date(self, keyword): method __load_page (line 299) | def __load_page(self, keyword, page): method __result_nodes (line 334) | def __result_nodes(self): method __parse_title_node (line 344) | def __parse_title_node(self, result_node): method __parse_date_node (line 356) | def __parse_date_node(self, result_node): method __parse_link_node (line 377) | def __parse_link_node(self, result_node): FILE: twnews/soup.py function get_cache_filepath (line 20) | def get_cache_filepath(channel, uri): function url_follow_redirection (line 28) | def url_follow_redirection(url, proxy_first): function url_force_https (line 70) | def url_force_https(url): function url_force_ltn_mobile (line 88) | def url_force_ltn_mobile(url): function soup_from_website (line 107) | def soup_from_website(url, channel, refresh, proxy_first): function soup_from_file (line 149) | def soup_from_file(file_path): function scan_author (line 170) | def scan_author(article): class NewsSoup (line 202) | class NewsSoup: method __init__ (line 209) | def __init__(self, path, refresh=False, proxy_first=False): method __get_soup (line 251) | def __get_soup(self): method title (line 281) | def title(self): method date_raw (line 306) | def date_raw(self): method date (line 334) | def date(self): method author (line 361) | def author(self): method contents (line 406) | def contents(self, limit=0): method effective_text_rate (line 434) | def effective_text_rate(self): FILE: twnews/tests/search/test_search_appledaily.py class TestAppleDaily (line 9) | class TestAppleDaily(unittest.TestCase): method setUp (line 14) | def setUp(self): method test_01_filter_title (line 18) | def test_01_filter_title(self): method test_02_search_and_soup (line 27) | def test_02_search_and_soup(self): FILE: twnews/tests/search/test_search_cna.py class TestCna (line 9) | class TestCna(unittest.TestCase): method setUp (line 14) | def setUp(self): method test_01_filter_title (line 18) | def test_01_filter_title(self): method test_02_search_and_soup (line 27) | def test_02_search_and_soup(self): FILE: twnews/tests/search/test_search_ettoday.py class TestEttoday (line 9) | class TestEttoday(unittest.TestCase): method setUp (line 14) | def setUp(self): method test_01_filter_title (line 18) | def test_01_filter_title(self): method test_02_search_and_soup (line 27) | def test_02_search_and_soup(self): FILE: twnews/tests/search/test_search_ltn.py class TestLtn (line 9) | class TestLtn(unittest.TestCase): method setUp (line 14) | def setUp(self): method test_01_filter_title (line 18) | def test_01_filter_title(self): method test_02_search_and_soup (line 27) | def test_02_search_and_soup(self): FILE: twnews/tests/search/test_search_setn.py class TestSetn (line 9) | class TestSetn(unittest.TestCase): method setUp (line 14) | def setUp(self): method test_01_filter_title (line 18) | def test_01_filter_title(self): method test_02_search_and_soup (line 27) | def test_02_search_and_soup(self): FILE: twnews/tests/search/test_search_udn.py class TestUdn (line 9) | class TestUdn(unittest.TestCase): method setUp (line 14) | def setUp(self): method test_01_filter_title (line 18) | def test_01_filter_title(self): method test_02_search_and_soup (line 27) | def test_02_search_and_soup(self): FILE: twnews/tests/soup/test_soup_appledaily.py class TestAppleDaily (line 12) | class TestAppleDaily(unittest.TestCase): method setUp (line 17) | def setUp(self): method test_01_sample (line 20) | def test_01_sample(self): method test_02_mobile (line 32) | def test_02_mobile(self): method test_03_layouts (line 44) | def test_03_layouts(self): FILE: twnews/tests/soup/test_soup_chinatimes.py class TestChinatimes (line 12) | class TestChinatimes(unittest.TestCase): method setUp (line 17) | def setUp(self): method test_01_sample (line 21) | def test_01_sample(self): method test_02_mobile (line 33) | def test_02_mobile(self): FILE: twnews/tests/soup/test_soup_cna.py class TestCna (line 12) | class TestCna(unittest.TestCase): method setUp (line 17) | def setUp(self): method test_01_sample (line 21) | def test_01_sample(self): method test_02_mobile (line 33) | def test_02_mobile(self): FILE: twnews/tests/soup/test_soup_common.py class TestCommon (line 14) | class TestCommon(unittest.TestCase): method setUp (line 19) | def setUp(self): method test_01_cache (line 23) | def test_01_cache(self): method test_02_soup_from_website (line 46) | def test_02_soup_from_website(self): method test_03_soup_from_file (line 87) | def test_03_soup_from_file(self): method test_04_author_in_contents (line 143) | def test_04_author_in_contents(self): method test_05_author_in_node (line 193) | def test_05_author_in_node(self): FILE: twnews/tests/soup/test_soup_ettoday.py class TestEttoday (line 11) | class TestEttoday(unittest.TestCase): method setUp (line 16) | def setUp(self): method test_01_sample (line 19) | def test_01_sample(self): method test_02_mobile (line 31) | def test_02_mobile(self): method test_03_layouts (line 43) | def test_03_layouts(self): FILE: twnews/tests/soup/test_soup_ltn.py class TestLtn (line 12) | class TestLtn(unittest.TestCase): method setUp (line 17) | def setUp(self): method test_01_sample (line 20) | def test_01_sample(self): method test_02_mobile (line 32) | def test_02_mobile(self): method test_03_layouts (line 44) | def test_03_layouts(self): method test_04_switch_mobile (line 141) | def test_04_switch_mobile(self): method test_05_multiple_date_format (line 153) | def test_05_multiple_date_format(self): method test_06_http_redirect (line 165) | def test_06_http_redirect(self): FILE: twnews/tests/soup/test_soup_setn.py class TestSetn (line 12) | class TestSetn(unittest.TestCase): method setUp (line 17) | def setUp(self): method test_01_sample (line 21) | def test_01_sample(self): method test_02_mobile (line 33) | def test_02_mobile(self): method test_03_layouts (line 44) | def test_03_layouts(self): FILE: twnews/tests/soup/test_soup_udn.py class TestUdn (line 12) | class TestUdn(unittest.TestCase): method setUp (line 17) | def setUp(self): method test_01_sample (line 21) | def test_01_sample(self): method test_02_mobile (line 33) | def test_02_mobile(self): method test_03_layouts (line 44) | def test_03_layouts(self):