Issue:
In case of works.query timeout was not working as expected.
Way to replicate the issue:
from crossref.restful import Works
title = "Show, Tell and Summarize: Dense Video Captioning Using Visual Cue Aided Sentence Summarization"
author = "Zhiwang Zhang"
works = Works(timeout=(1,1)) # connect timeout, read timeout
w1 = works.query(bibliographic=title, author=author).sort("relevance")
for record in w1:
print(record)
Above code should timeout after 1 second.
Changes made:
[x] Make request call in query method consistent with other methods.
Issue: In case of
works.query
timeout was not working as expected.Way to replicate the issue:
Above code should timeout after 1 second.
Changes made:
query
method consistent with other methods.