Socket
Socket
Sign inDemoInstall

lycos-weather

Package Overview
Dependencies
44
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lycos-weather

lycos weather scraper.


Version published
Weekly downloads
1
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 01 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc