Skip to content

Commit

Permalink
Add an unencoded query example to README.md (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasschwab authored Oct 19, 2023
1 parent 70669e3 commit c24717f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,16 @@ for result in arxiv.Client().results(search):
print(result.title)
```

Use the `query` syntax documented in the [arXiv API User Manual](https://arxiv.org/help/api/user-manual#query_details):

```python
import arxiv

search = arxiv.Search(query = "au:del_maestro AND ti:checkerboard")
first_result = next(arxiv.Client().results(search))
print(first_result)
```

Fetch and print the title of the paper with ID "1605.08386v1:"

```python
Expand Down

0 comments on commit c24717f

Please sign in to comment.