Git Product home page Git Product logo

datalith's Introduction

DataLith

  • DataLith uses the AngularJS framework to provide a web application frontend interface and the flask python framework to provide the backend functionality.

Tools

  • The HOOK tool keeps track of and returns the mean http load times for all pages visited by the python script
  • The HANDAXE tool keeps track of the number of web pages encountered while scraping that return an http status code other than 200. These could be 404 errors or access denied notices. We call these web pages "broken"
  • The GRINDSTONE tool will keep track of all the images encountered while scraping and create a collage of 50 random images from the web page

Angular Frontend

  • DataLith is a Paleolithic-themed web scraper.
  • The tool icons were custom-designed in Adobe Illustrator.
  • The front end of the site is an Angular5 application. All of the site's functionality can be accessed without reloading the web page.
  • Angular Components: tools.ts, url-input.ts, username-input.ts, loader.ts, visualizer.ts, collage.ts, and scoreboard.ts

Flask Backend

  • The backend of the site is written as a Flask application (mainFlask.py). The flask server replies to the Angular application with a json continuing the results of the scrape and results from the database
  • MySql connector: the flask application interfaces with a mySql databse that keeps track of the highest scores for the Hook and Handaxe tools. The schema of the scores table can be found in the scores.sql file
  • The meat of the backend is the scrape.py python script. This is the code that actually scrapes the websites given by the Angular app. The script pulls in the provided url, pulls all the links on this page and adds them to a list of urls. It then randomly selects the next url from this list, adding the links on this page to the url list. It repeats this process keeping track of the relevant metrics for the front end application for 100 pages in the domain provided. The script will all maintain a list of links to images if the Grindstone tool is being used.

Coded by

datalith's People

Contributors

baldpixels avatar

Watchers

 avatar  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.