#!/usr/bin/python3 from splash.gysplash import SBase import json class SYgcg(SBase): def open(self): return super().open('ygcg', pages=2, annoucement_type='政府采购') if __name__ == '__main__': test = SYgcg() r = test.open() results = json.loads(r.text) print(results)