Commit 4f29821a authored by delanoe's avatar delanoe

[FIX] urls and todo added.

parent 0c6a4ea4
# ____ ____ ____ _ _ ____ _____ ____ _
#/ ___| / ___| _ \| || | | _ \___ /| _ \ | |
#\___ \| | | |_) | || |_| |_) ||_ \| |_) / __)
# ___) | |___| _ <|__ _| __/___) | _ <\__ \
#|____/ \____|_| \_\ |_| |_| |____/|_| \_( /
# |_|
#
# Scrapers == getting data from external databases
# Available databases :
## Pubmed
## IsTex,
## TODO CERN
from django.conf.urls import url
import scrapers.pubmed as pubmed
import scrapers.istex as istex
# TODO
#import scrapers.cern as cern
#import scrapers.hal as hal
# TODO
#import scrapers.hal as hal
#import scrapers.revuesOrg as revuesOrg
# Scraping : getting data from external database
# Available databases : Pubmed, IsTex, (next: CERN)
# TODO ?
# REST API for the scrapers
# /!\ urls patterns here are *without* the trailing slash
urlpatterns = [ url(r'^pubmed/query$' , pubmed.query )
, url(r'^pubmed/save/(\d+)' , pubmed.save )
urlpatterns = [ url(r'^pubmed/query$' , pubmed.query )
, url(r'^pubmed/save/(\d+)' , pubmed.save )
, url(r'^istex/query$' , istex.query )
, url(r'^istex/save/(\d+)' , istex.save )
, url(r'^istex/query$' , istex.query )
, url(r'^istex/save/(\d+)' , istex.save )
# TODO REST API for the scrapers
#, url(r'^rest$' , scraping.Target.as_view() )
,
# TODO
#, url(r'^cern/query$' , cern.query )
#, url(r'^cern/save/(\d+)' , cern.save )
]
#def count(keywords):
# return 42
#
#def query_save(keywords):
# return 'path/to/query.xml'
#
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment