Skip to content

vnurhaqiqi/scraping-cnbcindonesia-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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