from maths.prime_factors import prime_factors


def 	lowerCamelCase					(	UpperCamelCase     :				int							)   ->    int:
		if not isinstance(UpperCamelCase			,       UpperCamelCase							):
				_lowerCamelCase				   =  F"""Input value of [number={number}] must be an integer"""
				raise TypeError(UpperCamelCase							)
		if number < 1:
				raise ValueError('Input must be a positive integer'							)
		return -1 if len(prime_factors(UpperCamelCase							)							) % 2 else 1


if __name__ == "__main__":
				import doctest

				doctest.testmod()
from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
				A						=			input('Enter image url: ').strip()
				print(F'''Downloading image from {url} ...''')
				A						=			BeautifulSoup(requests.get(url).content, 'html.parser')
				# The image URL is in the content field of the first meta tag with property og:image
				A						=			soup.find('meta', {'property': 'og:image'})['content']
				A						=			requests.get(image_url).content
				A						=			F'''{datetime.now():%Y-%m-%d_%H:%M:%S}.jpg'''
				with open(file_name, 'wb') as fp:
								fp.write(image_data)
				print(F'''Done. Image saved to disk as {file_name}.''')