Skip to content

Commit

Permalink
Updating directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
aljcalandra committed Jun 12, 2019
1 parent d36ec26 commit 669d17c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,6 @@ venv.bak/

# mypy
.mypy_cache/

# pycharm
.idea/
16 changes: 8 additions & 8 deletions ffxiv-status.py → ffxiv/ffxiv-status.py
Original file line number Diff line number Diff line change
@@ -1,8 +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]
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 669d17c

Please sign in to comment.