Skip to content

Instantly share code, notes, and snippets.

View donniebishop's full-sized avatar

Donnie Bishop donniebishop

View GitHub Profile
@donniebishop
donniebishop / pokestat.py
Last active December 27, 2019 10:51
i3-blocklet for checking Pokemon Go status
#!/usr/bin/env python3
from bs4 import BeautifulSoup
import requests
POKEURL = 'http://cmmcd.com/PokemonGo/'
r = requests.get(POKEURL)
try:
import lxml
@donniebishop
donniebishop / pokestatus.py
Last active July 22, 2016 13:59
Improvement to my Pokemon GO server status checking thingy. Still hating myself.
#!/usr/bin/env python3
import requests, re
from bs4 import BeautifulSoup
URL = 'http://www.mmoserverstatus.com/pokemon_go'
# Pick the code for the country you live in or that you're closest to.
country = 0