Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions PyPaperBot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def main():
proxy(pchain)

if args.query is None and args.doi_file is None and args.doi is None and args.cites is None:
print("Error, provide at least one of the following arguments: --query, --file, or --cites")
print("Error, provide at least one of the following arguments: --query, --doi-file, --doi, or --cites")
sys.exit()

if (args.query is not None and args.doi_file is not None) or (args.query is not None and args.doi is not None) or (
Expand Down Expand Up @@ -171,7 +171,7 @@ def main():
r"Error: Invalid format for --scholar-pages option. Expected: %d or %d-%d, got: " + args.scholar_pages)
sys.exit()
else:
print("Error: with --query provide also --scholar-pages")
print("Error: with --query or --cites provide also --scholar-pages")
sys.exit()
else:
scholar_pages = 0
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ You can use only one of the arguments in the following groups
- *\-\-query*, *\-\-doi-file*, and *\-\-doi*
- *\-\-max-dwn-year* and *and max-dwn-cites*

One of the arguments *\-\-scholar-pages*, *\-\-query *, and* \-\-file* is mandatory
The arguments *\-\-scholar-pages* is mandatory when using *\-\-query *
One of the arguments *\-\-query*, *\-\-doi-file*, *\-\-doi*, or *\-\-cites* is mandatory
The argument *\-\-scholar-pages* is mandatory when using *\-\-query* or *\-\-cites*
The argument *\-\-dwn-dir* is mandatory

The argument *\-\-journal-filter* require the path of a CSV containing a list of journal name paired with a boolean which indicates whether or not to consider that journal (0: don't consider /1: consider) [Example](https://github.com/ferru97/PyPaperBot/blob/master/file_examples/jurnals.csv)
Expand Down