import requests
import bs4

# URL of site we want to scrape
URL = "https://pybit.es/pages/projects.html"

def pull_site():
    raw_site_page = requests.get(URL) #Pull down the site.
    raw_site_page.raise_for_status()  #Confirm site was pulled. Error if not
    return raw_site_page

def scrape(site):
    header_list = []
    #Create BeautifulSoup object
    soup = bs4.BeautifulSoup(site.text, 'html.parser')
    html_header_list = soup.select('.projectHeader')

    for headers in html_header_list:
        header_list.append(headers.getText())
    for headers in header_list:
        print(headers)


if __name__ == "__main__":
    site = pull_site()
    scrape(site)

import requests
import bs4

# URL of site we want to scrape
URL = "https://pybit.es/pages/projects.html"

def pull_site():
    raw_site_page = requests.get(URL) #Pull down the site.
    raw_site_page.raise_for_status()  #Confirm site was pulled. Error if not
    return raw_site_page

def scrape(site):
    header_list = []
    #Create BeautifulSoup object
    soup = bs4.BeautifulSoup(site.text, 'html.parser')
    html_header_list = soup.select('.projectHeader')

    for headers in html_header_list:
        header_list.append(headers.getText())
    for headers in header_list:
        print(headers)


if __name__ == "__main__":
    site = pull_site()
    scrape(site)

# URL of site we want to scrape #Pull down the site. #Confirm site was pulled. Error if not #Create BeautifulSoup object