Embed interactive quizzes from sborniktestov.ru into any website. 15,000+ quizzes: personality tests, knowledge checks, professional assessments, and more.
Python library + CLI tool. Generates the HTML that the embed loader expects.
pip install sborniktestov-embedfrom sborniktestov_embed import Embed
# Basic embed
e = Embed(12345)
print(e.render())
# Customized
e = Embed(12345,
comments="1",
header="0",
color_accent="4CAF50",
color_bg="f5f5f5",
radius="12",
font_question="18",
)
print(e.render())<div class="st-embed" data-quiz-id="12345" data-comments="1" data-color-accent="4CAF50">
<a href="https://sborniktestov.ru">Sbornik Testov</a>
</div>
<script async src="https://sborniktestov.ru/embed/loader.js"></script>e.render() # Full HTML: div + script
e.div() # Container div only (when loader.js is already on page)
e.script() # Script tag only
e.iframe_url() # Direct iframe URL (bypassing loader.js)# Full embed code
sborniktestov-embed 12345
# Just the iframe URL
sborniktestov-embed 12345 --url-only
# Customized
sborniktestov-embed 12345 --comments --no-header --color-accent 4CAF50 --radius 12
# Div only (when you have multiple quizzes and one script tag)
sborniktestov-embed 12345 --div-onlyDisplay: comments, related, header, desc, stats (all 0/1)
Layout: width, min_height, max_width
Colors (hex, no #): color_accent, color_bg, color_title, color_text, color_btn_text, color_selected_bg, color_progress_bg, color_progress_fill, color_border, color_border_selected, color_btn_prev, color_hover
Typography (px): font_title, font_desc, font_stats, font_question, font_answer, radius, padding
- WordPress —
[sborniktestov id="12345"] - Joomla —
{sborniktestov id=12345} - Moodle — auto-embed filter
- Drupal — module
Use the embed configurator to customize with a live preview.
MIT — sborniktestov.ru