/thehindu-rest

Python Scraper and Java based Rest Service for "The Hindu" Archives https://www.thehindu.com/archive/

Primary LanguageJava

REST API's for The Hindu Archives

Tech Stack

  • Java
  • Spring Boot
  • Maven
  • MongoDB (db credentials currently present in src code)

Instructions

git clone https://github.com/kapishps/thehindu-rest.git
cd thehindu-rest
mvn spring-boot:run

APIs

Both the POST requests accept a List of Strings

DB Design

values are representational

  • authors collection
author articleids
kapish [12345,12346,12347]
kapish1 [12349]
  • dates collection
date articleids
2018-12-26 [12345,12346,12349]
2018-12-27 [12347]
  • cities collection
city articleids
pune [12345,12346,12349]
delhi [12347]
  • articles collection
articleid author title city date tags categories url
12345 kapish abc pune 2018-12-26 ["taga","tagb"] ["cata","catb"] linktoarticle