New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fastagency

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastagency

爬取fast网站上的代理IP。

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

FastAgency

简介

一个爬取IP代理地址的小模块,使用了crawler。

使用方法

const fa = require('fastagency');

//爬取5页IP,间隔为2000毫秒,返回JSON,并保存到本地
fa.update(5,(ips)=>{
		console.log(ips);
	}
,2000); 

//读取本地JSON
fa.getAgency(null,(ips,filePath)=>{
  console.log(filePath);
  console.log(ips);
});

注意事项

  • 爬取间隔不要太短,会导致爬取不到数据。
  • 爬取的数据已经保存在本地,更新IP需要比较长的时间

FAQs

Package last updated on 04 Sep 2018

Did you know?

Socket

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