remove debug
This commit is contained in:
parent
2cd1d85702
commit
03a91e755e
1 changed files with 1 additions and 2 deletions
|
@ -102,7 +102,7 @@ def import_url(url):
|
||||||
title = re.compile('<title>(.*?)</title>').findall(data)
|
title = re.compile('<title>(.*?)</title>').findall(data)
|
||||||
if title:
|
if title:
|
||||||
meta['title'] = title[0]
|
meta['title'] = title[0]
|
||||||
author= re.compile('<meta name="author" content="(.*?)"').findall(data)
|
author = re.compile('<meta name="author" content="(.*?)"').findall(data)
|
||||||
if author:
|
if author:
|
||||||
meta['author'] = author
|
meta['author'] = author
|
||||||
fd, pdf = tempfile.mkstemp('.pdf')
|
fd, pdf = tempfile.mkstemp('.pdf')
|
||||||
|
@ -113,7 +113,6 @@ def import_url(url):
|
||||||
})
|
})
|
||||||
meta['id'] = did
|
meta['id'] = did
|
||||||
r = api.editDocument(meta)
|
r = api.editDocument(meta)
|
||||||
print(r['data']['id'])
|
|
||||||
os.unlink(pdf)
|
os.unlink(pdf)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue