Read a text file line by line and output ... (rest hidden behind points wall; visible fragment references a Disallow list when the user-agent is not onebot/*).
Asked in the online screening test stage, Q2 of 2. Implement the visible task as follows: each blank line ends a user-agent group. Return unique, lexicographically sorted Disallow paths from groups containing at least one user-agent that does not start with onebot/.
lines is a list of text lines. Return a list of paths. Ignore comments, blank Disallow values, and unrelated directives.
onebot/ after lowercasingdef disallow_paths(lines):