Exemplo n.º 1
0
	def handle(self, *args, **options):
		
		if len(args) == 0:
			crawl_anime()

		else:
			for anime_name in args:				
				crawl_specific_anime(anime_name)
Exemplo n.º 2
0
	def handle_noargs(self, **options):

		#all anime which needs to be initialized
		anime_to_initialize = AnimeAlias.objects.filter(do_initialize=True)

		for anime in anime_to_initialize:
			crawl_specific_anime(anime.title)
			anime.set_initialized()
			anime.save()