Namespace, Primitive, Method

    lycos-weather

    1.0.2 • Public • Published

    lycos-weather

    NPM package to scrape Lycos's Weather pages.

    Although there is no license on the code itself, Lycos owns the data itself.

    Install on NPM via npm i lycos-weather.

    Sample Code

    This gets weather data in New York City.

    const lw = require("lycos-weather");
    const q = "10007";
    // new york ny zip code
    
    lw.search(q, function(err, resp) {
        if (resp) {
            lw.get(resp[0].href, function (err, resp) {
                if (err) {
                    console.log(err)
                } else {
                    console.log(resp)
                }
            })
        } else {
            if (err.code == "oneResult") {
                lw.get(err.url, function (err, resp) {
                    if (err) {
                        console.log(err)
                    } else {
                        console.log(resp)
                    }
                })
            } else {
                console.log(err);
            }
        }
    })

    Keywords

    Install

    npm i lycos-weather

    DownloadsWeekly Downloads

    3

    Version

    1.0.2

    License

    UNLICENSED

    Unpacked Size

    12.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • n0rmancodes