Skip to content

Latest commit

 

History

History
111 lines (77 loc) · 2.68 KB

README.md

File metadata and controls

111 lines (77 loc) · 2.68 KB

Nitp_Web API [Unofficial]


This API is capable of fetching notices from NITP Website


Show some ❤️ and ⭐ the repo to support the project

Thank You:)

👊 Script written in Python using Beautiful Soup and Flask


🚧 Categories

This API supports category wise. Here is a complete list of all categories.

  • all
  • events
  • important
  • announcements
  • blink
  • archive

Usage

Make a request specifying the category of notices you want

https://nitp-web-api.vercel.app/news?category={category_name}

Example - https://nitp-web-api.vercel.app/news?category=events

In case of error , please refresh the page.

Note:- As the official website is too slow, response may delay and the API is hosted on free service.


Response Format

The response JSON Object looks something like this -

{
	"category": "announcements",
	"data": [
		{
		"link": "http://www.nitp.ac.in/uploads/Walk-in-interviewforProject%20Assistant.pdf",
		"title": " Walk-in-interview for Project Assistant"
		},
		{
		"link": "http://www.nitp.ac.in/uploads/evaluation-21.10.2020.pdf",
		"title": " Assessment of students i.r.o July-December,2020"
		},
	],
	"success": true,
	"total":2
}

Setup ↗️

Use the git to clone script of Nitp_webite-scraping

git clone https://github.com/chellarao-chowdary/Nitp_web-api.git

Install dependencies

Install all dependencies listed in requirements.txt file

  1. To install all dependencies run -

    $ sudo -H pip3 install -r requirements.txt
  2. Start the server

    $ python3 app.py

📍In case of WINDOWS, use pip and python


Apps using this API

Telegram Channel of NITP Web

Telegram


You can fork the repo and deploy on VPS, Heroku or Vercel :)

Deploy

Deploy to Vercel


⭐ the Repo in case you liked it :)

Made with ❤️ in India

Contributing 💯

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.