Giter Site home page Giter Site logo

ruby_web_crawler's Introduction

Ruby_Web_Crawler

Technologies used

  • Ruby 2.7.X

  • Mechanize (gem) 2.8.X

    • If the Mechanize gem is not installed, please install it by running gem install mechanize

In order to run the web crawler script:

  • Clone this repo
  • cd into the repo folder
  • run bundle install
  • create a urls.txt file (the crawler will look for this file name)
    • From terminal, type touch lib/urls.txt
  • open the urls.txt file and type the URL you would like to crawler
    • Example: https://github.com
    • If just testing, do not type a URL like www.google.com as it will take time to parse all the URLs found.
    • Save the file
  • run the script by typing ''ruby lib/crawler.rb''
  • Check the URLs parsed in the lib/ursl.txt file

TODO

  • Refactor script
    • Break down crawl method.
    • Make script create a file to store URLs if file does not exist
    • Ask for user to input site to be crawled instead of having to edit the urls.txt file

ruby_web_crawler's People

Contributors

charlesdebarros avatar dependabot[bot] avatar

Watchers

James Cloos 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.