An open API service indexing awesome lists of open source software.

https://github.com/parajulibkrm/pokhara-university-notice-scraper

A simple node.js app to scrape list of notices and notice content from Pokhara Univerity's website
https://github.com/parajulibkrm/pokhara-university-notice-scraper

hacktoberfest

Last synced: 17 days ago
JSON representation

A simple node.js app to scrape list of notices and notice content from Pokhara Univerity's website

Awesome Lists containing this project

README

        

# PU Notices Scraper

This is a simple node.js rest api implementation to scrape notices and notice contents from Pokhara University's website.

## Installation instuctions

Clone this repo

git clone https://github.com/Parajulibkrm/Pokhara-University-Notice-Scraper.git

Install Dependencies

npm install

or

yarn

## Run the app

npm run server

or

yarn run server

# REST API

The REST API to the app is described below.

## Get list of all Notices

### Request

`GET /notices`

curl -i -H 'Accept: application/json' http://localhost:3000/notices/

### Response

HTTP/1.1 200 OK
Date: Thu, 08 Sep 2020 12:36:30 GMT
Status: 200 OK
Connection: close
Content-Type: application/json
Content-Length: 2

#### Json Response

```json
{
"timeStamp": 1599572755290,
"notices": [
{
"date": "September 07, 2020",
"title": "Three Day Webinar on Emerging Concepts in Marketing (ECM)",
"link": "https://pu.edu.np/notice/three-day-webinar-on-emerging-concepts-in-marketing-ecm/"
},
{
"date": "September 05, 2020",
"title": "सूचना !!!",
"link": "https://pu.edu.np/notice/%e0%a4%b8%e0%a5%82%e0%a4%9a%e0%a4%a8%e0%a4%be-4/"
}
]
}
```

## Get a list of Notices of specific category

### Request

`GET /notices/category`

curl -i -H 'Accept: application/json' http://localhost:3000/notices/college

### Response

HTTP/1.1 200 OK
Date: Thu, 08 Sep 2020 12:36:30 GMT
Status: 200 OK
Connection: close
Content-Type: application/json
Content-Length: 2

#### Json Response

```json
{
"timeStamp": 1599572755290,
"notices": [
{
"date": "September 07, 2020",
"title": "Three Day Webinar on Emerging Concepts in Marketing (ECM)",
"link": "https://pu.edu.np/notice/three-day-webinar-on-emerging-concepts-in-marketing-ecm/"
},
{
"date": "September 05, 2020",
"title": "Faculty of Management Studies: Postponement Notice for Admission",
"link": "https://pu.edu.np/notice/faculty-of-management-studies-postponement-notice-for-admission/"
}
]
}
```

### Request

`POST /notice`

curl -d '{"url":"https://pu.edu.np/notice/three-day-webinar-on-emerging-concepts-in-marketing-ecm/"}' -H "Content-Type: application/json" -X POST http://localhost:3000/notice

### Response

HTTP/1.1 201 Created
Date: Thu, 24 Feb 2011 12:36:30 GMT
Status: 201 Created
Connection: close
Content-Type: application/json
Location: /thing/1
Content-Length: 36

#### Json Response

```json
{
"timeStamp": 1599573280170,
"notice": {
"title": "Three Day Webinar on Emerging Concepts in Marketing (ECM) ",
"content": "Faculty of Management Studies, Pokhara University is organizing three day webinar on Emerging Concepts in Marketing (ECM) from 15th September – 17th September, 2020 in association with School of Business Alumni Relations. The webinar brings professors and experts of marketing from renowned higher education institutions of India together to share their ideas on emerging issues in marketing. The speakers are well trained in academia and have rich experience of working in the industry.The webinar is free to register and interested participants can register their names to Santosh Kumar Gurung at [email protected](9846117506)  OR Pradeep Sapkota at [email protected](9856062223) on or before 9th September, 2020.",
"html": " \n

Three Day Webinar on Emerging Concepts in Marketing (ECM)

\n

Faculty of Management Studies, Pokhara University is organizing three day webinar on Emerging Concepts in Marketing (ECM) from 15th September – 17th September, 2020 in association with School of Business Alumni Relations. The webinar brings professors and experts of marketing from renowned higher education institutions of India together to share their ideas on emerging issues in marketing. The speakers are well trained in academia and have rich experience of working in the industry.

\n

The webinar is free to register and interested participants can register their names to Santosh Kumar Gurung at [email protected](9846117506)  OR Pradeep Sapkota at [email protected](9856062223) on or before 9th September, 2020.

\n

\n \n ",
"markdown": " \n\n#### Three Day Webinar on Emerging Concepts in Marketing (ECM) \n\n**Faculty of Management Studies, Pokhara University is organizing three day webinar on Emerging Concepts in Marketing (ECM) from 15th September – 17th September, 2020 in association with School of Business Alumni Relations. The webinar brings professors and experts of marketing from renowned higher education institutions of India together to share their ideas on emerging issues in marketing. The speakers are well trained in academia and have rich experience of working in the industry.**\n\n**The webinar is free to register and interested participants can register their names to Santosh Kumar Gurung at [[email protected](9846117506)](mailto:[email protected](9846117506))  OR Pradeep Sapkota at [[email protected](9856062223)](mailto:[email protected](9856062223)) on or before 9th September, 2020.**\n\n![](https://pu.edu.np/wp-content/uploads/2020/09/Marketing-Webinar-Banner-768x1024.jpg)\n",
"images": [
"https://pu.edu.np/wp-content/uploads/2020/09/Marketing-Webinar-Banner-768x1024.jpg"
],
"attachments": [
{
"title": "[email protected](9846117506)",
"url": "mailto:[email protected](9846117506)"
},
{
"title": "[email protected](9856062223)",
"url": "mailto:[email protected](9856062223)"
}
]
}
}
```