summaryrefslogtreecommitdiff
path: root/scraper/s2.py
diff options
context:
space:
mode:
authorjules@lens <julescarbon@gmail.com>2019-05-03 18:31:12 +0200
committerjules@lens <julescarbon@gmail.com>2019-05-03 18:31:12 +0200
commit1be5e0e1a85a84d9eca7d1d89d14a562b356f2e0 (patch)
treec85d4382bf974dd66e674546889c891c19b7fa8f /scraper/s2.py
parenta53909352266a2258ddfa287508f979da59a9d1d (diff)
fixing up deep search
Diffstat (limited to 'scraper/s2.py')
-rw-r--r--scraper/s2.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/scraper/s2.py b/scraper/s2.py
index 26334de8..36dbc906 100644
--- a/scraper/s2.py
+++ b/scraper/s2.py
@@ -178,10 +178,12 @@ class SemanticScholarAPI(object):
@staticmethod
def search(q, page=1, pageSize=10, yearFilter=None):
+ #print(q)
+ #print(yearFilter)
resp = requests.post(SemanticScholarAPI.SEARCH_ENDPOINT, json={
'authors': [],
'coAuthors': [],
- 'facets': {},
+ #'facets': {},
'page': page,
'pageSize': pageSize,
'publicationTypes': [],
@@ -191,5 +193,5 @@ class SemanticScholarAPI(object):
'venues': [],
'yearFilter': yearFilter,
}, headers=SemanticScholarAPI.headers)
- # print(resp.status_code)
+ #print(resp.status_code)
return None if resp.status_code != 200 else resp.json()