Questions tagged [jreddit]

Java wrapper for Reddit API

jReddit is a wrapper for the Reddit API written in Java. Project started by Omer Elnour. Taken over for further development and maintenance by Karan Goel.

https://github.com/jReddit/jReddit

21 questions
2
votes
0 answers

Reddit Bot Stops commenting after certain time

I have been trying to make a bot that searches for a specific keyword in the reddit title, if that keyword is true it would then comment something in that thread. Everything works find, just I have one problem, after around 4 hours of it running it…
2
votes
3 answers

Pass object to another activity (without Parcelable?)

I need to pass object user to another activity. I know I should use Parcelable, but I can't edit User class, because it is used from maven repository. Is it here any other way how can I pass user object? Or how to locally edit class from maven…
Sk1X1
  • 1,305
  • 5
  • 22
  • 50
2
votes
1 answer

Library properly imported (compiles and import statements are correct), but object cannot access it's methods

I'm attempting to build an android app in Android Studio that integrates the jReddit Java Wrapper. I've cloned the git repository, added a build.gradle file, added the proper dependencies and referenced the jReddit module in my android app's project…
mdaguillo
  • 31
  • 3
1
vote
0 answers

Post on Reddit using java API

I want to post on Reddit using java API. I have created a username and password on Reddit and I have created an authentication token for the application. I tried Jreddit but its one year old repo and I was unable to find the way to post using…
1
vote
3 answers

Using AsyncTask to login user

I need to get user and save it to variable. public class MainActivity extends ActionBarActivity { User user = new LoginTask2().execute(""); } class LoginTask2 extends AsyncTask { private Exception exception; public…
Sk1X1
  • 1,305
  • 5
  • 22
  • 50
1
vote
0 answers

jReddit Application keeps crashing

I've got a problem. My app keeps crashing when I start it, but the logcat tells me nothing. I've tried try-catch but it still crashes without leaving something. Here's my MainActivity.java: public class MainActivity extends Activity { …
pongo1231
  • 11
  • 2
1
vote
0 answers

Why are my jReddit jar files not being stored in the libs folder in eclipse?

I'm trying to use the Reddit API wrapper 'jReddit' in my android project in Eclipse, and I have added the dependency to my pom for Maven: When I run maven and get the jars they are brought into my build path: My order/exports section (if that…
Highway62
  • 800
  • 1
  • 10
  • 25
1
vote
1 answer

Android Using Jar Files

So I'm trying to use the jReddit wrapper class because I am developing a reddit app on the android. Here is what I did: I first went to jreddit and downloaded as a zip Then I went to eclipse, made a project and copied the files from the extracted…
Richard
  • 5,840
  • 36
  • 123
  • 208
0
votes
1 answer

RedditExtractoR package: How to get content user from Reddit despite the error message (R)

I am using the RedditExtractoR package to obtain information about threads, users and comments on Reedit. I have a list with different authors, and I am using the function RedditExtractoR::get_user_content, which gives me the information about each…
Renato
  • 23
  • 3
0
votes
1 answer

Unable to post on to reddit despite having all correct credentials with snoowrap

Receiving an invalid grant error despite all credentials being correct. Does anyone know the routes I should post to and what headers and data I should include? The code I tried is here: exports.redditPost = async (subreddit) => { const redditBot…
0
votes
1 answer

Using the Reddit API, is it possible to return a list of comments if the submission title includes a specific keyword?

Using the Reddit API, is it possible to return a list of Reddit comments if the submission title includes a specific keyword? For example, if the keyword is "Lime Sparkling Water", I want to return all the comments under submissions that have "Lime…
Josh May
  • 5
  • 3
0
votes
1 answer

jreddit returning unexpected results

Thanks a lot ! I got in working , The only problem I found is that when getting the comment id for the specific submission it returns broken up comments , E.g Reddit reddit = new Reddit("USER","PASSWORD"); List submissions = …
stringRay2014
  • 636
  • 1
  • 11
  • 29
0
votes
0 answers

Installing and running a maven project

After 2 days searching around the web for tutorials on running maven on intellij , I didn't find much and all the tutorial I tried returned some error , So can someone give me a step by step installation process on how to install maven on mac OS…
stringRay2014
  • 636
  • 1
  • 11
  • 29
0
votes
1 answer

Importing Jar files for JReddit giving error

I get Errors when trying to import the jar files needed for Jreddit to function. On jreddit's github page it says ... Dependencies JSON-simple Apache HttpComponents Apache Commons IO After going to the Maven repository website I download the jar…
stringRay2014
  • 636
  • 1
  • 11
  • 29
0
votes
1 answer

HttpRestClient() via Proxy?

I am playing around and trying to learn how API works in java, currently messing around with the Reddit one: https://github.com/karan/jReddit Code that I am trying out which works just fine:…
Muki
  • 13
  • 3
1
2