Skip to content

Instantly share code, notes, and snippets.

View Tee-py's full-sized avatar
🏠
Working from home

Oluwatobiloba Emmanuel Tee-py

🏠
Working from home
View GitHub Profile
@prettyirrelevant
prettyirrelevant / inec_scraper.py
Last active November 9, 2022 14:38
Scrapes INEC's website to retrieve all polling units in the country.
import asyncio
import json
from typing import Any, Dict, List, Tuple
import aiohttp
from bs4 import BeautifulSoup
async def main() -> None:
async with aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False)) as session:
@LordGhostX
LordGhostX / ledger_staking_coins.py
Created July 2, 2022 03:49
Get all the staking coins supported by Ledger
import json
import requests
if __name__ == "__main__":
r = requests.get(
"https://ledger-ecom-cdn-prod.s3-eu-west-1.amazonaws.com/website/assets/website_input.json")
stakable = set()
for coin in r.json():
if coin["staking_live"] or coin["staking_ext"]:
stakable.add(coin["name"])