ind elements by class</span>
    navigation_links = soup.find_all('a', class_='nav-link')
    
    <span class="code-comment"># Find elements with specific attributes</span>
    external_links = soup.find_all('a', attrs={'rel': 'external'})
    
    <span class="code-comment"># Extract attribute values</span>
    for link in soup.find_all('a'):
        href = link.get('href')
        print(f"Link: {href}")
else:
    print(f"Failed to retrieve the page: {response.status_code}")</pre>
                </div>
 