

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}.''')









def      lowerCamelCase_						(			UpperCamelCase__							: str )	->			list:





				"""simple docstring"""


				if n_term == "":
								return []
				__lowerCamelCase									=       []
				for temp in range(int(UpperCamelCase__ ) ):
								series.append(F"""1/{temp + 1}""" if series else '1' )
				return series


if __name__ == "__main__":
					__A								=       input("Enter the last number (nth term) of the Harmonic Series")
					print("Formula of Harmonic Series => 1+1/2+1/3 ..... 1/n")
					print(harmonic_series(nth_term))


