Пример #1
0
import sys
sys.path.insert(0, '/Users/user/SbaProjects')

from crawler.entity import Entity
from crawler.service import Service


class Controller:
    def __init__(self):
        self.entity = Entity()
        self.service = Service()


if __name__ == '__main__':
    api = Controller()
    service = Service()
    service.naver_cartoon()
    service.naver_movie()
Пример #2
0
import sys
sys.path.insert(0, '/Users/saltQ/sbaProject')
from crawler.entity import Entity
from crawler.service import Service

class Controller:
    def __init__(self):
        self.entity = Entity()
        self.service = Service()

if __name__ == '__main__':
    api = Controller()
    service = Service()
    service.naver_cartoon('https://comic.naver.com/webtoon/weekday.nhn')
    service.naver_movie('http://movie.naver.com/movie/sdb/rank/rmovie.nhn')