Skip to content

Conversation

@suyash469
Copy link

Summary

Refactored main_scraping.py to replace hardcoded university lists with a standard Command Line Interface (CLI) using argparse.

Changes

  • Added argparse to allow dynamic selection of universities (e.g., python main_scraping.py --universities UCSD UCLA).
  • Added validation to check if the corresponding config file exists before attempting to scrape, preventing runtime crashes.
  • Preserved existing logging and variable naming conventions.

Testing

  • Tested with valid arguments (--universities UCSD) -> Success.
  • Tested with invalid arguments (--universities FAKE) -> Gracefully skipped with error message instead of crashing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant