Metadata-Version: 2.1
Name: google-custom-search
Version: 0.0.2
Summary: This is for google custom search api.
Home-page: https://github.com/tuna2134/google-custom-search
Author: DMS
Author-email: masato190411@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
Requires-Dist: aiohttp
Requires-Dist: requests

# How to use this package.

## first please install this package
```bash
pip install google-custom-search
```

## sample code
```py
import google_custom_search

google=google_custom_search.custom_search(token="your api_key", engine_id=your engine_id)

result=google.search("Hello")

# get a list of title.
for title in result.titles:
  print(title)

# get a list of url.
for url in result.urls:
  print(url)
```

## sample code async version
```py
import asyncio
import google_custom_search

google=google_custom_search.custom_search(token="your api_key", engine_id="your engine_id")

async def main():
  result=await google.search_async("眠い")
  for i in result.titles:
    print(i)
  for i in result.urls:
    print(i)

loop = asyncio.get_event_loop() 
loop.run_until_complete(main())
```

