Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into 46-get-details-for-…
Browse files Browse the repository at this point in the history
…multiple-papers-or-authors-at-once
  • Loading branch information
danielnsilva committed Dec 24, 2022
2 parents 20195a8 + d52e38d commit 9f22466
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/toc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: TOC Generator

on:
push:
paths:
- 'README.md'
workflow_dispatch:

jobs:
toc:
runs-on: ubuntu-latest
name: Generate TOC
steps:
- uses: technote-space/toc-generator@v4
with:
TOC_TITLE: ''
MAX_HEADER_LEVEL: 3
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@ Unofficial [Semantic Scholar Academic Graph API](https://api.semanticscholar.org

![](search_paper.gif)

## Table of Contents

<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->

- [How to install](#how-to-install)
- [Usage](#usage)
- [Paper Lookup](#paper-lookup)
- [Author Lookup](#author-lookup)
- [Search for papers and authors](#search-for-papers-and-authors)
- [Traversing search results](#traversing-search-results)
- [Query parameters for all methods](#query-parameters-for-all-methods)
- [Query parameters for all search methods](#query-parameters-for-all-search-methods)
- [Query parameters for search papers](#query-parameters-for-search-papers)
- [Other options](#other-options)
- [Accessing the Data Partner's API](#accessing-the-data-partners-api)
- [Semantic Scholar Academic Graph API docs](#semantic-scholar-academic-graph-api-docs)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

## How to install
```console
pip install semanticscholar
Expand Down
1 change: 1 addition & 0 deletions tests/test_semanticscholar.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def test_search_paper_traversing_results(self):
data = self.sch.search_paper('turing')
all_results = [item.title for item in data]
self.assertRaises(BadQueryParametersException, data.next_page)
self.assertEqual(len(all_results), len(data.items))

@test_vcr.use_cassette
def test_search_paper_fields_of_study(self):
Expand Down

0 comments on commit 9f22466

Please sign in to comment.