


import requests

_snake_case	:						Optional[Any]         =							"YOUR API KEY"







def 							lowerCAmelCase_	(   __lowerCamelCase				,      __lowerCamelCase = giphy_api_key      ):
							__snake_case						:     Optional[int]									=  "+".join(query.split()      )
							__snake_case						:     List[Any]									=  F'https://api.giphy.com/v1/gifs/search?q={formatted_query}&api_key={api_key}'
							__snake_case						:     Any									=  requests.get(__lowerCamelCase      ).json()["data"]
							return [gif["url"] for gif in gifs]


if __name__ == "__main__":
			print("\n".join(get_gifs("space ship")))



'''simple docstring'''



def A ():
						for n in range(1					,      1000000						):
												yield n * (n + 1) // 2


def A (__lowerCamelCase :List[Any]						):
						_lowerCAmelCase    		=					1
						_lowerCAmelCase    		=					2
						while i * i <= n:
												_lowerCAmelCase    		=					0
												while n % i == 0:
																		n //= i
																		multiplicity += 1
												divisors_count *= multiplicity + 1
												i += 1
						if n > 1:
												divisors_count *= 2
						return divisors_count


def A ():
						return next(i for i in triangle_number_generator() if count_divisors(__lowerCamelCase						) > 500						)


if __name__ == "__main__":
						print(solution())
