Skip to content

Commit c24717f

Browse files
authored
Add an unencoded query example to README.md (#143)
1 parent 70669e3 commit c24717f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ for result in arxiv.Client().results(search):
6767
print(result.title)
6868
```
6969

70+
Use the `query` syntax documented in the [arXiv API User Manual](https://arxiv.org/help/api/user-manual#query_details):
71+
72+
```python
73+
import arxiv
74+
75+
search = arxiv.Search(query = "au:del_maestro AND ti:checkerboard")
76+
first_result = next(arxiv.Client().results(search))
77+
print(first_result)
78+
```
79+
7080
Fetch and print the title of the paper with ID "1605.08386v1:"
7181

7282
```python

0 commit comments

Comments
 (0)