Share your repls and programming experiences

← Back to all posts
REPLAPI Module - pogchamp
JBloves27 (1718)

REPLAPI Module

Inspired by @RayhanADev and made in python
Made by @JBYT27(@JBloves27) & @darkdarcool
Note the lots of pings lol

About the Module

REPLAPI is a module that crawls the internet retrieving your(and anyone elses) replit data!

It is currently very slow, and will most likely cause a lot of lag to a game, your computer, or replit(and anything really). So because of this, it is still in beta, but we are trying to improve the speed and we hope it will be lightning fast(or at least not take 10 seconds) for the end of the project! Now, lets talk about how to actually install this this module.


Installation & Usage

Installation

To install this module, search REPLAPI in the package tab in a python repl, or do pip install REPLAPI in the shell.

After doing so, your REPLAPI module will be installed on your repl, and you can start using it!

Usage

After installing this module, you can finally use it!

Lets start with something basic, like accessing cycles. To do this, use this code:

import REPLAPI as repl
my_cycles = repl.replit_cycles("UsernameOfUserOnReplit")
print("Cycles: " + my_cycles)

This will return the number of cycles of the user that you put in the quotes.

You can do this for any user on replit.

While the lag for this is pretty annoying, we recommend putting a loading animation over it.

This is a full list of all of the things you can do:

  • replit_langs("username here") [This returns your most used langs]
  • replit_post("username here") [This returns the first replit post on your profile list]
  • replit_posts("username here") [This returns all of the replit posts on your profile until the load more button]
  • replit_bio("username here") [This returns the users bio]
  • replit_comment("username here") [This returns the first comment on your replit profile]
  • replit_comments("username here") [This returns all of the replit comments on your profie until the load more button]
  • replit_user() [This just returns the owner of the repl's username, this has no parameter]
  • replit_name("username here") [This returns the nickname of the username]

Closing

So this is the REPLAPI module! We hope you guys enjoy using this module. Please do give suggestions, as we are always (jk) available with them! If there are any bugs, also let us know with them! Another thing I should point out is that this is in python, so obviously this is only available in python.

KTHXBAI!!!!!!!!

Special thanks to @RayhanADev for inspiring and helping with this project!

sry for pings lol

LINK TO NEW UPDATE/VERSION HERE

Comments
hotnewtop
IcynDevz (762)

This is very poggggs but there is another way to get someone's repl cycles. Check out this and look at the code.

darkdarcool (91)

@IcynHackz
thx! I'll pin this in the disscustions in the repo!

darkdarcool (91)

@IcynHackz
i looked into it and tried it, and it won't work because we need to be able to get anyones cycles on replit, not just the person that's using it, thanx anyway tho!

IcynDevz (762)

well I fixed it @darkdarcool. It could find anyone's stuff and it's pretty fast.

darkdarcool (91)

@IcynHackz
oooooh, maybe well use it now!

JBloves27 (1718)

uh, sry to ping u, but @PyCoder01 is spamming us @darkdarcool

IcynDevz (762)

But I'm still confused on one thing @darkdarcool . Did you guys create the module, or you just used it...?

JBloves27 (1718)

we created it and used it to show you guys @IcynHackz

darkdarcool (91)

@IcynHackz
we used an api that gives a web json file to retrieve the data

darkdarcool (91)

@IcynHackz
the evidence is here, scroll down and look at the creators, this is in our name:
https://pypi.org/project/REPLAPI/

TigerTheCat (45)

REPLAPI should be mentioned in the Repl.it Newsletter lol

darkdarcool (91)

@TheC0derGirl yes it should(also i deciphered that your bio says Binary!)

darkdarcool (91)

@TheC0derGirl
the module should be in the replit newsletter,and your bio in binary says Binary!

TigerTheCat (45)

@darkdarcool 01001001 01100110 00100000 01000010 01101001 01101111 01110011 00100000 01101000 01100001 01100100 00100000 01101101 01101111 01110010 01100101 00100000 01110011 01110000 01100001 01100011 01100101 00101100 00100000 01001001 00100000 01110111 01101111 01110101 01101100 01100100 00100000 01110111 01110010 01101001 01110100 01100101 00100000 00100010 01000010 01101001 01101110 01100001 01110010 01111001 00100000 01101001 01110011 00100000 01100001 01110111 01100101 01110011 01101111 01101101 01100101 00100001 00100010

TigerTheCat (45)

@darkdarcool 01000111 01101111 00100000 01110100 01101111 00100000 01110100 01101000 01101001 01110011 00100000 01101100 01101001 01101110 01101011 00111010 https://replit.com/talk/share/Chat-in-binary/131126

TigerTheCat (45)

@darkdarcool 01011001 01100101 01110011 00101100 00100000 01101001 01110100 00100000 01101001 01110011 00101110

darkdarcool (91)

@TigerTheCat
01001001 00100000 01100111 01110101 01100101 01110011 01110011 00100000 01001001 00100000 01100001 01101101 00100000 01100001 00100000 01100010 01101001 01100111 00100000 01100010 01110010 01100001 01101001 01101110 00100001

TigerTheCat (45)

@darkdarcool 01011001 01110101 01110000

darkdarcool (91)

@TigerTheCat
01011001 01101111 01110101 00100000 01100001 01110010 01100101 00100000 01110010 01101001 01100111 01101000 01110100 00100001 00100000 00101000 01000001 01101100 01110011 01101111 00100000 01001001 00100000 01101100 01101111 01110110 01100101 00100000 01100010 01101001 01101110 01100001 01110010 01111001 00100000 01100011 01101000 01100001 01110100 01110100 01101001 01101110 01100111 00100001 00101001

TigerTheCat (45)

@darkdarcool 01001101 01100101 00100000 01110100 01101111 01101111

darkdarcool (91)

@TigerTheCat
01001101 01100101 00100000 01110100 01101111 01101111

randomguy222 (285)

KTHXBAI!!!!!!!!

The fact that people know about Lolcode makes me happy.

MarcusWeinberger (772)

This is very cool but your package includes some bad practices. Instead of the line os.system("pip install beautifulsoup4"), you could rather include it as one of the requirements in setup.py.

Also, you eval text from an external source (@pyer's API) which can be extremely dangerous.

JBloves27 (1718)

thanks! hmm, ok. we'll fix that! @MarcusWeinberger

darkdarcool (91)

@MarcusWeinberger
we are fixing it, and we are starting to use replit's json files(i think), and we'll but bs4 in setup.py, thanks!

darkdarcool (91)

@MarcusWeinberger
also, now were are using replit's json files for things if we require them, and we are stopping using pyer's API

robowolf (435)

4 features are straight from my repl module Wow. This is cool. I was trying to add on to my repl api but this takes it to another level. Take my upvote.

JBloves27 (1718)

lol, thanks! oh, yeah, we tried ur features, it didnt work, so we edited it, and then it worked. lol @robowolf

SilvermoonCat (429)

Noice :D

When did i get 404 cycles and why is the number 404 xD
SilvermoonCat (429)

@JBloves27 404 not found. error
np! Ima try this once I'm less lazier and make a new repl :D

darkdarcool (91)

@SilvermoonCat
noice, also we will appreciate if you give us feedback(not on the loading times the source that we are getting the info from has a very slow moving website, so the web crawler that finds data has to wait a long time. But when it loads, it goes super fast!

KobeFF (1260)

Cool project :D

Maybe you could add moar things like amount of projects made, idk.

JBloves27 (1718)

Thanks! okie! thanks for suggestion! lol @KobeFF

Yoplayer1py (2)

What are cycles? it shows I have 0

JBloves27 (1718)

Cycles are like followers, they are useless internet points that r only used to show off lol. They are the number beside ur name @Yoplayer1py

Yoplayer1py (2)

@JBloves27 Ok so it means I have 0 points :(

JBloves27 (1718)

Well, yea, but they dont rly matter lol @Yoplayer1py

rexhall (6)

thats awesome can you make a module that lets you click buttons and enter stuff in text feilds on a website

darkdarcool (91)

@rexhall
most likely not, that seems impossible unless we made a django site ourselves and allowed an entry point. But that is way to advanced for us, no module has this, and while it would be cool, it wouldn't really help anyone with anything.

Thanks for the suggestion tho!

robowolf (435)

@darkdarcool What if you used a webbot with the show browser parameter as false? I've tried it, but the only problem is captcha.

darkdarcool (91)

@robowolf
hmm, idk. Maybe we'll try, but most likely not. Even if we did try, it would be an INSANE amount of code.

rexhall (6)

thats a good idea @robowolf I am trying to make a bot for chatterhome.org do you think that that would be possible?

robowolf (435)

@darkdarcool Actually, as soon as you bypass captcha, you just command the bot. You can ask me if you need help implementing.

robowolf (435)

@rexhall Yeah, as long as there is no captcha.

SethPeace (3)

@rexhall Wouldn't this just be selenium? lol

rexhall (6)

idk what that is but if you have any ideas on how to. make a bot for chatterhome.org then tell [email protected]

IMightBeMe (31)

I think that should be easy if you do flask. Maybe idrk@JBloves27

novaflippers (55)

This is cool but will there ever be a node.js version... ?

JBloves27 (1718)

There already is one made by rayhanadev @novaflippers

darkdarcool (91)

@novaflippers
for us, no, but this is inspired by @RayhanADev's REPLAPI, and his is in node.js.

THIS IS THE LINK

darkdarcool (91)

@RayhanADev
yeah you did, thx again for that btw

frissyn (358)

@darkdarcool is that... my Yaemori pfp!?!?

darkdarcool (91)

@frissyn
yeah, i liked it and waited until you didn't use it anymore,

Code1Tech (108)

super pog also i didnt know i have 103 cycles XD

CodingRedpanda (179)

@JBloves27 finally i have access to replit so i can see dis

AWESOME

btw im changing my un again
bwoop (111)

Wow, it's impressive. Is it just supposed to find my cycles though?

JBloves27 (1718)

No, it has multiple functions! Like finding ur bio and avatar and etc. thanks! @bwoop

CatR3kd (479)

Node version would be pog

JBloves27 (1718)

RayhanADev already made one (the original) But you could make another version ;) @CatR3kd

CatR3kd (479)

Wait really? Can I have a link please 0: @JBloves27

RayhanADev (1968)

@CatR3kd make sure you use the newest version, I sent out a quarter million bug fixes yesterday so the package works ;P

RayhanADev (1968)

@JBloves27 literally, for the past 2-3 months the package has just been dead because it had so many stupid errors and mistakes xD

RayhanADev (1968)

@JBloves27 and there are still sooooooooooooooooo many bugs

(╬ Ò﹏Ó)

headiscoding (943)

Man, LOLCODE references make me happy.

adl212 (166)

Could you make the code/github public so that people can push changes to make it faster?

JBloves27 (1718)

The github is public, however, the code in replit will be private @adl212

adl212 (166)

@JBloves27 Ah ok that's fine. Also, I'd like to know how you scrape this data.

JBloves27 (1718)

Well, we used json. We also used async to get the data. We scrape the web, replit, and get the data. We then split the list and etc. @adl212

darkdarcool (91)

@adl212
while it is more complicated than that, @JBloves27 summed it up pretty well

TigerTheCat (45)

Does REPLAPI have a Github Repo? I'd like to check out the source code and figure out how it is possible to do something so awesome. Thank you!

JBloves27 (1718)

np! glad u liked this module/program! @TigerTheCat

SudhanshuMishra (202)

cool , also I was thinking if we could get the users profile pic ...

JBloves27 (1718)

Sure! We could try that! Thanks for the suggestion! @SudhanshuMishra

darkdarcool (91)

@SudhanshuMishra
that will probably be in the next version because of the new JSON files we getting!

darkdarcool (91)

@SudhanshuMishra
you may have just seen into version 0.0.4(or 0.0.5 if we make a mistake in 0.0.4)

YeeTEDWIN (7)

Hey idk what cycles are but the module is pretty cool @JBloves27 and @darkdarcool . Great Job!

darkdarcool (91)

@YeeTEDWIN
cycles are the number next to your name, they are meaningless internet points that are give not you when you get your answer marked as right, or get an updoot from someone.

catspython (27)

This is great! Though it is a little long for python, as you said.