Skip to content

Pivovar Sergey #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
a2a2d07
Added rss_reader
TeRRoRlsT Nov 10, 2019
78af7b2
Completed Iteration #1
TeRRoRlsT Nov 14, 2019
ec86d62
Completed Iteration 2
TeRRoRlsT Nov 16, 2019
63e4a49
Fix rss_reader
TeRRoRlsT Nov 16, 2019
424df94
Added error handling
TeRRoRlsT Nov 17, 2019
96b1110
Rebuilt the project
TeRRoRlsT Nov 17, 2019
4da92c8
Change signature
TeRRoRlsT Nov 24, 2019
8337f86
Added Caching
TeRRoRlsT Nov 24, 2019
6c1822c
Update version to `1.0` + added args `--to-pdf TO_PDF` and `--to-html…
TeRRoRlsT Nov 25, 2019
4f0ad7c
Update .gitignore
TeRRoRlsT Nov 25, 2019
708c920
Change returned info about images in articles in `htmlparser` module …
TeRRoRlsT Nov 25, 2019
ccb6b01
Added converting articles to HTML format + added OutputController + a…
TeRRoRlsT Nov 25, 2019
d67280e
Added info about db in README
TeRRoRlsT Nov 26, 2019
09545d0
Added and fixed all output controllers + write all docstrings
TeRRoRlsT Nov 26, 2019
d902a68
Clear __init__.py with PEP8 + added cache folder in gitignore
TeRRoRlsT Nov 26, 2019
4ae0a61
Optimize method `create_and_return` in articlemanager
TeRRoRlsT Nov 26, 2019
906d985
Change behavior of Article model.
TeRRoRlsT Nov 26, 2019
a15613a
Added new fields of Article model in htmlparser + optimized processin…
TeRRoRlsT Nov 26, 2019
4957b1c
Completed Iteration 4
TeRRoRlsT Nov 26, 2019
cb4eb46
Fix setup.py
TeRRoRlsT Nov 26, 2019
7c4d68f
fix setup.py
TeRRoRlsT Nov 26, 2019
0a7e752
Added param `--colorize` with description
TeRRoRlsT Nov 27, 2019
b67a537
Added implementation for standard output in colorized mode + update d…
TeRRoRlsT Nov 27, 2019
71b3570
Added package `colorama` in setup
TeRRoRlsT Nov 27, 2019
57bd2d2
update version to `1.1`
TeRRoRlsT Nov 27, 2019
78530db
Complete Iteration 5 + Optimize all imports
TeRRoRlsT Nov 27, 2019
a3bcf80
Rename modules and packages with PEP8
TeRRoRlsT Nov 27, 2019
0981434
Changed way to access fields in the response struct
TeRRoRlsT Nov 27, 2019
1417f03
Update and optimize methods of module `html_parser`
TeRRoRlsT Nov 27, 2019
b918ffb
Update to v1.2
TeRRoRlsT Nov 28, 2019
297dbb8
Changed way to access fields in the response struct in `rss_reader`
TeRRoRlsT Nov 28, 2019
54969ff
Add return in `RSSReader.__call__` + fix dosctring + optimize module
TeRRoRlsT Nov 28, 2019
3020dd4
Added unittests
TeRRoRlsT Nov 28, 2019
75e4f94
Added unittest OutputController
TeRRoRlsT Nov 28, 2019
394edba
Remove return value from RSSReader.__call__
TeRRoRlsT Nov 28, 2019
9e85c65
Complete unittests for output_controller module
TeRRoRlsT Nov 28, 2019
2b130cc
fix imports in unittests html_parser_tests
TeRRoRlsT Nov 28, 2019
b009b72
Completed unittests rss_reader_tests
TeRRoRlsT Nov 28, 2019
976ad9f
Rename module `html_parser` to `feed_parser`
TeRRoRlsT Nov 30, 2019
3a47a07
Added part of iteration 6
TeRRoRlsT Dec 1, 2019
5608d16
Fix commited iteration 6
TeRRoRlsT Dec 1, 2019
764224c
Added return if no articles to show
TeRRoRlsT Dec 1, 2019
8a3ae96
Disable DEBUG mode in Django server and remove django admin
TeRRoRlsT Dec 1, 2019
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
48 changes: 5 additions & 43 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
Expand All @@ -24,18 +19,10 @@ wheels/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
Expand All @@ -46,59 +33,34 @@ coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.idea/
*.sqlite3
*.html
*.pdf
__cache__/
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Welcome
This project was created for the EPAM Python Courses 2019.

## Installing

First, this app runs on Python version >=3.8.

### Download:

`git clone https://github.com/TeRRoRlsT/PythonHomework.git`

### Setup:
Go to repository **PythonHomework** and execute the command:

`python3.8 -m pip install .`

or

`pip install .`

## Running
To view the help for running project go to **PythonHomework/rssreader** folder and execute the command:

`python3.8 rss_reader.py --help`

### SQLite3
This application uses SQLite3 database to cache all downloaded news articles.
If you use '--date YYYYMMDD' the application will load news articles from the DB with the date after the given date.

## Tests
For run unittest go to **PythonHomework** folder and execute the command:

`python3.8 -m unittest tests`

## Authors
* Sergey Pivovar - BSUIR 2019
Empty file added __init__.py
Empty file.
1 change: 1 addition & 0 deletions rssreader/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = "1.2"
Loading