Vitali_Kozlou_h4j0rx@gmail.com#13
Conversation
|
|
||
|
|
||
| parser = argparse.ArgumentParser() | ||
| parser.add_argument('--url', type=str, help='Please enter a valid URL for RSS Feed') |
There was a problem hiding this comment.
RSS url is supposed to be passed to your application without option --url check example in FinalTask.md
| :param verbose: True of False | ||
| :return: non-formatted feed | ||
| """ | ||
| if verbose: |
There was a problem hiding this comment.
Here and below. For such logging purposes it is bettert to use logging standart library. Check it out
|
Some feedback on your application work:
6 (optional). A minor thing but if there are many news printed it becomes hard to tell where ends one and starts another. Please separate them a bit better. |
Please do not use such commit messages. They should correspond to commit message style guide. |
| print('Wait a second, we will check if there is any RSS in URL you have given') | ||
| print('-' * 50) | ||
| response = get(url) | ||
| r = response.headers['Content-Type'] # We will check only headers |
There was a problem hiding this comment.
It is better to avoid one-letter variable names
|
Iterations 1 and 2 are done. Please review.