GithubHelp home page GithubHelp logo

spider-crawler-java's Introduction

Crawler

This is a simple crawler in Java (single thread) to get the below items from user input url

  • The title of the product (e.g. Madison RX3400)
  • The price of the product
  • The brand
  • Additional information
  • The short description
  • The category structure

The code is written in such as a way that it will find these items on other product pages within the same site. The code download the page for processing so that it caches a copy for subsequent runs.

The program will ask user to input the url to crawl and after it is done, user can input another URL to continue or enter N to terminate it.

Folder structure

  • output: contains output.txt to store items
  • download: contains all downloaded html from the same site
  • main: contains the main class to run the program

Package & Run

  • mvn package
  • java -jar spiderCrawler-0.1-SNAPSHOT-jar-with-dependencies.jar
  • First run will take longer than subsequent runs which are cached by downloaded html

spider-crawler-java's People

Watchers

 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.