CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-w3lib

Library of web-related functions for HTML manipulation, HTTP processing, URL handling, and encoding detection

84

0.91x
Overview
Eval results
Files

rubric.jsonevals/scenario-6/

{
  "context": "This evaluation assesses how effectively the engineer uses w3lib's HTML processing capabilities to extract and handle meta refresh redirect information. The focus is specifically on utilizing w3lib's get_meta_refresh function and URL manipulation utilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses get_meta_refresh",
      "description": "Implementation correctly uses w3lib.html.get_meta_refresh() function to parse HTML content and extract meta refresh information (delay interval and URL).",
      "max_score": 40
    },
    {
      "name": "Handles baseurl parameter",
      "description": "Correctly passes the base_url parameter to get_meta_refresh() to enable proper resolution of relative URLs in the meta refresh tag.",
      "max_score": 25
    },
    {
      "name": "Processes return value",
      "description": "Correctly handles the tuple return value (interval, url) from get_meta_refresh(), including the case where it returns None when no meta refresh tag is found.",
      "max_score": 20
    },
    {
      "name": "Returns correct format",
      "description": "Implementation returns the expected tuple format (int, str) for delay and URL, and correctly returns None when no meta refresh is found, matching the specification.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-w3lib

tile.json