9

Wrote this little script to generate a Rant of a given user based on his Existing Rants

Code:
https://gist.github.com/theabbie/...

REST Endpoint:
https://devrant-gefgjr8gnr28.runkit.sh/...

Rant won't be very readable though.

Comments
  • 4
    That's a rather long sentence.
  • 3
    "Rant won't be very readable though." 😂, remove that "very"

    Good idea though
  • 1
    @JhonDoe If someone is going for a vacation, they can set up a bot to post on their behalf, and, no one will get to know.
  • 1
    You should run that on all of an users comments. Would probably be more successful.
  • 0
    @PrivateGER It is difficult to scrape all comments by a user, the profile page only shows latest comments, that would require a more sophisticated script.
  • 4
    Dear god, your script had several heart attacks and possibly a stroke putting this together.
    @nomad, I need a manual translation for this 😅

    our error reporting the pragmatic programmer rubber duck debugging a rant creation screen within a single line change their account deleted without properly understanding everything posted a warning thanks everyone playing a backend architectural improvements just me make the worst attribute he is having something special highpoweredcpu web development so childish and board format as good we also greatly appreciate the woman in the stream event is trogus and showed me something and happy holidays to move up to give the weekly rant i want to touch code visible because weve also use it was the awesome feeling of following through most ridiculous response and i cant thank you can email name and like adding captains hats sunglasses headphones etc and after extensive time a rant i see if you please share your name because it theres so anyone with that way to the second that shit they ever rushed to bring more of the push notification whenever this week but i wish dfox 18997 anyone with io domains themselves a new just a preview image repost content they offer no one of setups the posts today and well were a security issue tracker: i will be launching carefully developed
  • 3
    @C0D4 🙄 you can't expect him to be smarter than this.
  • 5
    @C0D4 >the woman in the stream event is trogus

    nice to know
  • 0
    @NoMad sheeesh
  • 1
  • 0
    @NoMad fucking killed him dude
  • 0
    @uyouthe 😕
  • 2
    How about encryption here, any suggestions?
  • 1
    I commend you for the idea, tho
  • 0
    @yowhatthefuck User page shows only few rants by user, searching by username gives rants by the user
  • 2
    @theabbie just pull their rants from the api.

    https://devrantapi.docs.apiary.io//...
  • 0
    @C0D4 Oh, I didn't know they have an API, but more rants won't make this any better, still, will see.
  • 0
    @C0D4 Is there a way to comment images using that API?

    I can't find it in Documentation
  • 3
    @highlight # yes, yes there is @theabbie
  • 0
  • 0
    @C0D4 Awesome, so any relevant documentation, or, source code of this bot?
  • 3
    @theabbie not that I'm aware off, but you could just mimic the web browser's post request when uploading an image..

    <!> prepares for a meme bot 😟
  • 0
    @C0D4 I saw the npm package rantscript, I saw the code and it has it, Thanks though, Now I will create a memebot which will search meme by name
  • 1
    Yeah, it sourced my mentions rather than my rants.
  • 0
    @Lor-inc I didn't know we have a REST API, I will fix it
  • 1
    @theabbie I mean, we do have one, but it's not supposed to be open. The spec is reverse engineered from the application code.
  • 0
    @Lor-inc It's better than scraping though, and DevRant has made it that way, that means, they wanted it to be used.
  • 1
    @Lor-inc um, read his other rants before giving him any ideas...
  • 1
    @theabbie No, that means they wanted to use it themselves. There are other reasons for building an API than for public use.
  • 0
    @Lor-inc They might be planning to rollout a public API, and, they know that people are using it, it is not written in there terms, so, it might be fine to use it as such.
  • 0
    @theabbie That statement is way too mighty to be an argument for anything. And a public API has things like rate limiting and special security measures that one built for private use should, but may not have.
  • 1
    @theabbie All I'm saying is you should be careful because if you break it and the site goes down it definitely won't be dfox's fault.
  • 0
    @Lor-inc Okay, but still it's fine to use it even if it's reverse-engineered, I have done so for seedr.cc, they give rest API for premium plans, but after some reverse engineering, we can do everything without Premium plan, It's good for playing around, for example, this script. We shouldn't use it commercially, that I agree.
  • 1
    @Lor-inc If it can harm the site, it will be a vulnerability, if it's detected, it's a good thing.
  • 1
    @theabbie Yeah you're right about the vulnerabilities.
Add Comment