This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import argparse | |
| import requests | |
| # Configure Argument Parser | |
| parser = argparse.ArgumentParser( | |
| description="Retrieve an OAuth 2.0 access token using Client Credentials Flow and call Microsoft Graph API." | |
| ) | |
| parser.add_argument("--tenant-id", required=True, help="Azure AD Tenant ID") | |
| parser.add_argument("--client-id", required=True, help="Azure AD Application (Client) ID") | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import requests | |
| from bs4 import BeautifulSoup | |
| from datetime import datetime | |
| import argparse | |
| BASE_URL = "https://blog.badsectorlabs.com/" | |
| START_PAGE = "index.html" | |
| def get_posts_from_page(url): | |
| """Extract posts (date, title, link) from an index page.""" | 
OlderNewer