yrq110 / 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

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 3.5
  • flask 0.11.1
  • gunicorn 19.6.0
  • requests 2.12.1
  • flask-bootstrap 3.3.7.0

Build Setup

  1. install requirements
pip install -r requirements.txt
  1. run
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

  • update to python3
  • thumbnail switch
  • doodle

License

TinyGoogle is licensed under MIT

About

A search web app built by Flask and Google CSE

License:MIT License


Languages

Language:Python 77.1%Language:JavaScript 16.1%Language:CSS 6.2%Language:Procfile 0.6%