Coder Social home page Coder Social logo

deep5050 / jobful-api Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 7.0 1.29 MB

A RESTful API to fetch latest job notifications(INDIA only) from various sources.

Home Page: https://jobfulapi.herokuapp.com/

License: MIT License

JavaScript 99.96% Shell 0.04%
rest-api restful-api nodejs-server node-api web-scraping web-scraper job-search notification-server nodemon express-js

jobful-api's Introduction

JOBful-API

A RESTful API to fetch latest job notifications(INDIA only) from various sources.

Fetches various job and exam notifications from popular websites and sereves them as json

Examples:

  1. freejobalerts.com Latest Notifications

GET http://localhost:3000/freejobalert/

Returns:

[
    {"title":"BECIL 1028 Skilled & Unskilled Manpower Walk in","link":"http://www.freejobalert.com/becil/25475/"},{"title":"Territorial Army Officer Online Form","link":"http://www.freejobalert.com/indian-army-territorial-army/99486/"},
    {"title":"RRB Paramedical Staff - 13 Lab Superintendent Vacancies Withdrawn","link":"http://www.freejobalert.com/rrb-paramedical/771840/"},
    {"title":"NVS 370 PGT, TGT & FCSA Notification","link":"http://www.freejobalert.com/navodaya-vidyalaya/1785/"},
    {"title":"SAIL Management Trainee through GATE 2019 Online Form","link":"http://www.freejobalert.com/sail/17043/"},
    {"title":"Indian Air Force AFCAT (02/2019) Online Form","link":"http://www.freejobalert.com/afcat/62751/"},
    {"title":"Coast Guard Assistant Commandant- 01/2020 Batch Online Link Available"}
]
  1. All govt. exams

GET http://localhost:3000/freejobalert/gov/other-all-india-exam

Returns:

[
    {"postDate":"27/05/2019","postBoard":"BECIL","postName":"Skilled & Unskilled Manpower  – 1028 Posts","qualification":"8th Class, ITI/ Diploma (Electrical)","advtNo":"001/2019","lastDate":"28 to 30-05-2019 – Walk in","link":"http://www.freejobalert.com/becil/25475/"},
    {"postDate":"27/05/2019","postBoard":"IIT, Kharagpur","postName":"Job Assisant  – 5 Posts","qualification":"Degree","advtNo":"-","lastDate":"17-06-2019","link":"http://www.iitkgp.ac.in/temporary-jobs"},
    {"postDate":"27/05/2019","postBoard":"NVS, Pune","postName":"TGT, PGT & Faculty Cum System Administrator  – 370 Posts","qualification":"DCA, Degree, PG (Relevant Discipline)","advtNo":"-","lastDate":"05-06-2019","link":"http://www.freejobalert.com/navodaya-vidyalaya/1785/#TGT"},
    {"postDate":"27/05/2019","postBoard":"BECIL","postName":"Skilled & Unskilled Manpower  – 1028 Posts","qualification":"8th Class, ITI/ Diploma (Electrical)","advtNo":"001/2019","lastDate":"28 to 30-05-2019 – Walk in","link":"http://www.freejobalert.com/becil/25475/"},
    {"postDate":"27/05/2019","postBoard":"IIT, Kharagpur","postName":"Job Assisant  – 5 Posts","qualification":"Degree","advtNo":"-","lastDate":"17-06-2019","link":"http://www.iitkgp.ac.in/temporary-jobs"},
    {"postDate":"27/05/2019","postBoard":"NVS, Pune","postName":"TGT, PGT & Faculty Cum System Administrator  – 370 Posts","qualification":"DCA, Degree, PG (Relevant Discipline)","advtNo":"-","lastDate":"05-06-2019","link":"http://www.freejobalert.com/navodaya-vidyalaya/1785/#TGT"},{"postDate":"25/05/2019","postBoard":"MECON Limited","postName":"Executive, Accountant, Jr Executive & Other  – 205 Posts","qualification":"Diploma, Degreee, PG (Relevant Discipline), CA/ CMA","advtNo":"-","lastDate":"20-06-2019","link":"https://img.freejobalert.com/uploads/2019/05/Notification-MECON-Limited-Executive-Accountant-Jr-Executive-Other-Posts.pdf"},
    {"postDate":"25/05/2019","postBoard":"NARI","postName":"Research Asst  – 8 Posts","qualification":"Degree/ PG (Relevant Discipline)","advtNo":"-","lastDate":"29-05 & 12-06-2019 – Walk in","link":"http://www.gsacsonline.org/images/News/RA_MH_GJ.pdf"},{"postDate":"25/05/2019","postBoard":"National Institute for Locomotor Disabilities","postName":"Staff Nurse, Hindi Translator, Professional Trainee  – 10 Posts","qualification":"Diploma (GNM), PG Degree/ Diploma (Relevant Discipline)","advtNo":"-","lastDate":"03-06-2019 – Walk in","link":"http://www.niohkol.nic.in/whatsnew/EMPLOYMENT%20NOTICE%20FOR%20WALK%20IN%20INTERVIEW%20on%2003-06-2019.pdf"},
    {"postDate":"25/05/2019","postBoard":"National Institute for Locomotor Disabilities","postName":"Project Coordinator,  Field Worker, Programme Asst, Clinical Tutor  – 5 Posts","qualification":"10th Class, Any Degree, PG","advtNo":"-","lastDate":"04-06-2019 – Walk in","link":"http://www.niohkol.nic.in/whatsnew/EMPLOYMENT%20NOTICE%20CBR%20PROJECT%20FOR%20WALK-IN-INTERVIEW%20on%20%2004-06-2019.pdf"},
    {"postDate":"25/05/2019","postBoard":"IICB","postName":"JRF  – 58 Posts","qualification":"M.Sc with NET-JRF","advtNo":"-","lastDate":"03-06-2019 – Walk in","link":"http://www.career.iicb.res.in/Recruitment%20Notice.php"},
    {"postDate":"25/05/2019","postBoard":"ESIC Hospital, Bareilly","postName":"Full Time Specialist/ Part Time Specialist, Senior Resident  – 19 Posts","qualification":"MBBS, PG Degree/ Diploma (Relevant Discipline)","advtNo":"-","lastDate":"31-05-2019 – Walk in","link":"https://www.esic.nic.in/attachments/recruitmentfile/32e92addf5b3e826af39b2f988994af4.pdf"},
    {"postDate":"26/04/2019","postBoard":"HMT Machine Tools Ltd","postName":"Joint General Manager, Dy General Manager, MO & Other  – 38 Posts","qualification":"Degree (Engg), MBBS, MBA, PGDM, CA/ CMA/ ICWA","advtNo":"22/2019-20","lastDate":"14-05-19 Extended to 31-05-19","link":"http://www.freejobalert.com/hmt-machine-tools-ltd/17916/"},{"postDate":"25/04/2019","postBoard":"Geological Survey of India","postName":"Ordinary Grade Driver  – 37 Posts","qualification":"10th Class","advtNo":"-","lastDate":"26-06-2019","link":"https://img.freejobalert.com/uploads/2019/04/Notification-Geological-Survey-of-India-Driver-Posts.pdf"}
]

Usage

Install 😇

npm install

Run 🆒

npm start

Run As Developer 😎

npm run devrun

Dependencies 🔧

"dependencies": {
    "cheerio": "^1.0.0-rc.3",
    "dotenv": "^8.0.0",
    "express": "^4.17.1",
    "jest": "^24.8.0",
    "request": "^2.88.0",
    "signale": "^1.4.0"
  },
  "devDependencies": {
    "nodemon": "^1.19.1"
  }

State Codes For Query 🇮🇳

code name link
AN Andaman and Nicobar Islands http://www.freejobalert.com/an-government-jobs/
AP Andhra Pradesh http://www.freejobalert.com/ap-government-jobs/
AR Arunachal Pradesh http://www.freejobalert.com/arunachal-pradesh-government-jobs/
AS Assam http://www.freejobalert.com/assam-government-jobs/
BR Bihar http://www.freejobalert.com/bihar-government-jobs/
CG Chandigarh http://www.freejobalert.com/chandigarh-government-jobs/
CH Chhattisgarh http://www.freejobalert.com/chhattisgarh-government-jobs/
DH Dadra and Nagar Haveli http://www.freejobalert.com/dadra-nagar-haveli-government-jobs/
DD Daman and Diu http://www.freejobalert.com/daman-diu-government-jobs/
DL Delhi http://www.freejobalert.com/delhi-government-jobs/
GA Goa http://www.freejobalert.com/goa-government-jobs/
GJ Gujarat http://www.freejobalert.com/gujarat-government-jobs/
HR Haryana http://www.freejobalert.com/haryana-government-jobs/
HP Himachal Pradesh http://www.freejobalert.com/hp-government-jobs/
JK Jammu and Kashmir http://www.freejobalert.com/jk-government-jobs/
JH Jharkhand http://www.freejobalert.com/jharkhand-government-jobs/
KA Karnataka http://www.freejobalert.com/karnataka-government-jobs/
KL Kerala http://www.freejobalert.com/kerala-government-jobs/
LD Lakshadweep http://www.freejobalert.com/lakshadweep-government-jobs/
MP Madhya Pradesh http://www.freejobalert.com/mp-government-jobs/
MH Maharashtra http://www.freejobalert.com/maharashtra-government-jobs/
MN Manipur http://www.freejobalert.com/manipur-government-jobs/
ML Meghalaya http://www.freejobalert.com/meghalaya-government-jobs/
MZ Mizoram http://www.freejobalert.com/mizoram-government-jobs/
NL Nagaland http://www.freejobalert.com/nagaland-government-jobs/
OR Odisha http://www.freejobalert.com/odisha-government-jobs/
PY Puducherry http://www.freejobalert.com/puduchhery-government-jobs/
PB Punjab http://www.freejobalert.com/punjab-government-jobs/
RJ Rajasthan http://www.freejobalert.com/rajasthan-government-jobs/
SK Sikkim http://www.freejobalert.com/sikkim-government-jobs/
TN Tamil Nadu http://www.freejobalert.com/tn-government-jobs/
TS Telangana http://www.freejobalert.com/telangana-government-jobs/
TR Tripura http://www.freejobalert.com/tripura-government-jobs/
UK Uttarakhand http://www.freejobalert.com/uttarakhand-government-jobs/
UP Uttar Pradesh http://www.freejobalert.com/up-government-jobs/
WB West Bengal http://www.freejobalert.com/wb-government-jobs/

How To Use State Codes In HTTP Request?

GET http://localhost:3000/freejobalert/gov/state/ap

OR

GET http://localhost:3000/freejobalert/gov/state/WB

Sources:

Developer Hacks

  1. install vsCode and install REST Client Extension

gnome-shell-screenshot-B7LZ1Z

  1. open the test.rest file and send request directly from vsCode 💥

Screenshot from 2019-05-28 20-39-59

Thankful To

License

MIT License

Copyright (c) 2019 dipankar pal

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

DONATE

If this project helps you in any way making your life easier, you can buy me a ☕ .

jobful-api's People

Contributors

bewithdhanu avatar codacy-badger avatar deep5050 avatar dependabot[bot] avatar depfu[bot] avatar mend-bolt-for-github[bot] avatar restyled-commits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

jobful-api's Issues

CVE-2019-10747 (High) detected in set-value-2.0.0.tgz, set-value-0.4.3.tgz

CVE-2019-10747 - High Severity Vulnerability

Vulnerable Libraries - set-value-2.0.0.tgz, set-value-0.4.3.tgz

set-value-2.0.0.tgz

Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.

Library home page: https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz

Path to dependency file: /tmp/ws-scm/jobful-api/package.json

Path to vulnerable library: /tmp/ws-scm/jobful-api/node_modules/set-value/package.json

Dependency Hierarchy:

  • jest-25.3.0.tgz (Root Library)
    • core-25.3.0.tgz
      • jest-haste-map-25.3.0.tgz
        • sane-4.1.0.tgz
          • micromatch-3.1.10.tgz
            • snapdragon-0.8.2.tgz
              • base-0.11.2.tgz
                • cache-base-1.0.1.tgz
                  • set-value-2.0.0.tgz (Vulnerable Library)
set-value-0.4.3.tgz

Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.

Library home page: https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz

Path to dependency file: /tmp/ws-scm/jobful-api/package.json

Path to vulnerable library: /tmp/ws-scm/jobful-api/node_modules/union-value/node_modules/set-value/package.json

Dependency Hierarchy:

  • jest-25.3.0.tgz (Root Library)
    • core-25.3.0.tgz
      • jest-haste-map-25.3.0.tgz
        • sane-4.1.0.tgz
          • micromatch-3.1.10.tgz
            • snapdragon-0.8.2.tgz
              • base-0.11.2.tgz
                • cache-base-1.0.1.tgz
                  • union-value-1.0.0.tgz
                    • set-value-0.4.3.tgz (Vulnerable Library)

Found in HEAD commit: f07cb5e70bc564982e8b856e6afd13cb88c7ea97

Vulnerability Details

set-value is vulnerable to Prototype Pollution in versions lower than 3.0.1. The function mixin-deep could be tricked into adding or modifying properties of Object.prototype using any of the constructor, prototype and proto payloads.

Publish Date: 2019-08-23

URL: CVE-2019-10747

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: jonschlinkert/set-value@95e9d99

Release Date: 2019-07-24

Fix Resolution: 2.0.1,3.0.1


Step up your Open Source Security Game with WhiteSource here

CVE-2020-7598 (High) detected in minimist-1.2.0.tgz

CVE-2020-7598 - High Severity Vulnerability

Vulnerable Library - minimist-1.2.0.tgz

parse argument options

Library home page: https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz

Path to dependency file: /tmp/ws-scm/jobful-api/package.json

Path to vulnerable library: /tmp/ws-scm/jobful-api/node_modules/minimist/package.json

