reddit-karma-farming-bot
reddit-karma-farming-bot copied to clipboard
error after 12 minutes of running
13:20:03 picking a random subreddit
13:20:03 checking subreddit: MoneroMining
13:20:04 replying to comment
13:22:00 935279366216 < 0.005 = True
running action: reddit_post_chance
13:22:00 running repost
13:22:00 finding a post to re-post
13:22:00 picking a random subreddit
13:22:00 checking subreddit: Hawaii
13:22:00 searching post in sub: Hawaii
13:22:00 pushshift-url: https://api.pushshift.io/reddit/search/submission/?subreddit=Hawaii&before=1602609720&after=1602523320&score>=5000&limit=1&author!=[deleted]&selftext:not=[deleted]
pushshift http error: 500
13:22:30 669509669938 < 0.002 = True
running action: reddit_remove_low_scores
13:22:30 checking for low score content to remove
13:22:30 no low score content to clean up. I'm a good bot! :^)
13:22:43 747271725725 < 0.005 = True
running action: reddit_post_chance
13:22:43 running repost
13:22:43 finding a post to re-post
13:22:43 picking a random subreddit
13:22:43 checking subreddit: gamernews
13:22:43 searching post in sub: gamernews
13:22:43 pushshift-url: https://api.pushshift.io/reddit/search/submission/?subreddit=gamernews&before=1602609763&after=1602523363&score>=5000&limit=1&author!=[deleted]&selftext:not=[deleted]
Traceback (most recent call last):
File "C:\Users\devin.virtualenvs\reddit-karma-farming-bot-master-FR336Gl1\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "C:\Users\devin.virtualenvs\reddit-karma-farming-bot-master-FR336Gl1\lib\site-packages\urllib3\connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\devin.virtualenvs\reddit-karma-farming-bot-master-FR336Gl1\lib\site-packages\requests\adapters.py", line 439, in send
resp = conn.urlopen(
File "C:\Users\devin.virtualenvs\reddit-karma-farming-bot-master-FR336Gl1\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "C:\Users\devin.virtualenvs\reddit-karma-farming-bot-master-FR336Gl1\lib\site-packages\urllib3\util\retry.py", line 532, in increment
raise six.reraise(type(error), error, _stacktrace)
File "C:\Users\devin.virtualenvs\reddit-karma-farming-bot-master-FR336Gl1\lib\site-packages\urllib3\packages\six.py", line 769, in reraise
raise value.with_traceback(tb)
File "C:\Users\devin.virtualenvs\reddit-karma-farming-bot-master-FR336Gl1\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "C:\Users\devin.virtualenvs\reddit-karma-farming-bot-master-FR336Gl1\lib\site-packages\urllib3\connectionpool.py", line 445, in _make_request
six.raise_from(e, None)
File "
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\devin\Documents\reddit-karma-farming-bot-master\src\init.py", line 10, in
@MrPowerScripts
Hi got the same after less than 15 minutes of running. The issue seems to be the response received by pushshift which is missing the initial part of the url (ie. https://www.reddit.com).
Below is an example of what I get. Pushshift returns: /r/rails/comments/jadz5n/what_do_multiple_conditions_in_the_if_for/ But it I think it should be: https://www.reddit.com/r/rails/comments/jadz5n/what_do_multiple_conditions_in_the_if_for/
Hope this helps!
Powershell Logs:
running action: reddit_post_chance
17:25:26 running repost
17:25:26 finding a post to re-post
17:25:26 picking a random subreddit
17:25:27 checking subreddit: ruby
17:25:27 searching post in sub: ruby
17:25:27 pushshift-url: https://api.pushshift.io/reddit/search/submission/?subreddit=ruby&before=1602624327&after=1602537927&score>=5000&limit=1&author!=[deleted]&selftext:not=[deleted]
Traceback (most recent call last):
File "C:\Users\Administrator\Downloads\reddit-karma-farming-bot-master\src\init.py", line 11, in <module>
bot.run()
File "C:\Users\Administrator\Downloads\reddit-karma-farming-bot-master\src\bot.py", line 8, in run
reddit.run()
File "C:\Users\Administrator\Downloads\reddit-karma-farming-bot-master\src\bots\reddit\bot.py", line 63, in run
self.tick()
File "C:\Users\Administrator\Downloads\reddit-karma-farming-bot-master\src\bots\reddit\bot.py", line 58, in tick
action.call()
File "C:\Users\Administrator\Downloads\reddit-karma-farming-bot-master\src\bots\reddit\actions\post_actions.py", line 96, in repost
api_call=requests.get(post.url).status_code
File "C:\Users\Administrator\.virtualenvs\reddit-karma-farming-bot-master-I3ozs1th\lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\Administrator\.virtualenvs\reddit-karma-farming-bot-master-I3ozs1th\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\Administrator\.virtualenvs\reddit-karma-farming-bot-master-I3ozs1th\lib\site-packages\requests\sessions.py", line 528, in request
prep = self.prepare_request(req)
File "C:\Users\Administrator\.virtualenvs\reddit-karma-farming-bot-master-I3ozs1th\lib\site-packages\requests\sessions.py", line 456, in prepare_request
p.prepare(
File "C:\Users\Administrator\.virtualenvs\reddit-karma-farming-bot-master-I3ozs1th\lib\site-packages\requests\models.py", line 316, in prepare
self.prepare_url(url, params)
File "C:\Users\Administrator\.virtualenvs\reddit-karma-farming-bot-master-I3ozs1th\lib\site-packages\requests\models.py", line 390, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '/r/rails/comments/jadz5n/what_do_multiple_conditions_in_the_if_for/': No schema supplied. Perhaps you meant http:///r/rails/comments/jadz5n/what_do_multiple_conditions_in_the_if_for/?
exiting...
Press any key to continue . . .
please use code blocks for console output.
your error seems to be because pushshift is finnicky currently, I get the same error when trying to develop something with pushshift, just relaunch the bot and you should be fine.
Thanks, editted... I didn't know about code blocks sorry :s Actually, it's been like this for me for 2 days now. Relaunching the bot doesn't really solve it...
Also, @sheepsushis or @MrPowerScripts would you know if there is a way to easily run this on more than 1 reddit account simultaneously on the same windows computer? It looks like they each need their own .env file, but I don't know how to have more than one .env in the folder
Download the bot 2x on 2 different folders, and you might need to use a VPN/Proxy but im not too sure. @johanviper972
Got it, thanks @sheepsushis
Thanks, editted... I didn't know about code blocks sorry :s Actually, it's been like this for me for 2 days now. Relaunching the bot doesn't really solve it...
Also, @sheepsushis or @MrPowerScripts would you know if there is a way to easily run this on more than 1 reddit account simultaneously on the same windows computer? It looks like they each need their own .env file, but I don't know how to have more than one .env in the folder
Use proxies or docker containers its easy to setup just boot up few docker containers and use a proxy for each container
big party going on in this issue 🎉 I have a dev environment set up now. I can add the try/except later. and look at the issue with the response. thanks for investigating @johanviper972
Got it, thanks @sheepsushis
where you able to run this severally on one pc?