GithubHelp home page GithubHelp logo

blurhy / horizonspider Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 0.0 88.21 MB

The spider for ZeroNet search engine Horizon

License: GNU General Public License v3.0

JavaScript 100.00%
crawler zeronet nodejs async horizon-search-engine elasticsearch spider

horizonspider's Introduction

HorizonSpider - Nodejs

Basic concepts

The spider crawls each site in siteList and submit crawled links to zeronet.

Then zeronet processes them, and downloads those zites.

It continues to traversal siteList and crawls newly downloaded sites to get more links

Usage

Clone this repo and:

yarn

Config

Create .env file and add configs as follows:

ZeroNetPath=D:/ZeroNet
ZeronetDataPath=D:/ZeroNet/Data

Run

yarn crawl

horizonspider's People

Contributors

blurhy avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

horizonspider's Issues

Manager website for HorizonSpider

  • Manage instances of zeronet and crawler
  • Log file viewing
  • System statistics
  • Dashboard site on zeronet
  • Auto update trackerlist
  • Publish data to Horizon zite

What information do we need to crawl ?

  • NLP extracting keywords
  • Site info : peers,size,file_count
  • Title of each feedFollow object (Blog post title)
  • Detecting the technology/web frameworks that the zite uses

Absolute path F:\ZeroNet\

Hi, unsure if that is intentional, though in several files is absolute path (F:\ZeroNet), not relative path.

Crawler for content.json

To know the relationship between .bit domain and zite address.

Crawl content.json for every zite in data folder.

Finally put the data in to data_contentjson.json.gz for Horizon

Data that need to crawl in content.json

  • Zite Address
  • Zite Domain
  • Does the zite has sub content.json.
  • modified attr
  • title attr
  • zeronet_version
  • description
  • Count of files

error

Cannot connect to admin site TypeError: Cannot read property 'ui_ip' of undefined

Site status data

Execute Page.cmd("siteList",[],r=>console.log(r)) in zerohello
Then you can see

image

We need:

  • content.files/address/cloned_from/description/domain/files/files_optional/includes/modified/title/zeronet_version
  • settings.size
  • peers

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.