Giter Site home page Giter Site logo

jaws's Introduction

JAWS -- Just Another Web Scraper

Introduction

JAWS is a system for quickly designing web scrapers. It contains a framework for designing custom resources, parsers and outputs for entirely custom scrapers as well as a few implemenations for common use cases.

Dependenices

JAWS is written in Python, for Python2. The dependencies for the latest version are:

  • mechanize==0.2.5
  • requests==2.2.1

JAWS can also be installed with easy_install or pip.

Components

The core components of the JAWS framework can be found in core.py.

Scraper

The Scraper class is a collection of all the core components into one object which can be easily instantiated and used to scrape all data into your specified output.

Resource

The JAWSResource class is the abstract class describing the interface by which pages are provided to the parser for scraping. A resource could be as simple as a file reader or as complex as a full Web crawler.

Parser

The JAWSParser class is the abstract class describing the way your scraper will turn input from the resource into a python dictionary of keys and values to be fed to the output.

Output

The JAWSOutput class is the abstract class describing what to actually do with that data you have scraped. It could describe a file output format (a csv is probably simplest), a database interface, or whatever else you can think of.

Future Work

  • Automatic Schema Detection
  • Examples for README
  • Better documentation in code
  • Python3 compatibility

License

All code and content distributed with JAWS is released under the GNU GPLv3 unless otherwise specified or prohibited.

jaws's People

Contributors

iccelou91 avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

python3pkg

jaws's Issues

HTMLFormParser State Problem

HTMLFormParser uses previous values for parsed fields instead of leaving them blank when no value is found. This can be fixed by reseting the data between feeds.

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.