import urllib.request, urllib.parse, http.cookiejar
base='http://127.0.0.1:5000'
cj=http.cookiejar.CookieJar()
op=urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cj))
data=urllib.parse.urlencode({'email':'admin@vapolyx.gg','password':'Admin@123'}).encode()
op.open(base+'/auth/login',data=data,timeout=10)
r=op.open(base+'/home',timeout=10)
html=r.read().decode('utf-8','replace')
print('grainient-bg div present:', 'grainient-bg' in html)
print('grainient.js script present:', 'grainient.js' in html)
print('grainient-active class present:', 'grainient-active' in html)
print('scroll-reveal present:', 'scroll-reveal' in html)
print('scroll-reveal count:', html.count('scroll-reveal'))
# count animation css refs
print('design.css present:', 'design.css' in html)
print('app.js present:', 'app.js' in html)
