REPLAPI Module - pogchamp
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
REPLAPI should be mentioned in the Repl.it Newsletter lol
lol, thanks! @TigerTheCat
@TigerTheCat it should!
@TigerTheCat yesyesyes
@TheC0derGirl yes it should(also i deciphered that your bio says Binary!
)
@TheC0derGirl
the module should be in the replit newsletter,and your bio in binary says Binary!
@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
@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 i will go to that link
@TigerTheCat
binary is awesome!
@darkdarcool 01011001 01100101 01110011 00101100 00100000 01101001 01110100 00100000 01101001 01110011 00101110
@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
@darkdarcool 01011001 01110101 01110000
@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
@darkdarcool 01001101 01100101 00100000 01110100 01101111 01101111
@TigerTheCat
01001101 01100101 00100000 01110100 01101111 01101111
KTHXBAI!!!!!!!!
The fact that people know about Lolcode makes me happy.
lol yep XD @randomguy222
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.
thanks! hmm, ok. we'll fix that! @MarcusWeinberger
@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!
@MarcusWeinberger
also, now were are using replit's json files for things if we require them, and we are stopping using pyer's API
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.
lol, thanks! oh, yeah, we tried ur features, it didnt work, so we edited it, and then it worked. lol @robowolf
noice
thanks! @DominicHuieWhit
Pog
Pog thanks! @imleoos
@imleoos
poggers! thx! :)
Noice :D
When did i get 404 cycles and why is the number 404 xD
Thanks! lol, XD @SilvermoonCat
@JBloves27 404 not found. error
np! Ima try this once I'm less lazier and make a new repl :D
lol. :D @SilvermoonCat
@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!
Thanks! okie! thanks for suggestion! lol @KobeFF
What are cycles? it shows I have 0
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
@JBloves27 Ok so it means I have 0 points :(
Well, yea, but they dont rly matter lol @Yoplayer1py
gud jub im too lazy to try it
Nice :)
:D thanks! @RayhanADev
thats awesome can you make a module that lets you click buttons and enter stuff in text feilds on a website
thanks! hmmm, maybe! @rexhall
@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!
ok lol @darkdarcool
@darkdarcool What if you used a webbot with the show browser parameter as false? I've tried it, but the only problem is captcha.
@robowolf
hmm, idk. Maybe we'll try, but most likely not. Even if we did try, it would be an INSANE amount of code.
thats a good idea @robowolf I am trying to make a bot for chatterhome.org do you think that that would be possible?
@darkdarcool Actually, as soon as you bypass captcha, you just command the bot. You can ask me if you need help implementing.
@rexhall Yeah, as long as there is no captcha.
@rexhall Wouldn't this just be selenium? lol
idk what that is but if you have any ideas on how to. make a bot for chatterhome.org then tell [email protected]
I think that should be easy if you do flask. Maybe idrk@JBloves27
This is cool but will there ever be a node.js version... ?
There already is one made by rayhanadev @novaflippers
@novaflippers
for us, no, but this is inspired by @RayhanADev's REPLAPI, and his is in node.js.
@novaflippers lmao I made the original
@RayhanADev
yeah you did, thx again for that btw
Yaaaaaay!
lol. :D @darkdarcool
@darkdarcool is that... my Yaemori pfp!?!?
@frissyn
yeah, i liked it and waited until you didn't use it anymore,
super pog also i didnt know i have 103 cycles XD
Thanks! @Code1Tech
Now yo have 104 @Code1Tech
Awesome
Thanks! @InvisibleOne
Thanks! Lol, okie! @CodingRedpanda
@CodingRedpanda
lol nice
Wow, it's impressive. Is it just supposed to find my cycles though?
No, it has multiple functions! Like finding ur bio and avatar and etc. thanks! @bwoop
@JBloves27 wow, cool!
This is very pog
Pog, thanks! @IMightBeMe
Node version would be pog
RayhanADev already made one (the original) But you could make another version ;) @CatR3kd
Wait really? Can I have a link please 0: @JBloves27
Thanks dude @JBloves27
@CatR3kd make sure you use the newest version, I sent out a quarter million bug fixes yesterday so the package works ;P
@JBloves27 literally, for the past 2-3 months the package has just been dead because it had so many stupid errors and mistakes xD
lmao XD @RayhanADev
@JBloves27 and there are still sooooooooooooooooo many bugs
(╬ Ò﹏Ó)
oooof lol @RayhanADev
Man, LOLCODE references make me happy.
Lmao yep @headiscoding
@headiscoding
it makes anyone happy!
Nice.
Thanks! @ReyesP
Could you make the code/github public so that people can push changes to make it faster?
The github is public, however, the code in replit will be private @adl212
@JBloves27 Ah ok that's fine. Also, I'd like to know how you scrape this data.
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
@JBloves27 ah ok
@adl212
while it is more complicated than that, @JBloves27 summed it up pretty well
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!
Yes! ok, sure! lol, np! heres link @TigerTheCat
@JBloves27 Thank you!
np! glad u liked this module/program! @TigerTheCat
Sure! We could try that! Thanks for the suggestion! @SudhanshuMishra
@SudhanshuMishra
that will probably be in the next version because of the new JSON files we getting!
ooohhh, heya @darkdarcool!
@SudhanshuMishra
you may have just seen into version 0.0.4(or 0.0.5 if we make a mistake in 0.0.4)
awesome
thanks! @zplusfour
Hey idk what cycles are but the module is pretty cool @JBloves27 and @darkdarcool . Great Job!
@YeeTEDWIN
thanks!!
lol, thanks! @YeeTEDWIN
@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.
Ok thanks! @darkdarcool
This is great! Though it is a little long for python, as you said.
thanks! yea @catspython
This is very poggggs but there is another way to get someone's repl cycles. Check out this and look at the code.
@IcynHackz
thx! I'll pin this in the disscustions in the repo!
ok @darkdarcool
@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!
well I fixed it @darkdarcool. It could find anyone's stuff and it's pretty fast.
@IcynHackz
oooooh, maybe well use it now!
uh, sry to ping u, but @PyCoder01 is spamming us @darkdarcool
But I'm still confused on one thing @darkdarcool . Did you guys create the module, or you just used it...?
we created it and used it to show you guys @IcynHackz
@IcynHackz
we used an api that gives a web json file to retrieve the data
@IcynHackz
the evidence is here, scroll down and look at the creators, this is in our name:
https://pypi.org/project/REPLAPI/
that's nice! @darkdarcool