Git Product home page Git Product logo

articles_api's Introduction

ARTICLES API

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. API endpoints
  5. License
  6. Contact

About The Project

Python application for web crawling of dynamic web page, which generates content by doing asynchronous Javascript calls after page is loaded. The Scrapy spider implements inside a Selenuim WebDriver to handle the asynchronous JS calls and handles:

  • collecting of NBS articles on multiple pages;
  • validations of collected data;
  • saving collected and valid articles to sqlite database;
  • with FastAPI framework are build endpoints of collected data.

back to top

Build With

Getting Started

Installation

  1. Clone the repo
    https://github.com/TanyaAng/Articles_API.git
  2. Install all Python libraries
    pip install -r requirements.txt
  3. Make nbs_articles root directory

Article_API_folders

back to top

Usage

  1. Run Spider from terminal:
  • (venv) ..\nbs_articles> scrapy crawl article
  1. Run FastApi: Article_API_FastAPI_config

back to top

API endpoints

Datapoint HTTP Method Description
/articles/ GET get all crawled articles and their properties
/articles/?label={label} GET get list of articles with the same label
/articles/?date={date} GET get list of articles from the date
/article/{article_id} GET get single article
/article/{article_id} DELETE delete single article
/article/{article_id} PUT update single article

back to top

License

MIT License

back to top

Contact

Tanya Angelova - LinkedIn - [email protected]

Project Link: github link

back to top

articles_api's People

Contributors

tanyaang 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.