Message from @Jacob
Discord ID: 500769425713135629
but I think it misses a lot of comments, no?
I did time.sleep() with .5, 1, and 2
Try 4
That's the documented rate limit
Wouldn't 4 seconds be enough for a lot of comments to be posted?
Also I think the rate limit is actually 1 request every 2 seconds
Otherwise try printing the JSONDecodeError
E0602:Undefined variable 'JSONDecodeError'
@Jacob I think it's one per 2 seconds if you are using a dev account. One per 4 seconds if not
ah
would be interesting if we could find a way around this
like send requests from 4 different IP addresses
To print the JSONDecodeError rewrite the `except` statement to be
```python
except JSONDecodeError as e:
print(str(e))
```
Well, another way to look it is, do we *need* every comment? Running the script for an hour probably will yield more comments than I have time to respond to anyway.
@Jacob sure that shouldn't be a problem, you just need 4 proxies. Or just get a dev account, which is free and not too hard to set up. But I think from a development focus that it's more important to get your system working on just the comments you find first, and after that worry about increasing the throughput of the comment stream
@Jacob "do we need every comment" exactly
That can be a future development step, first step is just to get it working sometimes, then work on that part later
Ya, the function of the program is "scan Reddit for pro-immigration comments so we can respond to them" not "scan Reddit for literally every pro-immigration comment"
Yeeep
It's probably more important to get the other functionalities working, which, for now, includes,
1. Suggesting counterarguments
2. Sending out emails
but that's not too huge of a problem
Yeah. I agree 1 and 2 are more important.
1 is just for you to copy and paste the arguments into a lookup table
2 you can use the `mail` library of the standard library
@ThisIsChris it’s not so much a privacy think - I just don’t want to support them
@Deleted User then yeah startpage pays Google a licensing fee so that's still supporting Google. In that case yeah duckduckgo or bing seem good
You could also try gigablast but they're not really pro-free speech, just different answers than Google
@ThisIsChris How do I use a local email server?
server = smtplib.SMTP('smtp.gmail.com', 587)
Do I just put 'localhost', 25 in here?
would it be better to just use gmail's server?
it is better to use gmails, just make sure to go to your gmail account security settings and enable the "allow 3rd party apps" option
server.login("youremailusername", "password")
do I just put my email address and password here?
or is there some special server log in?
yep that's it. I forget if you put in email address or just username, try both
@Jacob I checked, username should be the full email-address, the port should be 25, the host is smtp.gmail.com
thanks
this example uses 587 as the port