diff options
| author | jules@lens <julescarbon@gmail.com> | 2019-05-03 18:31:12 +0200 |
|---|---|---|
| committer | jules@lens <julescarbon@gmail.com> | 2019-05-03 18:31:12 +0200 |
| commit | 1be5e0e1a85a84d9eca7d1d89d14a562b356f2e0 (patch) | |
| tree | c85d4382bf974dd66e674546889c891c19b7fa8f /scraper/s2.py | |
| parent | a53909352266a2258ddfa287508f979da59a9d1d (diff) | |
fixing up deep search
Diffstat (limited to 'scraper/s2.py')
| -rw-r--r-- | scraper/s2.py | 6 |
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() |
