Exemplo n.º 1
0
	async def get_media(self, titles, *args, **kwargs):
		query_des = kw.QueryDesigner()
		query = await query_des.get_media(titles, *args, **kwargs)
		try:
			data = await self._fetch(query)
		except:
			print('======get_media')
		return data
Exemplo n.º 2
0
	async def opensearch(self, search, *args, **kwargs):
		query_des = kw.QueryDesigner()
		query = await query_des.opensearch(search, *args, **kwargs)
		try:
			data = await self._fetch(query)
		except:
			print('======opensearch')
		return data
Exemplo n.º 3
0
	async def get_html(self, page, clear=True, *args, **kwargs):
		query_des = kw.QueryDesigner()
		query = await query_des.get_html(page, *args, **kwargs)
		try:
			data = await self._fetch(query)
		except:
			print('======get_html')
		return data
Exemplo n.º 4
0
	async def get_extracts(self, titles, *args, **kwargs):
		query_des = kw.QueryDesigner()
		try:
			query = await query_des.get_extracts(titles, *args, **kwargs)
		except:
			print('======get_extracts')
		
		data = await self._fetch(query)
		return data
Exemplo n.º 5
0
	async def get_urls(self, gapfrom, *args, **kwargs):
		query_des = kw.QueryDesigner()
		query = await query_des.get_urls(gapfrom, *args, **kwargs)
		print(query)
		try:
			data = await self._fetch(query)
		except:
			print('======get_urls')
		return data