- Download the files in this repo/gist! into a decent folder
- Access that folder on a terminal (cmd or powershell should work but haven't tested out of Linux distros)
- Create your account at https://www.thunderforest.com/docs/apikeys/ (free or paid, up to you)
- Alternatively: can also use https://apidocs.geoapify.com/playground/maps/ (defaults to thunderforest (style atlas))
- Validate your account on your email using received validation link.
- Log in
- Copy API Key from website.
To avoid having to scroll into a big ship list, one can add a Prefix into their ship names... so they would pop up first on machine lists!!
add your favourite ships by key into fav_ships.txt
at same dir as the ps1 script.
Example:
vehicle_nameANVL_Carrack
vehicle_NameANVL_C8R_Pisces_Rescue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import os | |
def getpassword(service, account): | |
def decode_hex(s): | |
s = eval('"' + re.sub(r"(..)", r"\x\1", s) + '"') | |
if "" in s: s = s[:s.index("")] | |
return s |
I hereby claim:
- I am droberin on github.
- I am drober (https://keybase.io/drober) on keybase.
- I have a public key ASDL-_jm3JpDePPx2uwhTFb3uL4WHd9SiSe1RWMVnUkzmwo
To claim this, I am signing this object:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import lxml.html as LH | |
import shutil | |
import requests | |
temp_dir = "/tmp/avatar_tmp" | |
if not os.path.isdir("html/avatars"): | |
os.mkdir("html/avatars") | |
if os.path.isdir(temp_dir): |