예제 #1
0
 def spider(self, request):
     """
     description: 电影简介爬虫 - 从豆瓣电影取数据
     parameters:
       - name: tag
         type: string
         required: true
         location: query
         description: 热门/
       - name: type
         type: string
         required: true
         location: query
         description: movie / tv
     """
     m_type = request.GET.get('type', 'movie')
     m_tag = request.GET.get('tag', '热门')
     return utils.get_movie_simple(m_type, m_tag)
예제 #2
0
def auto_get_movie_simple_5():
    get_movie_simple('tv', '日剧')
예제 #3
0
def auto_get_movie_simple_6():
    get_movie_simple('tv', '韩剧')
예제 #4
0
def auto_get_movie_simple_4():
    get_movie_simple('tv', '美剧')
예제 #5
0
def auto_get_movie_simple_3():
    get_movie_simple('tv', '国产剧')
예제 #6
0
def auto_get_movie_simple_2():
    get_movie_simple('tv', '热门')
예제 #7
0
def auto_get_movie_simple_1():
    get_movie_simple('movie', '最新')
예제 #8
0
def auto_get_movie_simple_0():
    get_movie_simple('movie', '热门')