Skip to main content

Module stackoverflow

Module stackoverflow 

Source
Expand description

Helpers for capturing Stack Overflow question pages.

Direct non-browser fetches of question pages can receive an anti-bot challenge instead of the question content. For HTML-derived outputs we use the public StackPrinter export for the same question, while screenshot capture continues to use the original page URL.

Functionsยง

fetch_stackoverflow_html
Fetch a Stack Overflow question through StackPrinter.
is_stackoverflow_question_url
Return true when url points at a Stack Overflow question page.
stackprinter_url
Build the public StackPrinter URL for a Stack Overflow question.