Code Monkey home page Code Monkey logo

daurbek-abrikov / adv_python_flask_huggingface Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 44.36 MB

License: MIT License

HTML 0.01% Python 98.45% Shell 0.01% PowerShell 0.01% C 1.10% Batchfile 0.01% Assembly 0.01% C++ 0.17% Cython 0.16% Fortran 0.02% Jinja 0.01% ActionScript 0.01% Smalltalk 0.01% Emacs Lisp 0.03% JavaScript 0.03% OCaml 0.01% NewLisp 0.01% Perl 0.01% Ruby 0.01% Slash 0.01%
python-scraping flask-sqlalchemy pyjwt huggingface-transformers

adv_python_flask_huggingface's Introduction

adv_python_flask_huggingface

Title: Final project

Python, Flask for the basics, for the front: HTML and CSS Bootstrap, for the back: flask-SQLAlchemy as ORM and PostgreSQL as DBMS. For scraping we used: requests, selenium and BeautifulSoup. For summarizing text huggyingface.

The first thing is to log in to the site, by default there are users "first_user", "second_user", "third_user" with the same password "password". After authorization, you can go to the functions of the site. The site allows the user to search for news by entering the name of the desired cryptocurrency, and after clicking the "Check" button shows the news and its summary to the right of the news itself related to this cryptocurrency from coinmarketcap.com.

The principle of work is the following: first there is a search of news, then its saving in the database, then return the results from the database.

Installation

PyPI

pip install flask flask-sqlalchemy selenium bs4 chromedriver-binary

Usage

After installing needed modules, just execute app.py, it will start server.

python3 src/app.py

Then just go by port(by default 5000) generated by server: http://127.0.0.1:5000/ or http://localhost:5000/

Examples

There are three routes: '/' (default) home page, '/news' for searching for news and '/login' for authorizing.
For example, here we searched for "binance coin" coin and it returns: image image

adv_python_flask_huggingface's People

Contributors

daurbek-abrikov avatar lelxuch avatar

Watchers

 avatar

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.