GithubHelp home page GithubHelp logo

ctrlcctrlv / dchan Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kunstderfuge/dchan

0.0 2.0 0.0 377.37 MB

Django-powered archive of Q-related chan posts

Home Page: https://dchan.qorigins.org

Shell 0.22% JavaScript 8.21% Python 61.46% CSS 3.08% HTML 27.03%

dchan's Introduction

dChan

Django-powered archive of Q-related chan posts

Installation

First, create a virtualenv and install requirements:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Now start serving Django locally:

python manage.py runserver

Next, load the data:

python manage.py load_chan_data

Process replies (for reply links), 4chan links (for >>links on 4chan threads), search vectors (for efficient full-text search capabilities), and mark Q drops. Each step will take quite a while for large datasets:

python manage.py process_replies
python manage.py process_4chan_links
python manage.py process_search_vectors
python manage.py mark_q_drops

Setting up automatic scraping

For dChan's automatic scrape functions, we also need to configue supervisor (to daemonize celery) and scrapyd.

Install supervisord for your server's distribution, example for Ubuntu:

sudo apt-get install supervisor

Copy the included celery configuration files into supervisor's conf.d directory:

sudo cp supervisor/*.conf /etc/supervisor/conf.d

Scan and update the conf files with supervisorctl:

sudo supervisorctl reread
sudo supervisorctl update

Now download Firefox's geckodriver to enable archive.is scraping. Download the latest geckodriver release from https://github.com/mozilla/geckodriver/releases, then extract the geckodriver file. Make it executable and move it to /usr/local/bin:

chmod +x geckodriver
sudo mv geckodriver /usr/local/bin/

dchan's People

Contributors

kunstderfuge avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.