Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yrq110/TinyGoogle

A search web app built by Flask and Google CSE
https://github.com/yrq110/TinyGoogle

flask google-cse

Last synced: 3 months ago
JSON representation

A search web app built by Flask and Google CSE

Awesome Lists containing this project

README

        

# 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](https://en.wikipedia.org/wiki/Great_Firewall) 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

```bash
pip install -r requirements.txt
```
2. run

```bash
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"
}
},
```
2. where to get CSE ID and Google API key :

[Google CSE](https://cse.google.com/) & [Google API Console](https://console.developers.google.com/)

## Todo

* -[x] update to python3
* -[x] thumbnail switch
* -[ ] doodle

## License

TinyGoogle is licensed under [MIT](http://opensource.org/licenses/MIT)