Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 7aac218

Browse files
Yawn.
1 parent d116b3e commit 7aac218

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Python library for interacting with the Meower API
1010
- `meower.page_len()` - Shows the number of home pages
1111
- `meower.current_page()` - Returns the current page number
1212
- `meower.change_page(num)` - Changes the page
13-
- `meower.ping()` - "Pings" the Meower API, by timing `requests` to fetch the root page
13+
- `meower.ping()` - "Pings" the Meower API, by timing `requests` to fetch the root
14+
- `meower.argoTunnel()` - Checks if there is a Argo Tunnel error on the API
1415
## Installing
1516
`meower.py` is now on [PyPI](https://pypi.org/project/meower/) (Python Package Index)! That means that you can use `pip3`, or `pip` to install it now!
1617
```
@@ -22,7 +23,7 @@ For some reason (maybe because of the lack of a class), you can't use the tradit
2223
from meower import meower
2324
```
2425
## Building
25-
Before you build, you'd might want to double-check that you have all of the dependenceys:
26+
Before you build, you'd might want to double-check that you have all of the dependencies:
2627
```
2728
pip3 install -r requirements.txt
2829
```

src/meower/meower.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,11 @@ def ping():
8484
stopwatch.start()
8585
get("https://api.meower.org/").text
8686
stopwatch.stop()
87-
return stopwatch.elapsed
87+
return stopwatch.elapsed
88+
89+
def argoTunnel():
90+
res = get("https://api.meower.org/").text
91+
if (res[1] == "<"):
92+
return True
93+
else:
94+
return False

0 commit comments

Comments
 (0)