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
70f9b505
Commit
70f9b505
authored
Sep 08, 2017
by
Alexandre Delanoë
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[HAL] adapting crawler for one language (english by default).
parent
b94aefad
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
HAL.py
gargantext/util/crawlers/HAL.py
+5
-4
HAL.py
gargantext/util/parsers/HAL.py
+2
-2
No files found.
gargantext/util/crawlers/HAL.py
View file @
70f9b505
...
@@ -29,17 +29,18 @@ class HalCrawler(Crawler):
...
@@ -29,17 +29,18 @@ class HalCrawler(Crawler):
'''formating the query'''
'''formating the query'''
#search_field="title_t"
#search_field="title_t"
search_field
=
"abstract_t"
#
search_field="abstract_t"
#return (search_field + ":" + "(" + query + ")")
#return (search_field + ":" + "(" + query + ")")
return
query
# (search_field + ":" + "(" + query + ")")
return
"("
+
query
+
")"
def
_get
(
self
,
query
,
fromPage
=
1
,
count
=
10
,
lang
=
None
):
def
_get
(
self
,
query
,
fromPage
=
1
,
count
=
10
,
lang
=
None
):
# Parameters
# Parameters
fl
=
""" title_s
fl
=
""" en_title_s
, abstract_s
, en_title_s
, en_abstract_s
, submittedDate_s
, submittedDate_s
, journalDate_s
, journalDate_s
, authFullName_s
, authFullName_s
...
...
gargantext/util/parsers/HAL.py
View file @
70f9b505
...
@@ -16,8 +16,8 @@ class HalParser(Parser):
...
@@ -16,8 +16,8 @@ class HalParser(Parser):
hyperdata_list
=
[]
hyperdata_list
=
[]
hyperdata_path
=
{
"id"
:
"isbn_s"
hyperdata_path
=
{
"id"
:
"isbn_s"
,
"title"
:
"title_s"
,
"title"
:
"
en_
title_s"
,
"abstract"
:
"abstract_s"
,
"abstract"
:
"
en_
abstract_s"
,
"source"
:
"journalTitle_s"
,
"source"
:
"journalTitle_s"
,
"url"
:
"uri_s"
,
"url"
:
"uri_s"
,
"authors"
:
"authFullName_s"
,
"authors"
:
"authFullName_s"
...
...
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