~jonjfineman/rssFeed

c45b47c5f68c436d7ef6a8a7ea203661c4b5bd3f — Jon Fineman 5 months ago 313ae66 master
chase reddit, filter ai
2 files changed, 14 insertions(+), 2 deletions(-)

M reject.py
M rssFeed.py
M reject.py => reject.py +13 -1
@@ 7,7 7,10 @@ subjects = [
		'Is Hiring', \
		' (YC ', \
		'[PATCH', \
		'3D'
		'3D', \
		'OpenAI', \
		'ChatGPT', \
		'GPT-4'
		]

bodies = [


@@ 57,6 60,15 @@ def main(argv):
	rc  = rejectSubject('', '[PATCH v3]')
	print('patch rc=',rc)

	rc  = rejectSubject('', 'ChatGPT')
	print('chat rc=',rc)

	rc  = rejectSubject('', 'GPT-4')
	print('gpt4 rc=',rc)

	rc  = rejectSubject('', 'OpenAI')
	print('ai rc=',rc)

	rc  = rejectBody('hn', 'xx')
	print('xx rc=',rc)


M rssFeed.py => rssFeed.py +1 -1
@@ 450,7 450,7 @@ for rss in rssList['list']:
		# try and replace reddit with text/lite version
		if 'reddit.com' in str(link):
		 	### link = str(link) + "/.compact"
		 	link = str(link).replace("www.reddit.com", "i.reddit.com")
		 	link = str(link).replace("www.reddit.com", "old.reddit.com")
		messageText  = ''
		messageText += "\n" + str(link) + "\n"
		messageText += "\n" + summary + "\n\n"