File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Loklak(object):
20
20
21
21
"""
22
22
23
- baseUrl = 'http://loklak.org/'
23
+ baseUrl = 'http://api. loklak.org/'
24
24
baseUrlSusi = 'http://api.asksusi.com/'
25
25
name = None
26
26
followers = None
@@ -37,17 +37,17 @@ class Loklak(object):
37
37
action = None
38
38
data = {}
39
39
40
- def __init__ (self , baseUrl = 'http://loklak.org/' ):
40
+ def __init__ (self , baseUrl = 'http://api. loklak.org/' ):
41
41
"""Constructor of the Loklak class.
42
42
43
43
Args:
44
- baseUrl (str): Base URL for accessing the APIs (default=http://loklak.org).
44
+ baseUrl (str): Base URL for accessing the APIs (default=http://api. loklak.org/ ).
45
45
46
46
"""
47
47
baseUrl = re .findall ('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+' , baseUrl )
48
48
try :
49
49
if baseUrl [0 ]:
50
- if baseUrl [0 ] != 'http://loklak.org/' :
50
+ if baseUrl [0 ] != 'http://api. loklak.org/' :
51
51
url_test = self .hello ()
52
52
if url_test ['status' ] == 'ok' :
53
53
self .baseUrl = baseUrl [0 ]
You can’t perform that action at this time.
0 commit comments