<jupyter_start><jupyter_text>IMAGE<jupyter_code>url = "https://data-class-jpl-space.s3.amazonaws.com/JPL_Space/index.html"
from webdriver_manager.chrome import ChromeDriverManager
def init_browser():
    executable_path = {'executable_path': ChromeDriverManager().install()}
    return Browser('chrome', **executable_path, headless=False)
browser= init_browser()
url = 'https://data-class-jpl-space.s3.amazonaws.com/JPL_Space/index.html'
browser.visit(url)
#create HTMl Object
html = browser.html

soup = BeautifulSoup(html, "html.parser")
print(soup.prettify())
body = soup.find_all("body")
div = body[0].find("div", class_="floating_text_area")
image = div.find("a")
image

pic_source = []
pic = image['href']
pic_source.append(pic)
featured_image_url = 'https://data-class-jpl-space.s3.amazonaws.com/JPL_Space/' + pic
featured_image_url<jupyter_output><empty_output><jupyter_text>MARS FActs<jupyter_code>url='https://space-facts.com/mars/'
response = requests.get(url)
soup = BeautifulSoup(response.text, 'html.parser')
table = pd.read_html(url)
facts_df = table[0]
facts_df.rename(columns = { 0 :"facts",
               1 : "values"})
facts_html = facts_df.to_html()
facts_html = facts_html.replace("\n","")
facts_html<jupyter_output><empty_output><jupyter_text>IMAGES OF THE HEMISPHERE<jupyter_code>url = "https://astrogeology.usgs.gov/search/map/Mars/Viking/cerberus_enhanced"
response = requests.get(url)
soup = BeautifulSoup(response.text, "html.parser")
pic = soup.find_all( "div", class_ = "wide-image-wrapper")
image = pic[0].find("li")
image_url = image.find("a")['href']
hemisphere_title = soup.find("h2", class_="title").text
print(hemisphere_title)
print(image_url)
url_2 = "https://astrogeology.usgs.gov/search/map/Mars/Viking/schiaparelli_enhanced"
response_2 = requests.get(url_2)
soup_2 = BeautifulSoup(response_2.text, "html.parser")
pic_2 = soup_2.find_all( "div", class_ = "wide-image-wrapper")
image_2 = pic_2[0].find("li")
image_url_2 = image_2.find("a")['href']
hemisphere_title_2 = soup_2.find("h2", class_="title").text
print(hemisphere_title_2)
print(image_url_2)
url_3="https://astrogeology.usgs.gov/search/map/Mars/Viking/syrtis_major_enhanced"
response_3 = requests.get(url_3)
soup_3 = BeautifulSoup(response_3.text, "html.parser")
pic_3 = soup_3.find_all( "div", class_ = "wide-image-wrapper")
image_3 = pic_3[0].find("li")
image_url_3 = image_3.find("a")['href']
hemisphere_title_3 = soup_3.find("h2", class_="title").text
print(hemisphere_title_3)
print(image_url_3)
url_4="https://astrogeology.usgs.gov/search/map/Mars/Viking/valles_marineris_enhanced"
response_4 = requests.get(url_4)
soup_4 = BeautifulSoup(response_4.text, "html.parser")
pic_4 = soup_4.find_all( "div", class_ = "wide-image-wrapper")
image_4 = pic_4[0].find("li")
image_url_4 = image_4.find("a")['href']
hemisphere_title_4 = soup_4.find("h2", class_="title").text
print(hemisphere_title_4)
print(image_url_4)
hemisphere_dict= [
    {"title":hemisphere_title, "image_url":image_url},
    {"title":hemisphere_title_2, "image_url":image_url_2},
    {"title":hemisphere_title_3, "image_url":image_url_3},
    {"title":hemisphere_title_4, "image_url":image_url_4},
]
hemisphere_dict<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup