Skip to content

Commit

Permalink
update log
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Mar 5, 2016
1 parent ac08e23 commit b3b9070
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ parser for:
http://www.sciencedirect.com/science/article/pii/S1570870513000073

Fast Sorted-Set Intersection using SIMD Instructions - cite cnt error

failure: Blocks World Revisited
3 changes: 1 addition & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
from setuptools import setup
kwargs = dict(
name = 'sopaper',
version = '0.4',
version = '0.5',
description = 'Automatically search and download paper',
author = 'Yuxin Wu',
author_email = '[email protected]',
url = 'https://github.com/ppwwyyxx/sopaper',
download_url = 'https://github.com/ppwwyyxx/sopaper/tarball/0.3',
keywords = ['Utility'],
packages = ['sopaper', 'sopaper.fetcher',
'sopaper.lib', 'sopaper.searcher'],
Expand Down
3 changes: 2 additions & 1 deletion sopaper/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,16 +124,17 @@ def main():
f.write(data)
if args.output:
os.rename(filename, args.output)
log_info("Successfully downloaded to {0}".format(filename))
break
else:
log_err("Failed to download {0}".format(ctx.title))
return
if ctx.meta.get('bibtex'):
log_info("Bibtex:\n{}".format(ctx.meta['bibtex']))
if ctx.meta.get('author'):
log_info("Author: {0}".format(ctx.meta['author']))
if ctx.meta.get('citecnt'):
log_info("Cite count: {0}".format(ctx.meta['citecnt']))
log_info("Successfully downloaded to {0}".format(filename))

if __name__ == '__main__':
main()

0 comments on commit b3b9070

Please sign in to comment.