video_chat_get 0.2.1 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +41 -0
- data/Gemfile.lock +1 -1
- data/lib/site_list/twitcasting_analyze.rb +3 -3
- data/lib/video_chat_get/version.rb +1 -1
- data/video_chat_get.gemspec +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 647ceca6aec0335e3952ad1c0e926cdb7eebd9d423317a623d56c057c74e8acf
|
4
|
+
data.tar.gz: 61f4bb8177997b7ccc25bed6dcfad5484b43f42949e68e9d55f0fbbbad657d8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71d09c05d0fc06d0e54781c9678b9c8d91f15d6e8e3c2ef52900b6e509a3556279a4d021c548a8f802b5acb206bed9d2f8d82fd8d160e66098696350cd11b12e
|
7
|
+
data.tar.gz: 9547cfc9a1d578a3019c8e783512be0debbcf5706b5564e1cec03396c0587671b6e08967cc2791fc7789ae846de2ea8414454c6d9498035a15ec069826be648e
|
data/.circleci/config.yml
CHANGED
@@ -36,12 +36,53 @@ jobs:
|
|
36
36
|
success_message: ':circleci-pass: $CIRCLE_BRANCH のテストが完了しました\n:github_octocat: User:$CIRCLE_USERNAME'
|
37
37
|
failure_message: ':circleci-fail: $CIRCLE_BRANCH のテストが失敗しました\n:github_octocat: User:$CIRCLE_USERNAME'
|
38
38
|
webhook: '${SLACK_WEBHOOK}'
|
39
|
+
|
40
|
+
deploy:
|
41
|
+
executor: my-executor
|
42
|
+
steps:
|
43
|
+
- checkout
|
44
|
+
|
45
|
+
- restore_cache:
|
46
|
+
name: cache lord
|
47
|
+
key: gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
|
48
|
+
|
49
|
+
- run:
|
50
|
+
name: bundle install
|
51
|
+
command: bundle check --path=vendor/bundle || bundle install --path vendor/bundle --clean --jobs 4 --retry 3
|
52
|
+
|
53
|
+
- save_cache:
|
54
|
+
name: save cache
|
55
|
+
key: gem-cache-{{ arch }}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
|
56
|
+
paths:
|
57
|
+
- ./vendor/bundle
|
58
|
+
|
59
|
+
- run:
|
60
|
+
name: build & release
|
61
|
+
command: |
|
62
|
+
mkdir -p ~/.gem
|
63
|
+
echo ":rubygems_api_key: $RUBYGEMS_API_KEY" > ~/.gem/credentials
|
64
|
+
chmod 0600 ~/.gem/credentials
|
65
|
+
git config user.name tf0101
|
66
|
+
git config user.email $RUBYGEMS_EMAIL
|
67
|
+
bundle exec rake build
|
68
|
+
bundle exec rake release
|
69
|
+
|
70
|
+
- slack/status:
|
71
|
+
success_message: ':circleci-pass: $CIRCLE_BRANCH のリリースが完了しました\n:github_octocat: User:$CIRCLE_USERNAME'
|
72
|
+
failure_message: ':circleci-fail: $CIRCLE_BRANCH のリリースが失敗しました\n:github_octocat: User:$CIRCLE_USERNAME'
|
73
|
+
webhook: '${SLACK_WEBHOOK}'
|
39
74
|
|
40
75
|
workflows:
|
41
76
|
version: 2
|
42
77
|
test:
|
43
78
|
jobs:
|
44
79
|
- test
|
80
|
+
deploy:
|
81
|
+
jobs:
|
82
|
+
- deploy:
|
83
|
+
filters:
|
84
|
+
branches:
|
85
|
+
only: master
|
45
86
|
|
46
87
|
test_cron:
|
47
88
|
triggers:
|
data/Gemfile.lock
CHANGED
@@ -37,15 +37,15 @@ class Twitcasting_analyze<Video_analyze
|
|
37
37
|
|
38
38
|
videoinfo={}
|
39
39
|
videoinfo["user_name"]=@videoinfo_request_body.at_css(".tw-user-nav-name").text.strip
|
40
|
-
videoinfo["video_title"]=@videoinfo_request_body.at_css("
|
40
|
+
videoinfo["video_title"]=@videoinfo_request_body.at_css(".tw-player-page__title-editor-value").text
|
41
41
|
videoinfo["video_time"]=@videoinfo_request_body.at_css(".tw-player-duration-time").text.strip
|
42
|
-
videoinfo["video_start_time"]=@videoinfo_request_body.at_css(".tw-player-meta__status_item > time")
|
42
|
+
videoinfo["video_start_time"]=@videoinfo_request_body.at_css(".tw-player-meta__status_item > time").attribute('datetime').text
|
43
43
|
|
44
44
|
videoinfo_polymer=@videoinfo_request_body.css(".tw-player-meta__status").css(".tw-player-meta__status_item")
|
45
45
|
i=0
|
46
46
|
videoinfo_polymer.each do |fact|
|
47
47
|
if i==1 then
|
48
|
-
videoinfo["total_view"]=fact.text.
|
48
|
+
videoinfo["total_view"]=fact.attribute('aria-label').text.split(":",2)[1].strip
|
49
49
|
return videoinfo
|
50
50
|
end
|
51
51
|
i+=1
|
data/video_chat_get.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "video_chat_get"
|
8
8
|
spec.version = VideoChatGet::VERSION
|
9
9
|
spec.authors = ["tf0101"]
|
10
|
-
spec.email = ["
|
10
|
+
spec.email = ["tf0101_emaile"]
|
11
11
|
|
12
12
|
spec.summary = %q{videochat scraping package}
|
13
13
|
spec.description = %q{videochat scraping}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: video_chat_get
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tf0101
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -96,7 +96,7 @@ dependencies:
|
|
96
96
|
version: 1.10.9
|
97
97
|
description: videochat scraping
|
98
98
|
email:
|
99
|
-
-
|
99
|
+
- tf0101_emaile
|
100
100
|
executables:
|
101
101
|
- videochatget
|
102
102
|
extensions: []
|
@@ -146,8 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
|
-
|
150
|
-
rubygems_version: 2.7.6.2
|
149
|
+
rubygems_version: 3.0.3
|
151
150
|
signing_key:
|
152
151
|
specification_version: 4
|
153
152
|
summary: videochat scraping package
|