Skip to content

Instantly share code, notes, and snippets.

View theelk801's full-sized avatar

Evan Kranzler theelk801

  • Brooklyn
View GitHub Profile
@theelk801
theelk801 / hic_et_nunc_basic_scraper.py
Last active March 10, 2021 18:23 — forked from Quasimondo/hic_et_nunc_basic_scraper.py
This is a very basic no-frills scraper to retrieve the metadata and digital assets from all tokens minted on hicetnunc.xyz. I share this as a starting point for people who want to experiment with building alternative views on the works created on the platform or preserve the data. Feel free to improve upon this or add additional features.
import os
import aiohttp
import asyncio
import requests
max_connections=10 # this will change how many concurrent downloads there are
url = "https://better-call.dev/v1/contract/mainnet/KT1RJ6PbjHpwc3M5rw5s2Nbmefwbuwbdxton/tokens"
r = requests.get(url)
data = r.json()
@theelk801
theelk801 / blob_maker.py
Last active April 18, 2019 12:58
This is a python script I wrote several years ago to generate blobs in LaTeX using tikz. There are some parameters at the beginning that you can mess with to modify the output. It uses bezier curves and outputs a bunch of blobs that you can paste right into a TeX document and render to find one you like the most.
import random
import math
def anglepoint(rad, theta):
return [round(rad * math.cos(math.radians(theta)), 2), round(rad * math.sin(math.radians(theta)), 2)]
inx = 40
a = 10