<jupyter_start><jupyter_text>NASA Mars News<jupyter_code>news_title = soup.find('div', class_="content_title").find('a').text
print(f'The latest NASA article is titled: {news_title}')
news_p = soup.find('div', class_="rollover_description_inner").text
print(f'{news_p}')<jupyter_output>Did you know NASA's next Mars rover has a nearly identical sibling on Earth for testing? Even better, it's about to roll for the first time through a replica Martian landscape.<jupyter_text>JPL Mars Space Images - Featured Image<jupyter_code>executable_path = {'executable_path': 'C:/Users/asiah/Documents/git_repos/mission_to_mars/chromedriver.exe'}
browser = Browser('chrome', **executable_path, headless=False)
mars_url = "https://www.jpl.nasa.gov/spaceimages/?search=&category=Mars"
browser.visit(mars_url)
featured_image = browser.find_by_id("full_image")
featured_image.click()
src = browser.find_by_css('article')['style']
print(src)
background_image_url = "/spaceimages/images/wallpaper/PIA17448-1920x1200.jpg"
featured_image_url = mars_url + background_image_url
featured_image_url<jupyter_output><empty_output><jupyter_text>Mars Facts<jupyter_code>mars_facts_url = "https://space-facts.com/mars/"
mars_facts_html = pd.read_html(mars_facts_url)

mars_facts_df = mars_facts_html[0]

mars_facts_df.columns = ['Description', 'Value']

mars_facts_df
# mars_facts_table = mars_facts_df.to_html('mars_facts_table.html')<jupyter_output><empty_output><jupyter_text>Mars Hemispheres<jupyter_code>mars_hemi_url = "https://astrogeology.usgs.gov/search/results?q=hemisphere+enhanced&k1=target&v1=Mars"
browser.visit(mars_hemi_url)
# Cerberus
cerberus_hemisphere = browser.find_by_tag("h3")
cerberus_hemisphere.click()
open_button = browser.find_by_id("wide-image-toggle")
open_button.click()
c_url = browser.find_by_tag('img[class="wide-image"]')['src']
print(c_url)
# Schiaparelli
schiaparelli_hemisphere = browser.find_by_tag("h3")[1]
schiaparelli_hemisphere.click()
open_button = browser.find_by_id("wide-image-toggle")
open_button.click()
s_url = browser.find_by_tag('img[class="wide-image"]')['src']
print(s_url)
# Syrtis Major
syrtis_major_hemisphere = browser.find_by_tag("h3")[2]
syrtis_major_hemisphere.click()
open_button = browser.find_by_id("wide-image-toggle")
open_button.click()
sm_url = browser.find_by_tag('img[class="wide-image"]')['src']
print(sm_url)
# Valles Marineris 
valles_marineris_hemisphere = browser.find_by_tag("h3")[3]
valles_marineris_hemisphere.click()
open_button = browser.find_by_id("wide-image-toggle")
open_button.click()
vm_url = browser.find_by_tag('img[class="wide-image"]')['src']
print(vm_url)
hemisphere_image_urls = [
    {"title": "Valles Marineris Hemisphere", "img_url": vm_url},
    {"title": "Cerberus Hemisphere", "img_url": c_url},
    {"title": "Schiaparelli Hemisphere", "img_url": s_url},
    {"title": "Syrtis Major Hemisphere", "img_url": sm_url},
]

hemisphere_image_urls<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14309993201903468, 'fraction_numerical': 0.007817811012916384, 'mean_word_length': 9.11340206185567, 'pattern_counts': {'":': 8, '<': 16, '<?xml version=': 0, '>': 16, 'https://': 3, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '121384', 'license': 'ADSL', 'n_tokens_mistral': 1162, 'n_tokens_neox': 1125, 'n_words': 153, 'path': '.ipynb_checkpoints/mongodb_queries-checkpoint.ipynb', 'repo_name': 'Asia-Hewett/mission_to_mars', 'size': '2942'}