<commit_before># UofT Scrapers [![PyPI version](https://badge.fury.io/py/uoftscrapers.svg)](https://badge.fury.io/py/uoftscrapers)

This is a library of scrapers for various University of Toronto websites. It is built to generate up-to-date databases for [Cobalt](https://cobalt.qas.im/), but is distributed as a stand-alone library for anyone to utilize.

## Table of Contents
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Library Reference](#library-reference)
  - [Course Finder](#course-finder)
  - [Buildings](#buildings)
  - [Textbooks](#textbooks)
  - [Food](#food)
  - [UTSG Timetable](#utsg-timetable)
  - [UTM Timetable](#utm-timetable)
  - [UTSC Timetable](#utsc-timetable)
  - [UTSG Calendar](#utsg-calendar)

## Requirements
 - [python3](https://www.python.org/download/releases/3.4.3/)
 - [pip](https://pypi.python.org/pypi/pip#downloads)
 - [tidy](http://tidy.sourceforge.net/#binaries)

## Installation
```bash
  pip install uoftscrapers
```

## Usage
```python
import uoftscrapers

# Example: scrape http://map.utoronto.ca building data to ./some/path
b = uoftscrapers.Buildings("./some/path")
b.run()

# Example: scrape http://coursefinder.utoronto.ca to current location
cf = uoftscrapers.CourseFinder()
cf.run()
```<commit_msg>Add new requirement lxml<commit_after># UofT Scrapers [![PyPI version](https://badge.fury.io/py/uoftscrapers.svg)](https://badge.fury.io/py/uoftscrapers)

This is a library of scrapers for various University of Toronto websites. It is built to generate up-to-date databases for [Cobalt](https://cobalt.qas.im/), but is distributed as a stand-alone library for anyone to utilize.

## Table of Contents
- [Requirements](#requirements)
- [Installation](#installation)
- [Usage](#usage)
- [Library Reference](#library-reference)
  - [Course Finder](#course-finder)
  - [Buildings](#buildings)
  - [Textbooks](#textbooks)
  - [Food](#food)
  - [UTSG Timetable](#utsg-timetable)
  - [UTM Timetable](#utm-timetable)
  - [UTSC Timetable](#utsc-timetable)
  - [UTSG Calendar](#utsg-calendar)

## Requirements
 - [python3](https://www.python.org/download/releases/3.4.3/)
 - [pip](https://pypi.python.org/pypi/pip#downloads)
 - [tidy](http://tidy.sourceforge.net/#binaries)
 - [lxml](http://lxml.de/installation.html)

## Installation
```bash
  pip install uoftscrapers
```

## Usage
```python
import uoftscrapers

# Example: scrape http://map.utoronto.ca building data to ./some/path
b = uoftscrapers.Buildings("./some/path")
b.run()

# Example: scrape http://coursefinder.utoronto.ca to current location
cf = uoftscrapers.CourseFinder()
cf.run()
```
{'fraction_non_alphanumeric': 0.17091739626950894, 'fraction_numerical': 0.0030452988199467074, 'mean_word_length': 4.676025917926566, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, 'xml': 3}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7090006', 'n_tokens_mistral': 989, 'n_tokens_neox': 904, 'n_words': 184}