How jldevezas/survivor-network-analysis works
Main Components
• Input Module – This is the command-line interface where the user supplies the URL for the Survivor Wiki page and an optional episode number.
• Data Extraction Component – Although not refactored into multiple files, conceptually this part handles the scraping/extraction of voting data from the provided URL.
• CON Score Analyzer – The core logic that builds the voting network and calculates the CON score for each contestant based on the extracted data.
• Output/Result Component – The section that formats and prints (or returns) the ranking of contestants based on their scores to the console.
• Setup and Dependencies – Although not shown as separate modules, acknowledge that the virtual environment and package installation (via requirements.txt) set up the runtime for the script.
Relationships and Data Flow
• The process begins with user input through a command-line interface (e.g., by executing compute_con_score.py with parameters).
• That input is passed to the Data Extraction Component, which fetches and parses the Survivor Wiki page to obtain the voting network data.
• The parsed data then feeds into the CON Score Analyzer, where the script computes the ranking scores.
• Once computed, the output component displays the result to the user.
Architectural / Design Elements
• Although there are no external services, you might illustrate how the system interacts with an external “web source” (the Fandom Wiki) to emphasize external dependency.
Relevant Technologies
• Python (as the application language).
• (Any libraries mentioned in requirements.txt; even if not explicitly listed in the file tree you have, you might assume common libraries for HTTP requests or parsing HTML such as requests or BeautifulSoup are used.)
• Command-line interface – highlighting that the user interacts with the system via the terminal.