Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import binascii
- import struct
- from math import floor
- a = "0000000000000000000397eb2452c0ffe2c5ca847b222be9db48bcf3066da0dc" # Block hash, tested with block 519187
- d = binascii.unhexlify(a)
- # Captured image size
- w = 1080
- h = 12249
- ilen = w * h
- s, t, u, v = struct.unpack("QQQQ", d)
- p = (s + t + u + v)
- y = floor((p / h) % ilen / w)
- print(y) # Nearest retweet on this Y position from, in this example pimpingkek would win
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement