Code Monkey home page Code Monkey logo

webcrawler's People

Contributors

thatlittlegit avatar

Watchers

 avatar  avatar

webcrawler's Issues

Separate get_urls_in_url into separate functions

get_urls_in_url is monolithic - our entire web-crawler is basically this function in a loop. We need to separate it, preferably in different files, so we can implement more. For example, we need to log the data the crawler collects; but we would have to shove it somewhere in the indented pigsty that is called 'get_urls_in_url'. We also need to rename it - it sounds like it finds https://google.com in https://bing.com/https://google.com/.

Refactor get_root_domain

get_root_domain ought to be refactored. Such a simple function, which I'm sure that could be compressed, is around 38 lines! We need to implement more Rust instead of basically porting JavaScript. It might help speed, too.

Add support for plain-text (.txt)

Crawler should be able to find URLs in txt files. Right now, they're indexed, but not parsed. This should be fixed, but I probably won't add it in the near future.

Add support for CSS

Crawler should be able to find URLs in CSS files (i.e. url(...)). Right now, they're indexed, but not parsed. This should be fixed, but I probably won't add it in the near future.

htmlstream -> html5ever?

html5ever is built by the Servo project, and thus is probably faster. Maybe we should try switching? I think we should do a speed comparison - I doubt the differences will be large.

Add support for JavaScript

Crawler should be able to find URLs in JavaScript files (specifically strings). Right now, they're indexed, but not parsed. This should be fixed, but I probably won't add it in the near future.

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.