Coder Social home page Coder Social logo

vyahello / newspaper-parser Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 25.31 MB

๐Ÿ—ž๏ธ Web tool to parse newspaper resources (python + flask + html/css + travisCI + heroku)

Home Page: https://newspaper-parser.herokuapp.com

License: MIT License

Shell 7.60% Python 51.59% CSS 20.66% HTML 20.15%
web-parser

newspaper-parser's Introduction

made-with-python Build Status Coverage Status Code style: black Checked with pylint Checked with flake8 Checked with pydocstyle Checked with mypy License EO principles respected here CodeFactor

Newspaper parser

A sample web tool to parse given newspaper resources.

Please check https://newspaper-parser.herokuapp.com to get familiar with an application.

Note: please take into account that it is built for demo purpose but not for actual usage.

Tools

Production

  • python 3.6, 3.7, 3.8
  • flask

Development

Usage

Usage

Quick start

Please open https://newspaper-parser.herokuapp.com and start using an application.

Source code

git clone git@testhome:vyahello/newspaper-parser
python -m article

After, please open 0.0.0.0:5001 endpoint.

โฌ† back to top

Development notes

Testing

Generally, pytest tool is used to organize testing procedure.

Please follow next command to run unittests:

pytest

CI

Project has Travis CI integration using .travis.yml file thus code analysis (black, pylint, flake8, mypy, pydocstyle) and unittests (pytest) will be run automatically after every made change to the repository.

To be able to run code analysis, please execute command below:

./analyse-source-code.sh

Release notes

Please check changelog file to get more details about actual versions and it's release notes.

Meta

Author โ€“ Volodymyr Yahello. Please check authors file for more details.

Distributed under the MIT license. See license for more information.

You can reach out me at:

Contributing

  1. clone the repository
  2. configure Git for the first time after cloning with your name and email
  3. pip install -r requirements.txt to install all project dependencies
  4. pip install -r requirements-dev.txt to install all development project dependencies

โฌ† back to top

newspaper-parser's People

Contributors

dependabot[bot] avatar vyahello avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

newspaper-parser's Issues

newspaper.article.ArticleException

newspaper.article.ArticleException: Article download() failed with 404 Client Error: Not Found for url: https://www...
There's this error when the user enters a wrong URL. I think it'll be good addon if you consider this case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.