Anonymous ID: 924345 June 13, 2018, 5:40 a.m. No.1727915   🗄️.is 🔗kun

>>1727565

Oh you want something serious.

 

I have the following for searching current threads. It uses 8chan's built in json feed, which doesn't include archived threads. I use it with jupyter notebook (python 2).

 

The example will return all current posts mentioning dennis and rodman

 

SEARCH = 'dennis rodman'MATCHALL = TrueKEYWORDS = SEARCH.split()import requestsfrom IPython.core.display import HTML, displayfor i in xrange(15): r = requests.get('https://8ch.net/qresearch/{0}.json'.format(i)) j = r.json() for thread in j['threads']: if 'research general' in thread['posts'][0]['com'].lower(): no = thread['posts'][0]['no'] rr = requests.get('https://8ch.net/qresearch/res/{0}.json'.format(no)) jj = rr.json() for post in jj['posts']: hits = sum([search.lower() in post['com'].lower() for search in KEYWORDS]) if MATCHALL: if hits == len(KEYWORDS): print 'https://8ch.net/qresearch/res/{0}.html#{1}'.format(no, post['no']) display(HTML(post['com'])) print '=-'*40 else: if hits 0: print 'https://8ch.net/qresearch/res/{0}.html#{1}'.format(no, post['no']) display(HTML(post['com'])) print '=-'*40

 

hope it helps