Objects

class scpython.model.Article(data)[source]

Represents any article on Wikidot.

Attributes

id int — The article ID.

rating int — The article’s rating.

url str — The article’s URL.

tags str[] — The article’s tags.

poster str — The user who first posted the article.

page_version int — The number of changes the page went through.

last_change datetime — The day the page was last changed.

toJson()[source]

Turns the data into a dictionary.

Returns
json dict — A dictionary containing all of the article’s data.
class scpython.model.ScpArticle(data)[source]

Represents an SCP Article on Wikidot.

Attributes

page_source str — The SCP’s text.

number str — The SCP’s number. Also works for Joke SCPs.

branch Branch — The SCP’s original branch.

language Language — The fetched SCP’s language.

is_joke boolean — Whether the SCP has a -J flag.

full_code str — The SCP’s full code ("SCP-XXXX-LANG-J").

toJson()[source]

Turns the data into a dictionary.

Return
json dict — A dictionary containing all of the SCP article’s data.
class scpython.Branch[source]

All SCP official branches.

Each variable is set to the branch’s link.

Available branches are:
  • INT
  • EN
  • RU
  • KO
  • CN
  • FR
  • PL
  • ES
  • TH
  • JP
  • DE
  • IT
  • UA
  • PT
  • BR
  • CZ
class scpython.Language[source]

All SCP official languages.

Available languages are:
  • EN
  • RU
  • KO
  • CN
  • FR
  • PL
  • ES
  • TH
  • JP
  • DE
  • IT
  • UA
  • PT
  • BR
  • CZ