Ask coding questions

← Back to all posts
How do you get a users cycles and show it on screen?(flask,replapi2,python,html)
JULIODIAZ1

Im making a game where I need to get a users cycles and it didnt work for me. Im using a combonation of flask request, template, and replapi2.

Voters
JULIODIAZ1
Comments
hotnewtop
ch1ck3n

replapi2.UserInfo(user_name).replit_cycles it's currently broken but i can fix it real quick

JULIODIAZ1

oh oki thanks @ch1ck3n

ch1ck3n

@JULIODIAZ1 ok i updated the package, re-install the package with the version 0.05 and do .replit_cycles()

JULIODIAZ1

im unsure how to do that @ch1ck3n

JULIODIAZ1

it is still not working @ch1ck3n

VulcanWM

You have to add logging in with replit before it shows your data

JULIODIAZ1

but flask request already does that @VulcanWM

VulcanWM

You have to let the user give the website permission to use the user data @JULIODIAZ1

JULIODIAZ1

no you dont @VulcanWM

VulcanWM

bruh I’ve done it loads of times @JULIODIAZ1

JULIODIAZ1

the website itself wont load so how will it ask @VulcanWM

ruiwenge2

@JULIODIAZ1 @VulcanWM to get the cycles you can use web scraping

JULIODIAZ1

put that in noob words pls @ruiwenge2

ruiwenge2
JULIODIAZ1

@ruiwenge2 oki now how do i do that

ruiwenge2
JULIODIAZ1

tank you @ruiwenge2

JULIODIAZ1

wait but this cna only grab of one page i need a sign in with replit
@ruiwenge2

VulcanWM
JULIODIAZ1

ive already seen that tutorial @VulcanWM

VulcanWM

ayyy u made it work
how’d u do it @JULIODIAZ1

JULIODIAZ1

i deleted everything :D @VulcanWM

VulcanWM