def exec(self, flag): if flag == 'a': a = AssemblyCrawler( 'http://likms.assembly.go.kr/bill/billDetail.do?billId=PRC_R1N9J0N1X0Y9A1O8S3R5Z3J3K9O8N7' ) a.scrap() elif flag == 'b': b = BugsCrawler( 'https://music.bugs.co.kr/chart/track/realtime/total?chartdate=20190810&charthour=11' ) b.scrap() elif flag == 'k': k = KrxCrawler( 'http://kind.krx.co.kr/disclosureSimpleSearch.do?method=disclosureSimpleSearchMain' ) k.scrap() elif flag == 'ns': ns = StockModel('') elif flag == 'nm': nm = NaverMovie( 'https://movie.naver.com/movie/sdb/rank/rmovie.nhn') nm.scrap() elif flag == 'nl': nl = NaverMovie('https://nid.naver.com/nidlogin.login') nl.auto_login()
def exec(self, flag): if flag == 'a': a = AssemblyCrawler( 'http://likms.assembly.go.kr/bill/billDetail.do?billId=PRC_X1Z9M0U8Q0T9N1L8C0J4E1B9K9M3Q3' ) a.scrap() elif flag == 'b': b = BugsCrawler( 'https://music.bugs.co.kr/chart/track/realtime/total?chartdate=20190810&charthour=11' ) b.scrap() elif flag == 'k': k = KrxCrawler( 'http://kind.krx.co.kr/disclosureSimpleSearch.do?method=disclosureSimpleSearchMain' ) k.scrap() elif flag == 'ns': ns = StockModel('005930') ns.scrap() elif flag == 'nm': nm = NaverMovie( 'https://movie.naver.com/movie/sdb/rank/rmovie.nhn') nm.scrap() elif flag == 'nl': nl = NaverLogin( 'https://nid.naver.com/nidlogin.login?mode=form&url=https%3A%2F%2Fwww.naver.com' ) nl.auto_login()
def exec(self, flag): if flag == 'a': a = AssemblyCrawler( 'http://likms.assembly.go.kr/bill/billDetail.do?billId=PRC_R1N9J0N1X0Y9A1O8S3R5Z3J3K9O8N7' ) a.scrap() elif flag == 'b': bm = BugsCrawler( "https://music.bugs.co.kr/chart/track/realtime/total?chartdate=20190810&charthour=11" ) bm.scrap() elif flag == 'c': c = NaverKospi("https://finance.naver.com/sise/") c.scrap() elif flag == 'd': d = KrxCrawler( "http://kind.krx.co.kr/disclosureSimpleSearch.do?method=disclosureSimpleSearchMain" ) d.scrap() elif flag == 'ns': ns = StockMode('005930') ns.scrap() elif flag == 'nm': nm = NaverMovie( 'https://movie.naver.com/movie/sdb/rank/rmovie.nhn') nm.scrap() elif flag == 'nl': nl = NaverLogin('https://nid.naver.com/nidlogin.login') nl.auto_login()