File "debug_ev2.py"

Full path: /home/algopkco/public_html/scraper/debug_ev2.py
File size: 438 B (438 B bytes)
MIME-type: text/plain
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

import importlib.util
import re

spec = importlib.util.spec_from_file_location("fev", r"scraper\fetch_examveda.py")
mod = importlib.util.module_from_spec(spec)
spec.loader.exec_module(mod)

html = open(
    r"https___www_examveda_com_competitive_english_practice_mcq_question_on_verbal_analogies_.html",
    encoding="utf-8",
).read()
arts = mod.split_articles(html)
a = arts[0]
s = a.find("question-options")
print(repr(a[s : s + 1200]))