Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
fd88233b
Commit
fd88233b
authored
May 09, 2016
by
delanoe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RENAME] scrapers -> scrappers -> moissonneurs (in French).
parent
27d3b588
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
17 additions
and
17 deletions
+17
-17
urls.py
gargantext/urls.py
+3
-3
__init__.py
moissonneurs/__init__.py
+0
-0
istex.py
moissonneurs/istex.py
+1
-1
pubmed.py
moissonneurs/pubmed.py
+1
-1
urls.py
moissonneurs/urls.py
+7
-7
util.py
moissonneurs/util.py
+0
-0
project.html
templates/pages/projects/project.html
+5
-5
No files found.
gargantext/urls.py
View file @
fd88233b
...
...
@@ -26,7 +26,7 @@ from annotations.views import main as annotations_main_view
import
graphExplorer.urls
# Module Scrapers
import
scrape
rs.urls
import
moissonneu
rs.urls
urlpatterns
=
[
url
(
r'^admin/'
,
admin
.
site
.
urls
)
...
...
@@ -43,6 +43,6 @@ urlpatterns = [ url(r'^admin/' , admin.site.urls )
,
url
(
r'^annotations/'
,
include
(
annotations_urls
)
)
,
url
(
r'^projects/(\d+)/corpora/(\d+)/documents/(\d+)/$'
,
annotations_main_view
)
# Module Scrapers
,
url
(
r'^
scrapers/'
,
include
(
scrape
rs
.
urls
)
)
# Module Scrapers
(Moissonneurs in French)
,
url
(
r'^
moissonneurs/'
,
include
(
moissonneu
rs
.
urls
)
)
]
scrape
rs/__init__.py
→
moissonneu
rs/__init__.py
View file @
fd88233b
File moved
scrape
rs/istex.py
→
moissonneu
rs/istex.py
View file @
fd88233b
...
...
@@ -15,7 +15,7 @@ from gargantext.util.http import JsonHttpResponse
from
gargantext.util.scheduling
import
scheduled
from
gargantext.util.toolchain
import
parse_extract_indexhyperdata
from
scrape
rs.util
import
Scraper
from
moissonneu
rs.util
import
Scraper
...
...
scrape
rs/pubmed.py
→
moissonneu
rs/pubmed.py
View file @
fd88233b
...
...
@@ -26,7 +26,7 @@ from gargantext.util.http import JsonHttpResponse
from
gargantext.util.scheduling
import
scheduled
from
gargantext.util.toolchain
import
parse_extract_indexhyperdata
from
scrape
rs.util
import
Scraper
from
moissonneu
rs.util
import
Scraper
...
...
scrape
rs/urls.py
→
moissonneu
rs/urls.py
View file @
fd88233b
...
...
@@ -7,7 +7,7 @@
#
#
Scrape
rs == getting data from external databases
#
moissonneu
rs == getting data from external databases
# Available databases :
...
...
@@ -18,19 +18,19 @@
from
django.conf.urls
import
url
import
scrape
rs.pubmed
as
pubmed
import
scrape
rs.istex
as
istex
import
moissonneu
rs.pubmed
as
pubmed
import
moissonneu
rs.istex
as
istex
# TODO
#import
scrape
rs.cern as cern
#import
moissonneu
rs.cern as cern
# TODO
#import
scrape
rs.hal as hal
#import
scrape
rs.revuesOrg as revuesOrg
#import
moissonneu
rs.hal as hal
#import
moissonneu
rs.revuesOrg as revuesOrg
# TODO ?
# REST API for the
scrape
rs
# REST API for the
moissonneu
rs
# /!\ urls patterns here are *without* the trailing slash
urlpatterns
=
[
url
(
r'^pubmed/query$'
,
pubmed
.
query
)
...
...
scrape
rs/util.py
→
moissonneu
rs/util.py
View file @
fd88233b
File moved
templates/pages/projects/project.html
View file @
fd88233b
...
...
@@ -293,7 +293,7 @@
$
.
ajax
({
// contentType: "application/json",
url
:
window
.
location
.
origin
+
"/
scrape
rs/pubmed/save/"
+
projectid
,
url
:
window
.
location
.
origin
+
"/
moissonneu
rs/pubmed/save/"
+
projectid
,
data
:
pubmedifiedQuery
,
type
:
'POST'
,
beforeSend
:
function
(
xhr
)
{
...
...
@@ -365,7 +365,7 @@
if
(
theType
==
"Pubmed (XML format)"
)
{
$
.
ajax
({
// contentType: "application/json",
url
:
window
.
location
.
origin
+
"/
scrape
rs/pubmed/query"
,
url
:
window
.
location
.
origin
+
"/
moissonneu
rs/pubmed/query"
,
data
:
formData
,
type
:
'POST'
,
beforeSend
:
function
(
xhr
)
{
...
...
@@ -403,10 +403,10 @@
}
if
(
theType
==
"ISTex"
)
{
console
.
log
(
window
.
location
.
origin
+
"
scrape
rs/istex/query"
)
console
.
log
(
window
.
location
.
origin
+
"
moissonneu
rs/istex/query"
)
$
.
ajax
({
// contentType: "application/json",
url
:
window
.
location
.
origin
+
"/
scrape
rs/istex/query"
,
url
:
window
.
location
.
origin
+
"/
moissonneu
rs/istex/query"
,
data
:
formData
,
type
:
'POST'
,
beforeSend
:
function
(
xhr
)
{
...
...
@@ -537,7 +537,7 @@
$
.
ajax
({
// contentType: "application/json",
url
:
window
.
location
.
origin
+
"/
scrape
rs/istex/save/"
+
projectid
,
url
:
window
.
location
.
origin
+
"/
moissonneu
rs/istex/save/"
+
projectid
,
data
:
postQuery
,
type
:
'POST'
,
beforeSend
:
function
(
xhr
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment