<commit_before># FluentCineworld [![Build status](http://img.shields.io/appveyor/ci/lewishenson/fluentcineworld.svg?style=flat)](https://ci.appveyor.com/project/lewishenson/FluentCineworld) [![NuGet package](https://buildstats.info/nuget/FluentCineworld)](https://www.nuget.org/packages/FluentCineworld)

Fluent C# API for obtaining Cineworld listings.

The API uses the fluid builder pattern so the below examples can be combined.

## Version 2.x

FluentCineworld has been changed to use the JSON data from the Cineworld site now, the HTML scraping and XML parsing approach has been thrown away. Version 2 is faster than before and features some different information - for example, the screen number. Unfortunately there are also a few API breaking changes but hopefully it is worth the pain.

## Usage

Getting all listings for a cinema:

```csharp
var shows = await Cineworld.WhatsOn(Cinema.MiltonKeynes)
                           .RetrieveAsync();
```

Getting all listings between certain dates:

```csharp
var shows = await Cineworld.WhatsOn(Cinema.MiltonKeynes)
                          .From(new DateTime(2014, 1, 1))
                          .To(new DateTime(2014, 1, 8))
                          .RetrieveAsync();
```

Getting all listings for a certain day of week:

```csharp<commit_msg>Fix alignment issue in code sample.<commit_after># FluentCineworld [![Build status](http://img.shields.io/appveyor/ci/lewishenson/fluentcineworld.svg?style=flat)](https://ci.appveyor.com/project/lewishenson/FluentCineworld) [![NuGet package](https://buildstats.info/nuget/FluentCineworld)](https://www.nuget.org/packages/FluentCineworld)

Fluent C# API for obtaining Cineworld listings.

The API uses the fluid builder pattern so the below examples can be combined.

## Version 2.x

FluentCineworld has been changed to use the JSON data from the Cineworld site now, the HTML scraping and XML parsing approach has been thrown away. Version 2 is faster than before and features some different information - for example, the screen number. Unfortunately there are also a few API breaking changes but hopefully it is worth the pain.

## Usage

Getting all listings for a cinema:

```csharp
var shows = await Cineworld.WhatsOn(Cinema.MiltonKeynes)
                           .RetrieveAsync();
```

Getting all listings between certain dates:

```csharp
var shows = await Cineworld.WhatsOn(Cinema.MiltonKeynes)
                           .From(new DateTime(2014, 1, 1))
                           .To(new DateTime(2014, 1, 8))
                           .RetrieveAsync();
```

Getting all listings for a certain day of week:

```csharp
{'fraction_non_alphanumeric': 0.09077098366881883, 'fraction_numerical': 0.010634257500949488, 'mean_word_length': 3.4194630872483223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '694132', 'n_tokens_mistral': 812, 'n_tokens_neox': 733, 'n_words': 262}