def __init__(self, **kwargs): GsxtHuNanWorker.__init__(self, **kwargs) self.url = 'http://{host}/notice/home'.format(host=self.host) self.pattern = 'window\.open\(\'http://sc\.gsxt\.gov\.cn/notice/notice/view\?uuid=(.*?)&tab=01\'\)' self.input_selector = '#keyword' self.search_selector = '#buttonSearch' self.result_selector = ".tableContent.page-item" self.success_selector = '.contentA' self.proxy_type = self.PROXY_TYPE_STATIC
def __init__(self, **kwargs): GsxtHuNanWorker.__init__(self, **kwargs) self.url = 'http://{host}/notice/home'.format(host=self.host) self.pattern = 'window\.open\(\'http://yn\.gsxt\.gov\.cn/notice/notice/view\?uuid=(.*?)&tab=01\'\)' self.proxy_type = self.PROXY_TYPE_DYNAMIC
def __init__(self, **kwargs): GsxtHuNanWorker.__init__(self, **kwargs)
def __init__(self, **kwargs): GsxtHuNanWorker.__init__(self, **kwargs) self.url = 'http://{host}/notice'.format(host=self.host) self.pattern = "javascript:qry\.viewDetail\('(.*?)','.*?'\)" self.proxy_type = self.PROXY_TYPE_DYNAMIC