frabcus / unparse-archive

Archive of code to parse UN documents and show the UNDemocracy site, written 2006-2009. Data in undata-archive.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UN project
==========

Please document here files and directories which you make.

scraper - Julian's scraper and parser
bin - Scripts and executables
web - Drupal-based website code
web2 - Python-based website code

phplib - Python modules
perllib - Perl modules

Apache configuration
====================

Needs some fancy mod-rewrite rules. Do something like this:

# Staging site
<VirtualHost *:80>
    ServerName staging.undemocracy.com

    ServerAdmin info@undemocracy.com
    DocumentRoot /data/vhost/staging.undemocracy.com/docs

    RewriteEngine on
    #RewriteLog /var/log/apache/rewrite.log
    #RewriteLogLevel 3
    RewriteCond %{REQUEST_URI} !^/.*.css
    RewriteCond %{REQUEST_URI} !^/.*.js
    RewriteCond %{REQUEST_URI} !^/.*.png
    RewriteCond %{REQUEST_URI} !^/images/.*
    RewriteRule ^/(.*)$ /trunk.py/$1 [PT,L,QSA]

    <Directory "/data/vhost/staging.undemocracy.com/docs/">
        AllowOverride All
        Options FollowSymLinks
        Order allow,deny
        Allow from all
        Options +ExecCGI
        AddHandler cgi-script .cgi .py
    </Directory>

    Alias /pdf/ /home/undemocracy/undata/pdf/
</VirtualHost>

About

Archive of code to parse UN documents and show the UNDemocracy site, written 2006-2009. Data in undata-archive.

License:Other


Languages

Language:PHP 36.2%Language:Python 35.6%Language:JavaScript 12.1%Language:HTML 7.5%Language:CSS 6.8%Language:Perl 1.3%Language:Shell 0.2%Language:ApacheConf 0.2%Language:Ruby 0.1%