Exemplo n.º 1
0
    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.scap()
        elif flag == 'k':
            k = KrxCrawler(
                "https://sports.news.naver.com/kbaseball/record/index.nhn?category=kbo"
            )
            k.scarp()
        elif flag == 'ns':
            ns = StockModel('005930')
            ns.scarp()
        elif flag == 'nm':
            nm = NaverMoive(
                'https://movie.naver.com/movie/sdb/rank/rmovie.nhn')
            nm.scap()
        elif flag == 'nl':
            nl = NaverLogin('https://nid.naver.com/nidlogin.login')
            nl.auto_login()


# https://sports.news.naver.com/kbaseball/record/index.nhn?category=kbo
Exemplo n.º 2
0
    def exec(self, flag):
        if flag == 'a':
            a = AssemblyCrawler(
                'http://likms.assembly.go.kr/bill/billDetail.do?billId=PRC_R1N9J0N1X0Y9A1O8S3R5Z3J3K9O8N7'
            )
            return a.scrap()

        elif flag == 'b':
            b = BugsCrawler(
                'https://music.bugs.co.kr/chart/track/realtime/total?chartdate=20190810&charthour=11'
            )
            return b.scrap()

        elif flag == 'c':
            c = KospiCrawler('https://finance.naver.com/sise/')
            return c.scrap()

        elif flag == 'k':
            k = KrxCrawler(
                'http://kind.krx.co.kr/disclosureSimpleSearch.do?method=disclosureSimpleSearchMain'
            )
            return k.scrap()

        elif flag == 'ns':
            ns = StockModel(str('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()
Exemplo n.º 3
0
    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()
Exemplo n.º 4
0
    def exec(flag, url):
        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('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://naver.com')