GithubHelp home page GithubHelp logo

rlugojr / cheerio-req Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ionicabizau/cheerio-req

0.0 2.0 0.0 9 KB

An http request module sending back a Cheerio object.

License: MIT License

JavaScript 100.00%

cheerio-req's Introduction

cheerio-req

Patreon PayPal AMA Version Downloads Get help on Codementor

An http request module sending back a Cheerio object.

☁️ Installation

$ npm i --save cheerio-req

πŸ“‹ Example

const cheerioReq = require("cheerio-req");

cheerioReq("http://ionicabizau.net", (err, $) => {
    let $links = $("a.article-title");
    for (let i = 0; i < $links.length; ++i) {
        console.log($links.eq(i).text());
    }
    // =>
    // Pi Day, Raspberry Pi and Command Line
    // How I ported Memory Blocks to modern web
    // How to convert JSON to Markdown using json2md
});

πŸ“ Documentation

cheerioReq(opts, cb)

An http request module sending back a Cheerio object.

You can change the request function by overriding the request field.

Params

  • Object|String opts: The request url or an object passed to tinyrequest.
  • Function cb: The callback function.

Return

πŸ˜‹ How to contribute

Have an idea? Found a bug? See how to contribute.

πŸ’° Donations

Another way to support the development of my open-source modules is to set up a recurring donation, via Patreon. πŸš€

PayPal donations are appreciated too! Each dollar helps.

Thanks! ❀️

πŸ’« Where is this library used?

If you are using this library in one of your projects, add it in this list. ✨

  • scrape-itβ€”A Node.js scraper for humans.

πŸ“œ License

MIT © Ionică Bizău

cheerio-req's People

Contributors

ionicabizau avatar

Watchers

 avatar  avatar

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.