update heights script

wowario 3 years ago
parent 8620608d5e
commit 6d9e5c5afe

@ -4,7 +4,7 @@
import re, os, sys, requests
current_height = 664767
current_height = 349718
f = open("heights.txt", "a")
for i in range(0, current_height, 1500):
if i == 0:
@ -12,8 +12,8 @@ for i in range(0, current_height, 1500):
if i % (1500*8) == 0:
print(f"[*] {current_height-i}")
url = f"https://stagenet.xmrchain.net/block/{i}"
resp = requests.get(url, headers={"User-Agent": "Feather"})
url = f"https://explore.wownero.com/block/{i}"
resp = requests.get(url, headers={"User-Agent": "Wowlet"})
resp.raise_for_status()
content = resp.content.decode()
timestamp = wow = re.findall(r"\((\d{10})\)", content)[0]

Loading…
Cancel
Save