Coder Social home page Coder Social logo

sarkari-scraper's Introduction

[ Project : Sarkari Scrapper ]

[ Synopsis ]

A web scraper made to extract results from government job listing sites.

[ Prerequisities ]

[ CLI Usage ]

Supported Domains

  • freshersnow.com
  • sarkariresult.com
  • sarkariresults.info
  • sarkariexam.com

Supported Formats

  • json
  • csv

For job-list

node scrap-job-list.js [flags]
  • example
node scrap-job-list.js -d sarkariresult.com

Flags

Flag Input Description
-d domain Set domain of site from job list to be scrapped (default : sarkariresult.com)
-f format Set format of output (default : json)
-o filename Set filename of output file, if not used file will not be saved

For job-detail

node scrap-job-detail.js [flags]
  • example
node scrap-job-detail.js -u https://www.sarkariresult.com/upsssc/01exam2018.php

Flags

Flag Input Description
-u url Set url of job detail page (required)
-f format Set format of output (default : json)
-o filename Set filename of output file, if not used file will not be saved

For scraping

node run-scrapper.js [flags]
  • example
node run-scrapper.js -d freshersnow.com -f csv -o output.csv

Flags

Flag Input Description
-d domain Set domain of site from job list to be scrapped (default : sarkariresult.com)
-f format Set format of output (default : json)
-o filename Set filename of output file (required)

sarkari-scraper's People

Contributors

kaushalmeena avatar dependabot[bot] avatar

Stargazers

Abhishek Gauttam avatar Robin Singh avatar Lachit avatar  avatar  avatar

sarkari-scraper's Issues

Cant Scrape SarkariResult.com

My Command:- node run-scrapper.js -d sarkariresult.com -f json -o output.json

The error I am getting:-

----- null error occured!
TypeError [ERR_INVALID_ARG_TYPE]: The "url" argument must be of type string. Received null
at new NodeError (internal/errors.js:322:7)
at validateString (internal/validators.js:124:11)
at Url.parse (url.js:171:3)
at Object.urlParse [as parse] (url.js:158:13)
at dispatchHttpRequest (/Users/keshavsharma/Desktop/sarkari-scraper/node_modules/axios/lib/adapters/http.js:67:22)
at new Promise ()
at httpAdapter (/Users/keshavsharma/Desktop/sarkari-scraper/node_modules/axios/lib/adapters/http.js:20:10)
at dispatchRequest (/Users/keshavsharma/Desktop/sarkari-scraper/node_modules/axios/lib/core/dispatchRequest.js:59:10)
at processTicksAndRejections (internal/process/task_queues.js:95:5) {
code: 'ERR_INVALID_ARG_TYPE'

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.