text_plain_output_1.png
from bs4 import BeautifulSoup

import requests #library used to download web pages.

import requests
URL = 'https://nssdc.gsfc.nasa.gov/planetary/factsheet/planet_table_ratio.html'

page = requests.get(URL)

page.status_code

HTMLstr = page.text

soup = BeautifulSoup(HTMLstr, 'html.parser')

soup.title

soup.a

all_links = soup.find_all('a')
for link in all_links[0:20]:
    print(link.get('href'))