Skip to content

Commit

Permalink
Adding Initial Script File
Browse files Browse the repository at this point in the history
  • Loading branch information
aljcalandra authored Jun 12, 2019
1 parent 041f7e9 commit d36ec26
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ffxiv-status.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import requests


def find_ffxiv_server_status(server):
r = requests.get("https://na.finalfantasyxiv.com/lodestone/worldstatus/").text
server_location = r.find(server)
server_status_location = r.rfind('data-tooltip="', 0, server_location)
return r[server_status_location:server_location].split()[1]

0 comments on commit d36ec26

Please sign in to comment.