Skip to content

Commit ccb3cfc

Browse files
committed
docs(readme): hidden results
1 parent 29111ab commit ccb3cfc

File tree

3 files changed

+47
-17
lines changed

3 files changed

+47
-17
lines changed

.github/pull_request_template.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## What's new and why I made this pull request?
2+
3+
-
4+
5+
## Pull request type
6+
7+
What kind of change does this PR introduce?
8+
9+
```
10+
[ ] Bugfix
11+
[ ] Feature
12+
[ ] Code style update (formatting, local variables)
13+
[ ] Refactoring (no functional changes, no api changes)
14+
[ ] Build related changes
15+
[ ] CI related changes
16+
[ ] Documentation content changes
17+
[ ] Tests
18+
[ ] Other
19+
```

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
18

README.md

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
[![Build & Publish](https://github.com/bartholomej/node-csfd-api/workflows/Publish/badge.svg)](https://github.com/bartholomej/node-csfd-api/actions)
44
[![codecov](https://codecov.io/gh/bartholomej/node-csfd-api/branch/master/graph/badge.svg?token=YQH9UoVrGP)](https://codecov.io/gh/bartholomej/node-csfd-api)
55

6-
# CSFD API 2023
6+
# CSFD API 🎥 2024
77

88
> JavaScript NPM library for scraping **Czech Movie Database (csfd.cz)**
99
>
1010
> - JavaScript / TypeScript
1111
> - Browser + Node.js (SSR)
1212
> - Tested (~100% Code coverage)
13-
> - ✅ Ready for new ČSFD 2021!
13+
> - ✅ Ready for new ČSFD 2024!
1414
> - You can use in:
1515
> - Firebase function
1616
> - AWS λ (lambda function)
@@ -19,14 +19,14 @@
1919
> - React native app
2020
> - Browsers (Pay attention to CORS)
2121
22-
## Install
22+
## 🗜️ Install
2323

2424
```bash
2525
npm install node-csfd-api
2626
# yarn add node-csfd-api
2727
```
2828

29-
## Usage and examples
29+
## 🛠️ Usage and examples
3030

3131
- [Movies and TV Series](#Movie)
3232
- [User Ratings](#User-Ratings)
@@ -35,16 +35,17 @@ npm install node-csfd-api
3535

3636
### Movie
3737

38-
Get info about [this movie](https://www.csfd.cz/film/535121-na-spatne-strane/komentare/) _(id: 535121)_
38+
> Get info about [this movie](https://www.csfd.cz/film/535121-na-spatne-strane/komentare/) _(id: 535121)_
3939
4040
```javascript
4141
import { csfd } from 'node-csfd-api';
4242

4343
csfd.movie(535121).then((movie) => console.log(movie));
4444
```
4545

46-
#### Results
47-
46+
<details>
47+
<summary>Click here to see full result example</summary>
48+
4849
```javascript
4950
{
5051
id: 535121,
@@ -136,6 +137,7 @@ csfd.movie(535121).then((movie) => console.log(movie));
136137
]
137138
}
138139
```
140+
</details>
139141

140142
### Search
141143

@@ -147,10 +149,11 @@ import { csfd } from 'node-csfd-api';
147149
csfd.search('bart').then((search) => console.log(search));
148150
```
149151

150-
#### Results
151-
152+
<details>
153+
<summary>Click here to see full result example</summary>
154+
152155
```javascript
153-
movies: [
156+
[
154157
{
155158
id: 19653,
156159
title: 'Black Bart',
@@ -198,6 +201,8 @@ users: [
198201
]
199202
```
200203

204+
</details>
205+
201206
### Creators
202207

203208
> Get creator info + filmography
@@ -208,7 +213,8 @@ import { csfd } from 'node-csfd-api';
208213
csfd.creator(2120).then((creator) => console.log(creator));
209214
```
210215

211-
#### Results
216+
<details>
217+
<summary>Click here to see full result example</summary>
212218

213219
```javascript
214220
{
@@ -285,6 +291,8 @@ csfd.creator(2120).then((creator) => console.log(creator));
285291
}
286292
```
287293

294+
</details>
295+
288296
### User Ratings
289297

290298
#### Last ratings (last page)
@@ -314,7 +322,8 @@ csfd
314322
.then((ratings) => console.log(ratings));
315323
```
316324

317-
#### Results
325+
<details>
326+
<summary>Click here to see full result example</summary>
318327

319328
```javascript
320329
[
@@ -339,7 +348,9 @@ csfd
339348
];
340349
```
341350

342-
#### Options
351+
</details>
352+
353+
#### Options for user ratings
343354

344355
| Option | Type | Default | Description |
345356
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ------- | ------------------------------------------------------ |
@@ -348,7 +359,7 @@ csfd
348359
| **allPages** | boolean | false | Get all pages |
349360
| **allPagesDelay** | number | 0 | Delay on each page request. In milliseconds |
350361

351-
_Note: You can not use both parameters 'includesOnly' and 'excludes'. Parameter 'includesOnly' has a priority._
362+
_Note: You can not use both parameters `includesOnly` and `excludes`. Parameter `includesOnly` has a priority._
352363

353364
## 🧑‍💻 Used by
354365

@@ -364,7 +375,7 @@ _Note: You can not use both parameters 'includesOnly' and 'excludes'. Parameter
364375

365376
### Mobile applications
366377

367-
- KinoKlub – Mobile application for AeroFilms (React Native: Android + iOS application)
378+
- [KinoKlub](https://play.google.com/store/apps/details?id=com.aquasoup) – Mobile application for AeroFilms (React Native: Android + iOS application)
368379

369380
## 🔮 Roadmap
370381

@@ -414,7 +425,7 @@ _Note: You can not use both parameters 'includesOnly' and 'excludes'. Parameter
414425
- [x] Last ratings
415426
- [x] All pages
416427

417-
## Development
428+
## 🛠️ Development
418429

419430
### Developing and debugging library
420431

0 commit comments

Comments
 (0)