-
Notifications
You must be signed in to change notification settings - Fork 3
/
placeholders.py
72 lines (53 loc) · 2.17 KB
/
placeholders.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
from flask import Blueprint, redirect
placeholders = Blueprint("placeholders", __name__)
@placeholders.route("/placekitten/<height>/<width>")
def placekitten(height, width):
"""__..--''``---....___ _..._ __
/// //_.-' .-/"; ` ``<._ ``.''_ `. / // /
///_.-' _..--.'_ \ `( ) ) // //
/ (_..-' // (< _ ;_..__ ; `' / ///
/ // // // `-._,_)' // / ``--...____..-' /// / //
Enjoy the next 45 minutes
"""
return redirect("http://placekitten.com/{}/{}".format(height, width))
@placeholders.route("/placepuppy/<height>/<width>")
def placedog(height, width):
# .--~~,__
#:-....,-------`~~'._.'
# `-,,, ,_ ;'~U'
# _,-' ,'`-__; '--.
# (_/'~~ ''''(;
# Enjoy the next 45 minutes (again)
return redirect("http://place-puppy.com/{}/{}".format(height, width))
@placeholders.route("/httpcat/<status>")
def httpcat(status):
"""__..--''``---....___ _..._ __
/// //_.-' .-/"; ` ``<._ ``.''_ `. / // /
///_.-' _..--.'_ \ `( ) ) // //
/ (_..-' // (< _ ;_..__ ; `' / ///
/ // // // `-._,_)' // / ``--...____..-' /// / //
Enjoy the next 45 minutes
"""
return redirect("http://http.cat/{}".format(status))
@placeholders.route("/cataas")
def cataas():
"""__..--''``---....___ _..._ __
/// //_.-' .-/"; ` ``<._ ``.''_ `. / // /
///_.-' _..--.'_ \ `( ) ) // //
/ (_..-' // (< _ ;_..__ ; `' / ///
/ // // // `-._,_)' // / ``--...____..-' /// / //
Enjoy the next 45 minutes
"""
return redirect("https://cataas.com/cat")
@placeholders.route("/cataas/gif")
def cataas_gif():
"""
no more cat ascii art :(
"""
return redirect("https://cataas.com/cat/gif")
@placeholders.route("/cataas/<tag>")
def cataas_tag(tag):
return redirect("https://cataas.com/cat/{}".format(tag))
@placeholders.route("/cataas/gif/<tag>")
def cataas_gif_tag(tag):
return redirect("https://cataas.com/cat/gif/{}".format(tag))