imdb_title 0.0.11 → 0.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/helper.rb +9 -0
- data/lib/imdb_title.rb +3 -15
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98a6a77462d729feef55253f83e2d355de941b096042a0276f57c6fb3605e300
|
4
|
+
data.tar.gz: ad714d913a00262ddabcf2595a03b194c607990335452b0dc7b1ebc85bc151c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8314eaea1f898c07bc7d7677e846680918a9b24dd794d02e68f1d88c86ea6d4c0bd47f9f0a9cd082b19c61af5e7550dfa4cd14cb4555be79a4c1195f260aa2bb
|
7
|
+
data.tar.gz: 7fdce4f6b931bbaaf985f12d82a3e2cedea52c2be17929fb79d2235a86a94375866130f2cf43eb89c37eb41166d7f99042eed46887fa64406831a448ba39e297
|
data/lib/helper.rb
ADDED
data/lib/imdb_title.rb
CHANGED
@@ -1,16 +1,8 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
#
|
4
|
-
|
5
|
-
require "httparty"
|
3
|
+
# load all dependencies
|
4
|
+
require_relative "helper"
|
6
5
|
|
7
|
-
# require all files & folders of the current directory 'lib'
|
8
|
-
lib = __dir__
|
9
|
-
Dir.glob(File.join(lib, "**", "*.rb")).sort.each(&method(:require))
|
10
|
-
|
11
|
-
##
|
12
|
-
##
|
13
|
-
##
|
14
6
|
###### ---------------- List of features/data avialable to extract -----------------------
|
15
7
|
### 1. Cast
|
16
8
|
### 2. Director
|
@@ -20,12 +12,8 @@ Dir.glob(File.join(lib, "**", "*.rb")).sort.each(&method(:require))
|
|
20
12
|
### 6. Ratings
|
21
13
|
### 7. Title
|
22
14
|
### 8. Tagline
|
23
|
-
#### ------- DETAILS ---------
|
24
15
|
### 9. Prodcution Companies
|
25
16
|
### 10. Release Date
|
26
|
-
##
|
27
|
-
##
|
28
|
-
##
|
29
17
|
|
30
18
|
module IMDb
|
31
19
|
# pass any Movie, TV-show, Episode or Game url from imdb.com
|
@@ -72,7 +60,7 @@ module IMDb
|
|
72
60
|
document.css("div[data-testid=hero-rating-bar__aggregate-rating] span div").last&.text
|
73
61
|
end
|
74
62
|
|
75
|
-
# list of production companies (Array
|
63
|
+
# list of production companies (Array)
|
76
64
|
def production_companies
|
77
65
|
document.css("li[data-testid=title-details-companies] li").map(&:text)
|
78
66
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: imdb_title
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juzer Shakir
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -53,6 +53,7 @@ extensions: []
|
|
53
53
|
extra_rdoc_files: []
|
54
54
|
files:
|
55
55
|
- lib/exceptions.rb
|
56
|
+
- lib/helper.rb
|
56
57
|
- lib/imdb_title.rb
|
57
58
|
- lib/non_interactive.rb
|
58
59
|
- lib/titles/episode.rb
|