An open API service indexing awesome lists of open source software.

https://github.com/peduarte/netflix-categories

Every category on Netflix
https://github.com/peduarte/netflix-categories

Last synced: 2 months ago
JSON representation

Every category on Netflix

Awesome Lists containing this project

README

          

# peduarte.github.io/netflix-categories

## Requirements

- [Ruby](https://www.ruby-lang.org/en/downloads/) (including development headers, v2 or above)
- [jekyll](https://jekyllrb.com/)

## Development

```bash
jekyll serve
```

### Script for scraping categories

Copy the below snippet into console on this page: http://whatsonnetflix.com/netflix-hacks/the-netflix-id-bible-every-category-on-netflix/

```
var data = Array.from(document.querySelectorAll('.entry .theiaPostSlider_slides > div > .wpb_row'))
.splice(1)
.map(section =>
Array.from(section.querySelectorAll('p'))
.map(el => el.innerText)
.filter(text => text.includes(' = '))
.map(text => text.split(' = '))
.map(([id, label]) => ({id, label}))
)
.filter(sectionTexts => sectionTexts.length > 0)
.reduce((acc, curr) => {
acc[curr[0].label] = curr;
return acc;
}, {});
console.log(JSON.stringify(data, null, 2));
```