Library of web-related functions for HTML manipulation, HTTP processing, URL handling, and encoding detection
84
{
"context": "This criteria evaluates how effectively the engineer uses w3lib's advanced query parameter filtering capabilities to implement URL parameter sanitization functions. The focus is on proper usage of url_query_cleaner and related URL manipulation functions from w3lib.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses url_query_cleaner",
"description": "Uses w3lib.url.url_query_cleaner function for query parameter filtering operations rather than manual string manipulation or urllib parsing",
"max_score": 35
},
{
"name": "Blacklist implementation",
"description": "Correctly implements sanitize_url using url_query_cleaner with remove=False parameter to blacklist specific parameters",
"max_score": 15
},
{
"name": "Whitelist implementation",
"description": "Correctly implements filter_url_params using url_query_cleaner with remove=True parameter (or by inverting logic) to whitelist specific parameters",
"max_score": 15
},
{
"name": "Duplicate removal",
"description": "Correctly implements remove_duplicate_params using url_query_cleaner with unique=True parameter to eliminate duplicate parameters",
"max_score": 15
},
{
"name": "Fragment handling",
"description": "Correctly implements remove_fragment using url_query_cleaner with keep_fragments=False parameter to strip URL fragments",
"max_score": 10
},
{
"name": "Proper imports",
"description": "Correctly imports url_query_cleaner from w3lib.url module (e.g., from w3lib.url import url_query_cleaner)",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-w3libevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10