Skip to main content

so_rep()

HTML for a Stack Overflow reputation badge.

Usage

Source

so_rep(
    username,
    user_id,
)

Parameters

username: str

Stack Overflow username (the slug in your profile URL).

user_id: str or int
Stack Overflow user ID.

Returns

str
An <a> tag wrapping the badge image.

Examples

>>> print(so_rep("martin-frigaard", 4926446))  # doctest: +ELLIPSIS

…