vnurhaqiqi / scraping-cnbcindonesia-api

Indonesia news api by scraping from CNBC Indonesia

Home Page:https://flask-scraping-cncbind.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SCRAPING-CNBC-INDONESIA

Introduction

API Indonesia news by scraping data from cnbc indonesia. This is unofficial API, feel free to use or rebuild it again. Here's my reference to build this API services rizki4106 / cnnindonesia-news-api.

Features

  • Get all list of news
  • Show news content
  • Search news by query / keywords

Try your own

Deploy

Installment

clone the project

git clone https://github.com/vnurhaqiqi/scraping-cnbcindonesia-api

install all dependencies

pip install -r requirements.txt

run virtual env

source /env/bin/activate

run server using gunicorn

gunicorn app:app

Usage

Documentation

No. Description Endpoint Query Params Method
1 Return list of the latest news /api/v1/cnbc-news-articles - GET
2 Return list of the latest news by category /api/v1/cnbc-news-articles?category={category} category GET
3 Return specific news content /api/v1/cnbc-news-detail?url={url} url GET
4 Search news by given query word /api/v1/cnbc-news-search?query={keywords} query GET

List of Category

No. Category
1 market
2 investment
3 news
4 entrepreneur
5 syariah
6 tech
7 lifestyle
8 profil

Example


Copyright © 2021 by Viqi Nurhaqiqi

About

Indonesia news api by scraping from CNBC Indonesia

https://flask-scraping-cncbind.herokuapp.com/

License:MIT License


Languages

Language:Python 100.0%