shannonz88 / TinyGoogle

A search web app built by flask and google cse

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TinyGoogle

TinyGoogle built with Flask + Bootstrap + Google CSE

Live Demo: http://tinygoo.herokuapp.com

Note: the demo may need some spin up time if nobody has accessed it for a certain period.

Features

  • Search content by Google Custom Search API
  • Ignore GFW to use google search

Search Times

There are 4 engines in this demo. Each engine can search 100 times/day.

If the demo run out of search times when you use, please try just another day.

Requirements

  • python 2.7.10 (haven't port to python3 yet)
  • flask 0.10.1
  • gunicorn 19.6.0
  • requests 2.11.1
  • flask-bootstrap 3.3.7.0

Build Setup

  1. install requirements
pip install -r requirements.txt
  1. run
python app.py
# server at http://127.0.0.1:5000

or

gunicorn app:app  
# server at http://127.0.0.1:8000

Config

  1. in data/engine.json, you can change&add the engine's key and cx values:
  {
    "YOUR_ENGINE":{
      "name":"YOUR_NAME",
      "key":"YOUR_API_KEY",
      "cx":"YOUR_ENGINE_ID"
    }
  },
  1. where to get CSE ID and Google API key :

Google CSE & Google API Console

Todo

  • page-content-minigame(just like doodle)

License

TinyGoogle is licensed under MIT

About

A search web app built by flask and google cse

License:MIT License


Languages

Language:Python 100.0%