Message from @Deleted User

Discord ID: 500770396715614210


2018-10-13 20:33:14 UTC  

Also I think the rate limit is actually 1 request every 2 seconds

2018-10-13 20:33:18 UTC  

Otherwise try printing the JSONDecodeError

2018-10-13 20:33:48 UTC  

E0602:Undefined variable 'JSONDecodeError'

2018-10-13 20:33:56 UTC  

@Jacob I think it's one per 2 seconds if you are using a dev account. One per 4 seconds if not

2018-10-13 20:34:04 UTC  

ah

2018-10-13 20:34:35 UTC  

would be interesting if we could find a way around this

2018-10-13 20:34:43 UTC  

like send requests from 4 different IP addresses

2018-10-13 20:35:07 UTC  

To print the JSONDecodeError rewrite the `except` statement to be
```python
except JSONDecodeError as e:
print(str(e))
```

2018-10-13 20:37:06 UTC  

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.

2018-10-13 20:37:11 UTC  

@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

2018-10-13 20:37:28 UTC  

@Jacob "do we need every comment" exactly

2018-10-13 20:37:58 UTC  

That can be a future development step, first step is just to get it working sometimes, then work on that part later

2018-10-13 20:38:13 UTC  

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"

2018-10-13 20:38:22 UTC  

Yeeep

2018-10-13 20:38:44 UTC  

It's probably more important to get the other functionalities working, which, for now, includes,
1. Suggesting counterarguments
2. Sending out emails

2018-10-13 20:38:54 UTC  

oh, another issue is that is still occasionally posts duplicates

2018-10-13 20:39:00 UTC  

but that's not too huge of a problem

2018-10-13 20:39:26 UTC  

Yeah. I agree 1 and 2 are more important.

2018-10-13 20:39:52 UTC  

1 is just for you to copy and paste the arguments into a lookup table

2018-10-13 20:40:14 UTC  

2 you can use the `mail` library of the standard library

2018-10-13 20:42:46 UTC  

@ThisIsChris it’s not so much a privacy think - I just don’t want to support them

2018-10-13 20:44:20 UTC  

@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

2018-10-13 20:45:02 UTC  

You could also try gigablast but they're not really pro-free speech, just different answers than Google

2018-10-13 22:29:18 UTC  

@ThisIsChris How do I use a local email server?

2018-10-13 22:29:41 UTC  

server = smtplib.SMTP('smtp.gmail.com', 587)

Do I just put 'localhost', 25 in here?

2018-10-13 22:29:51 UTC  

would it be better to just use gmail's server?

2018-10-13 22:30:41 UTC  

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

2018-10-13 22:30:59 UTC  

server.login("youremailusername", "password")

2018-10-13 22:31:09 UTC  

do I just put my email address and password here?

2018-10-13 22:31:20 UTC  

or is there some special server log in?

2018-10-13 22:31:39 UTC  
2018-10-13 22:32:23 UTC  

yep that's it. I forget if you put in email address or just username, try both

2018-10-13 22:37:25 UTC  

@Jacob I checked, username should be the full email-address, the port should be 25, the host is smtp.gmail.com

2018-10-13 22:38:08 UTC  

thanks

2018-10-13 22:38:37 UTC  

this example uses 587 as the port

2018-10-13 22:38:41 UTC  

maybe I'll try both

2018-10-13 22:43:16 UTC  

@ThisIsChris
```
smtplib.SMTPNotSupportedError: SMTP AUTH extension not supported by server.
```

2018-10-13 22:43:41 UTC  

I checked "allow less secure apps"