Apr-22-2021, 02:21 PM
I worked it out!
import requests import json response = requests.get('https://a.4cdn.org/biz/catalog.json') catalog = json.loads(response.text) for page in catalog: threads = page['threads'] for thread in threads: no = thread["no"] try: sub = thread["sub"] if 'doge' not in sub: pass else: print(no) except: pass try: com = thread["com"] if 'doge' not in com: pass else: print(no) except: continuethis prints out the numbers I want, now I just need to work out the second part which is emailing myself the results as a link.