fix hypothesis demo
This commit is contained in:
parent
8da1f34653
commit
8e50fad929
1 changed files with 3 additions and 2 deletions
5
demo.py
5
demo.py
|
@ -46,9 +46,10 @@ def run():
|
|||
check_call(['my_repo/with_my', 'python3', '-c', '''
|
||||
import my.hypothesis
|
||||
|
||||
from pprint import pprint
|
||||
pages = my.hypothesis.get_pages()
|
||||
|
||||
for page in my.hypothesis.get_pages()[:8]:
|
||||
from itertools import islice
|
||||
for page in islice(pages, 0, 8):
|
||||
print('URL: ' + page.link)
|
||||
print('Title: ' + page.title)
|
||||
print('{} annotations'.format(len(page.highlights)))
|
||||
|
|
Loading…
Add table
Reference in a new issue