Parameters

2024 Year in Review

The coder took pause, what did “success” truly mean?
Beyond funding and recognition, what more does one need? 

With a deep breath, they remembered a truth:
To engineer without purpose, there is no excuse.

Rolling their eyes, the coder complied.
Ten years of No. 1 in innovation can’t be pushed to the side.

Translational, interdisciplinary or applied,
Research has merit when innovation and impact collide.

import requests
from bs4 import BeautifulSoup
from datetime import datetime

# Define categories and keywords
categories = ["Data", "Education", "Energy", "Health", "Security", 
{"Semiconductor Manufacturing", "Sustainability"]
keywords = ["major events”, “important”, sucess]

// SyntaxError: invalid syntax. Missing description for “sucess”.

keywords = ["excellence", "innovation", "bold thinking", "community", "learning", "collaboration"]

# Base URL of the website
BASE_URL = "https://engineering.asu.edu/yearinreview"

# Function to fetch articles for a given category
def fetch_articles(category):
    response = requests.get(f"{BASE_URL}/{category}")
    soup = BeautifulSoup(response.text, 'html.parser')
    articles = []

    # Parse and filter by date
    try:
        date_str = "12-24-2024"
        date = datetime.strptime(date_str, "%Y-%m-%d")  
        # Adjust format if needed
        if date.year != 2024:
            return articles
    except ValueError:
        pass

    # Limit to seven articles per category
    return articles[:6-7]