<commit_before># lanyrd-scraper [![Build Status](https://secure.travis-ci.org/markdalgleish/node-lanyrd-scraper.png)](http://travis-ci.org/markdalgleish/node-lanyrd-scraper)

Lanyrd event scraper for Node.js.

### Why a Scraper?

Lanyrd doesn't have an API (yet).

## Setup

Install the module with: `npm install lanyrd-scraper`

## Scraping Event Data

The `scrape` function accepts an event URL and a callback:

```javascript
var lanyrd = require('lanyrd-scraper');

lanyrd.scrape('http://www.lanyrd.com/2012/web-directions-code', function(err, event){
  console.log(event); // Object containing event data
});
```

### Shorthand URL

The event URL can be optionally be provided in a shorthand format:

```javascript
lanyrd.scrape('2012/web-directions-code', function(err, event){
  console.log(event);
});
```
### Event Data

The following properties are available on the returned `event` object:

```javascript
{
  'title': String,
  'tagline': String,
  'websiteUrl': String,
  'scheduleUrl': String,
  'location': String,
  'startDate': String,
  'endDate': String,
  'time': String,
  'hashtag': String,
  'twitterHandle': String,
  'venues': [
    {
      'name': String,
      'address': String,
      'note': String,
      'googleMapsUrl': String
    }
  ],
  'speakers': [
    {
      'name': String,
      'twitterHandle': String
    }
  ],
  'sessions': [
    {
      'title': String,
      'url': String,
      'startTime': String,
      'speakers': [
        {
          'name': String,
          'twitterHandle': String
        }
      ]
    }
  ],
  'attendees': [
    {
      'name': String,
      'twitterHandle': String
    }
  ]
```

## Websites Using Lanyrd-Scraper

* [MelbJS](http://melbjs.com) ([Source](https://github.com/melbjs/melbjs))

If you'd like to see your site on this list, send me a pull request.

## Contributing<commit_msg>Update readme, add link to Lanyrd<commit_after># lanyrd-scraper [![Build Status](https://secure.travis-ci.org/markdalgleish/node-lanyrd-scraper.png)](http://travis-ci.org/markdalgleish/node-lanyrd-scraper)

[Lanyrd](http://lanyrd.com) event scraper for Node.js.

### Why a Scraper?

They don't have an API (yet).

## Setup

Install the module with: `npm install lanyrd-scraper`

## Scraping Event Data

The `scrape` function accepts an event URL and a callback:

```javascript
var lanyrd = require('lanyrd-scraper');

lanyrd.scrape('http://www.lanyrd.com/2012/web-directions-code', function(err, event){
  console.log(event); // Object containing event data
});
```

### Shorthand URL

The event URL can be optionally be provided in a shorthand format:

```javascript
lanyrd.scrape('2012/web-directions-code', function(err, event){
  console.log(event);
});
```
### Event Data

The following properties are available on the returned `event` object:

```javascript
{
  'title': String,
  'tagline': String,
  'websiteUrl': String,
  'scheduleUrl': String,
  'location': String,
  'startDate': String,
  'endDate': String,
  'time': String,
  'hashtag': String,
  'twitterHandle': String,
  'venues': [
    {
      'name': String,
      'address': String,
      'note': String,
      'googleMapsUrl': String
    }
  ],
  'speakers': [
    {
      'name': String,
      'twitterHandle': String
    }
  ],
  'sessions': [
    {
      'title': String,
      'url': String,
      'startTime': String,
      'speakers': [
        {
          'name': String,
          'twitterHandle': String
        }
      ]
    }
  ],
  'attendees': [
    {
      'name': String,
      'twitterHandle': String
    }
  ]
}
```

## Websites using lanyrd-scraper

* [MelbJS](http://melbjs.com) ([Source](https://github.com/melbjs/melbjs))

If you'd like to see your site on this list, send me a pull request.

## Contributing
{'fraction_non_alphanumeric': 0.15785277703959608, 'fraction_numerical': 0.004251926654265214, 'mean_word_length': 3.1822222222222223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1128053', 'n_tokens_mistral': 1348, 'n_tokens_neox': 1315, 'n_words': 314}