Read Function - Tikolu/SETTI GitHub Wiki

The Read function can be used to get the contents of a page.

Usage

setti.Read(page)

page - the page you would like to access, if not specified, will target the main page

The read command will return the contents of the page page.

Examples

print(setti.Read("itc"))

Prints out the contents of http://htwins.net/edit/itc to the console.


touched = setti.Read("spaghet")

Sets the variable touched to the contents of http://htwins.net/edit/spaghet.


if len(setti.Read("bean")) > 0:
     print("It's not empty! :D")
else:
     print("It's empty, bean is sad. D:")

Checks is http://htwins.net/edit/bean is empty.