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
- Host: GitHub
- URL: https://github.com/peduarte/netflix-categories
- Owner: peduarte
- Created: 2017-01-23T10:53:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-10T11:47:41.000Z (over 9 years ago)
- Last Synced: 2025-10-30T07:45:11.682Z (8 months ago)
- Language: HTML
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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));
```