Dependency Hierarchy:

  • jest-25.3.0.tgz (Root Library)
    • core-25.3.0.tgz
      • jest-haste-map-25.3.0.tgz
        • sane-4.1.0.tgz
          • minimist-1.2.0.tgz (Vulnerable Library)

Found in HEAD commit: f07cb5e70bc564982e8b856e6afd13cb88c7ea97

Vulnerability Details

minimist before 1.2.2 could be tricked into adding or modifying properties of Object.prototype using a "constructor" or "proto" payload.

Publish Date: 2020-03-11

URL: CVE-2020-7598

CVSS 3 Score Details (9.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://github.com/substack/minimist/commit/63e7ed05aa4b1889ec2f3b196426db4500cbda94

Release Date: 2020-03-11

Fix Resolution: minimist - 0.2.1,1.2.3


Step up your Open Source Security Game with WhiteSource here

CVE-2019-20149 (High) detected in kind-of-6.0.2.tgz

CVE-2019-20149 - High Severity Vulnerability

Vulnerable Library - kind-of-6.0.2.tgz

Get the native type of a value.

Library home page: https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz

Path to dependency file: /tmp/ws-scm/jobful-api/package.json

Path to vulnerable library: /tmp/ws-scm/jobful-api/node_modules/kind-of/package.json

Dependency Hierarchy:

  • jest-25.3.0.tgz (Root Library)
    • core-25.3.0.tgz
      • jest-haste-map-25.3.0.tgz
        • sane-4.1.0.tgz
          • micromatch-3.1.10.tgz
            • kind-of-6.0.2.tgz (Vulnerable Library)

Found in HEAD commit: f07cb5e70bc564982e8b856e6afd13cb88c7ea97

Vulnerability Details

ctorName in index.js in kind-of v6.0.2 allows external user input to overwrite certain internal attributes via a conflicting name, as demonstrated by 'constructor': {'name':'Symbol'}. Hence, a crafted payload can overwrite this builtin attribute to manipulate the type detection result.

Publish Date: 2019-12-30

URL: CVE-2019-20149

CVSS 3 Score Details (7.5)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: High
    • Availability Impact: None

For more information on CVSS3 Scores, click here.


Step up your Open Source Security Game with WhiteSource here

WS-2019-0381 (Medium) detected in kind-of-6.0.2.tgz

WS-2019-0381 - Medium Severity Vulnerability

Vulnerable Library - kind-of-6.0.2.tgz

Get the native type of a value.

Library home page: https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz

Path to dependency file: /tmp/ws-scm/jobful-api/package.json

Path to vulnerable library: /tmp/ws-scm/jobful-api/node_modules/kind-of/package.json

Dependency Hierarchy:

  • jest-25.3.0.tgz (Root Library)
    • core-25.3.0.tgz
      • jest-haste-map-25.3.0.tgz
        • sane-4.1.0.tgz
          • micromatch-3.1.10.tgz
            • kind-of-6.0.2.tgz (Vulnerable Library)

Found in HEAD commit: f07cb5e70bc564982e8b856e6afd13cb88c7ea97

Vulnerability Details

Versions of kind-of 6.x prior to 6.0.3 are vulnerable to a Validation Bypass. A maliciously crafted object can alter the result of the type check, allowing attackers to bypass the type checking validation.

Publish Date: 2020-03-18

URL: WS-2019-0381

CVSS 3 Score Details (5.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: jonschlinkert/kind-of@975c13a

Release Date: 2020-03-18

Fix Resolution: kind-of - 6.0.3


Step up your Open Source Security Game with WhiteSource here

CVE-2019-11358 (Medium) detected in jquery-3.2.1.min.js

CVE-2019-11358 - Medium Severity Vulnerability

Vulnerable Library - jquery-3.2.1.min.js

JavaScript library for DOM operations

Library home page: https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js

Path to dependency file: /tmp/ws-scm/jobful-api/node_modules/superagent/docs/tail.html

Path to vulnerable library: /jobful-api/node_modules/superagent/docs/tail.html

Dependency Hierarchy:

  • jquery-3.2.1.min.js (Vulnerable Library)

Found in HEAD commit: f07cb5e70bc564982e8b856e6afd13cb88c7ea97

Vulnerability Details

jQuery before 3.4.0, as used in Drupal, Backdrop CMS, and other products, mishandles jQuery.extend(true, {}, ...) because of Object.prototype pollution. If an unsanitized source object contained an enumerable proto property, it could extend the native Object.prototype.

Publish Date: 2019-04-20

URL: CVE-2019-11358

CVSS 3 Score Details (6.1)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: None
    • User Interaction: Required
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: Low
    • Integrity Impact: Low
    • Availability Impact: None

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-11358

Release Date: 2019-04-20

Fix Resolution: 3.4.0


Step up your Open Source Security Game with WhiteSource here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.