r/learnjava • u/[deleted] • Oct 23 '20
Is it possible to build a Reddit bot using java?
Hey everyone,
As the title states I want to build a Reddit bot using java. Unfortunately while searching for some learning materials and videos on YouTube I was only able to find stuff for python. So is it possible to build a Reddit bot or even a twitter bot using java? Thanks
14
4
u/xRageNugget Oct 23 '20
technically you can build java bots for everything what you can reach with a browser also, since it is capable of http and websockets.
When there is no API, you can always look at selenium, which makes automating websites a breeze.
2
Oct 24 '20
Interesting, I figured that it would be possible. I’m also wondering, why is it much preferred to do it in python??
1
u/King5lay3r Oct 24 '20
Maybe because of the verbosity of Java, which led to abundance of Python bots and related libraries so much so now its ubiquitous
0
Oct 23 '20
[deleted]
1
Oct 23 '20
I can’t get this video to load unfortunately. Thank you for the input though
0
Oct 23 '20
[deleted]
1
Oct 23 '20
Got it, will check it out. I’ve never worked with angular, would be good to learn a bit. Thanks
1
u/fluffytme Oct 23 '20
He's not looking to make a clone, he wants to be able to talk to the official reddit public API
35
u/fluffytme Oct 23 '20
You can use Java to consume any API really. Give "Java reddit api" a google and you will see a few reddit api wrappers that people have made. Using a wrapper will remove a lot of the work you'd have to do to get up and running.