Skip to content

Instantly share code, notes, and snippets.

View KishoreKaushal's full-sized avatar
💭
Parsing

Kaushal Kishore KishoreKaushal

💭
Parsing
  • Indian Institute of Technology, Palakkad
View GitHub Profile
import os
import discord
TOKEN = os.environ['TOKEN']
client = discord.Client()
bot_channel = None
@client.event
async def on_ready():
@KishoreKaushal
KishoreKaushal / gameinfo-albion.py
Created February 15, 2022 07:12
Albion Online Gameinfo API
import requests
import json
from urllib.parse import urlencode, urljoin, urlparse
from pprint import pformat
BASE_URL = "https://gameinfo.albiononline.com/api/gameinfo"
def search(query):
search_url = BASE_URL + "/search?{}".format(urlencode({'q': query}))
/* @import url("https://fonts.googleapis.com/css2?family=Ubuntu+Mono&display=swap"); */
/* <style> */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code&display=swap');
</style>
a{
color: #ffffff !important;