File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class Loklak(object):
2020
2121 """
2222
23- baseUrl = 'http://loklak.org/'
23+ baseUrl = 'http://api. loklak.org/'
2424 baseUrlSusi = 'http://api.asksusi.com/'
2525 name = None
2626 followers = None
@@ -37,17 +37,17 @@ class Loklak(object):
3737 action = None
3838 data = {}
3939
40- def __init__ (self , baseUrl = 'http://loklak.org/' ):
40+ def __init__ (self , baseUrl = 'http://api. loklak.org/' ):
4141 """Constructor of the Loklak class.
4242
4343 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/ ).
4545
4646 """
4747 baseUrl = re .findall ('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+' , baseUrl )
4848 try :
4949 if baseUrl [0 ]:
50- if baseUrl [0 ] != 'http://loklak.org/' :
50+ if baseUrl [0 ] != 'http://api. loklak.org/' :
5151 url_test = self .hello ()
5252 if url_test ['status' ] == 'ok' :
5353 self .baseUrl = baseUrl [0 ]
You can’t perform that action at this time.
0 commit comments