2018-07-10 19:26:06 -04:00
2018-06-26 19:07:14 -04:00
2018-05-28 20:35:04 -04:00
2018-06-06 13:23:23 -04:00
2018-06-19 21:13:36 -04:00
2018-06-19 10:17:15 -04:00
2018-06-07 10:36:26 -04:00
2018-06-24 13:50:55 -04:00
2018-06-19 21:13:36 -04:00
2018-07-10 13:07:54 -04:00

OD-Database

Suggestions/concerns/PRs are welcome

Installation

Assuming you have Python 3 and git installed:

git clone https://github.com/simon987/od-database
cd od-database
sudo pip3 install -r requirements.txt

Create /config.py and fill out the parameters. Sample config:

CAPTCHA_SITE_KEY = ""
CAPTCHA_SECRET_KEY = ""
FLASK_SECRET = ""
RESULTS_PER_PAGE = (25, 50, 100, 250, 500, 1000)
HEADERS = {}
CRAWL_SERVER_TOKEN = ""
CRAWL_SERVER_PORT = 5001
CRAWL_SERVER_PROCESSES = 3
CRAWL_SERVER_THREADS = 20
SUBMIT_FTP = False
SUBMIT_HTTP = True

Running the crawl server

cd od-database
export PYTHONPATH=$(pwd)
cd crawl_server
python3 server.py

Running the web server (development)

cd od-database
python3 app.py

Running the web server with nginx (production)

  • Install dependencies:
sudo apt install build-essential python-dev
sudo pip install uwsgi
  • Adjust the path in od-database.ini
  • Configure nginx (on Debian 9: /etc/nginx/sites-enabled/default):
server {
        ...

        include uwsgi_params;
        location / {
                uwsgi_pass 127.0.0.1:3031;
        }
        
        ...
}
  • Start uwsgi:
uwsgi od-database.ini
Description
No description provided
Readme MIT 2 MiB
Languages
Python 43%
CSS 29.4%
HTML 19.2%
JavaScript 8.3%