Skip to content

Instantly share code, notes, and snippets.

@flatfisher
Created December 1, 2017 23:01
Show Gist options
  • Save flatfisher/ac919c890479769044266d743bd400de to your computer and use it in GitHub Desktop.
Save flatfisher/ac919c890479769044266d743bd400de to your computer and use it in GitHub Desktop.
DialogflowのEntityを爆速で作成するライブラリを作った ref: https://qiita.com/flatfisher/items/5b43d2b4b01962967833
pip install git+https://github.com/miurahr/pykakasi.git
pip install flounder
$ python test_entity_upload.py
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
"鯖"
"鯵"
"鰈"
"鱸"
"鮑"
"鮪"
"鯨"
"鮭"
from flounder.flounder import Flounder
flounder = Flounder(DEVELOPER_ACCESS_TOKEN)
create_request = flounder.create_request('Sushi', 'sushi.csv')
response = create_request.getresponse()
print (response.read())
print (response.status, response.reason)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment