Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crawler.vmusicchart.vn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Phạm Văn Đoan
crawler.vmusicchart.vn
Commits
3f070a6e
Commit
3f070a6e
authored
Apr 07, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lưu thêm trường ca sĩ từ nguồn
parent
d6aed5ad
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
22 additions
and
1 deletion
+22
-1
KeengCrawlerTrackCommand.php
app/Console/Commands/Keeng/KeengCrawlerTrackCommand.php
+9
-0
NctCrawlerTrackCommand.php
app/Console/Commands/Nct/NctCrawlerTrackCommand.php
+4
-0
ZingCrawlerNewRealeaseCommand.php
app/Console/Commands/Zing/ZingCrawlerNewRealeaseCommand.php
+4
-0
ZingCrawlerTrackCommand.php
app/Console/Commands/Zing/ZingCrawlerTrackCommand.php
+4
-0
Kernel.php
app/Console/Kernel.php
+1
-1
No files found.
app/Console/Commands/Keeng/KeengCrawlerTrackCommand.php
View file @
3f070a6e
...
@@ -78,6 +78,12 @@ class KeengCrawlerTrackCommand extends Command
...
@@ -78,6 +78,12 @@ class KeengCrawlerTrackCommand extends Command
if
(
empty
(
$track_db
[
0
]
->
composer_list
))
{
if
(
empty
(
$track_db
[
0
]
->
composer_list
))
{
$track_db
[
0
]
->
composer_list
=
isset
(
$track
->
info_extra
->
author_name
)
?
$track
->
info_extra
->
author_name
:
null
;
$track_db
[
0
]
->
composer_list
=
isset
(
$track
->
info_extra
->
author_name
)
?
$track
->
info_extra
->
author_name
:
null
;
}
}
if
(
empty
(
$track_db
[
0
]
->
src_singer
))
{
$track_db
[
0
]
->
src_singer
=
isset
(
$track
->
artists_names
)
?
$track
->
artists_names
:
null
;
}
if
(
empty
(
$track_db
[
0
]
->
src_composer
))
{
$track_db
[
0
]
->
src_composer
=
isset
(
$track
->
info_extra
->
author_name
)
?
$track
->
info_extra
->
author_name
:
null
;
}
$track_db
[
0
]
->
crawler_at
=
Carbon
::
now
();
$track_db
[
0
]
->
crawler_at
=
Carbon
::
now
();
$track_db
[
0
]
->
save
();
$track_db
[
0
]
->
save
();
}
}
...
@@ -97,6 +103,9 @@ class KeengCrawlerTrackCommand extends Command
...
@@ -97,6 +103,9 @@ class KeengCrawlerTrackCommand extends Command
$bulk_track_insert
[
$key_insert
][
'composer_list'
]
=
isset
(
$track
->
info_extra
->
author_name
)
?
$track
->
info_extra
->
author_name
:
null
;
$bulk_track_insert
[
$key_insert
][
'composer_list'
]
=
isset
(
$track
->
info_extra
->
author_name
)
?
$track
->
info_extra
->
author_name
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_thumbnail'
]
=
isset
(
$track
->
image
)
?
$track
->
image
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_thumbnail'
]
=
isset
(
$track
->
image
)
?
$track
->
image
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_thumbnail_medium'
]
=
isset
(
$track
->
image310
)
?
$track
->
image310
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_thumbnail_medium'
]
=
isset
(
$track
->
image310
)
?
$track
->
image310
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_singer'
]
=
isset
(
$track
->
singer
)
?
$track
->
singer
:
null
;
$composer
=
(
isset
(
$track
->
info_extra
)
&&
isset
(
$track
->
info_extra
->
author_name
))
?
$track
->
info_extra
->
author_name
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_composer'
]
=
$composer
;
$bulk_track_insert
[
$key_insert
][
'crawler_at'
]
=
Carbon
::
now
();
$bulk_track_insert
[
$key_insert
][
'crawler_at'
]
=
Carbon
::
now
();
$key_insert
++
;
$key_insert
++
;
...
...
app/Console/Commands/Nct/NctCrawlerTrackCommand.php
View file @
3f070a6e
...
@@ -83,6 +83,9 @@ class NctCrawlerTrackCommand extends Command
...
@@ -83,6 +83,9 @@ class NctCrawlerTrackCommand extends Command
$track_db
[
0
]
->
id_nct
=
$track
[
'id_nct'
];
$track_db
[
0
]
->
id_nct
=
$track
[
'id_nct'
];
$track_db
[
0
]
->
id_nct_str
=
$track
[
'id_nct_str'
];
$track_db
[
0
]
->
id_nct_str
=
$track
[
'id_nct_str'
];
$track_db
[
0
]
->
link_nct
=
$link
;
$track_db
[
0
]
->
link_nct
=
$link
;
if
(
empty
(
$track_db
[
0
]
->
src_singer
))
{
$track_db
[
0
]
->
src_singer
=
$track
[
'singer'
];
}
$track_db
[
0
]
->
crawler_at
=
Carbon
::
now
();
$track_db
[
0
]
->
crawler_at
=
Carbon
::
now
();
$track_db
[
0
]
->
save
();
$track_db
[
0
]
->
save
();
}
}
...
@@ -100,6 +103,7 @@ class NctCrawlerTrackCommand extends Command
...
@@ -100,6 +103,7 @@ class NctCrawlerTrackCommand extends Command
$bulk_track_insert
[
$key_insert
][
'id_nct_str'
]
=
$track
[
'id_nct_str'
];
$bulk_track_insert
[
$key_insert
][
'id_nct_str'
]
=
$track
[
'id_nct_str'
];
$bulk_track_insert
[
$key_insert
][
'src_thumbnail_medium'
]
=
$track
[
'img'
];
$bulk_track_insert
[
$key_insert
][
'src_thumbnail_medium'
]
=
$track
[
'img'
];
$bulk_track_insert
[
$key_insert
][
'link_nct'
]
=
$link
;
$bulk_track_insert
[
$key_insert
][
'link_nct'
]
=
$link
;
$bulk_track_insert
[
$key_insert
][
'src_singer'
]
=
$track
[
'singer'
];
$bulk_track_insert
[
$key_insert
][
'crawler_at'
]
=
Carbon
::
now
();
$bulk_track_insert
[
$key_insert
][
'crawler_at'
]
=
Carbon
::
now
();
$key_insert
++
;
$key_insert
++
;
...
...
app/Console/Commands/Zing/ZingCrawlerNewRealeaseCommand.php
View file @
3f070a6e
...
@@ -99,6 +99,9 @@ class ZingCrawlerNewRealeaseCommand extends Command
...
@@ -99,6 +99,9 @@ class ZingCrawlerNewRealeaseCommand extends Command
if
(
empty
(
$track_db
[
0
]
->
link_mv
))
{
if
(
empty
(
$track_db
[
0
]
->
link_mv
))
{
$track_db
[
0
]
->
link_mv
=
isset
(
$track
->
mv_link
)
?
$domain
.
$track
->
mv_link
:
null
;
$track_db
[
0
]
->
link_mv
=
isset
(
$track
->
mv_link
)
?
$domain
.
$track
->
mv_link
:
null
;
}
}
if
(
empty
(
$track_db
[
0
]
->
src_singer
))
{
$track_db
[
0
]
->
src_singer
=
isset
(
$track
->
artists_names
)
?
$track
->
artists_names
:
null
;
}
$track_db
[
0
]
->
crawler_at
=
Carbon
::
now
();
$track_db
[
0
]
->
crawler_at
=
Carbon
::
now
();
$track_db
[
0
]
->
save
();
$track_db
[
0
]
->
save
();
}
}
...
@@ -119,6 +122,7 @@ class ZingCrawlerNewRealeaseCommand extends Command
...
@@ -119,6 +122,7 @@ class ZingCrawlerNewRealeaseCommand extends Command
$bulk_track_insert
[
$key_insert
][
'src_thumbnail'
]
=
isset
(
$track
->
thumbnail
)
?
$track
->
thumbnail
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_thumbnail'
]
=
isset
(
$track
->
thumbnail
)
?
$track
->
thumbnail
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_thumbnail_medium'
]
=
isset
(
$track
->
thumbnail_medium
)
?
$track
->
thumbnail_medium
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_thumbnail_medium'
]
=
isset
(
$track
->
thumbnail_medium
)
?
$track
->
thumbnail_medium
:
null
;
$bulk_track_insert
[
$key_insert
][
'link_mv'
]
=
isset
(
$track
->
mv_link
)
?
$domain
.
$track
->
mv_link
:
null
;
$bulk_track_insert
[
$key_insert
][
'link_mv'
]
=
isset
(
$track
->
mv_link
)
?
$domain
.
$track
->
mv_link
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_singer'
]
=
isset
(
$track
->
artists_names
)
?
$track
->
artists_names
:
null
;
$bulk_track_insert
[
$key_insert
][
'crawler_at'
]
=
Carbon
::
now
();
$bulk_track_insert
[
$key_insert
][
'crawler_at'
]
=
Carbon
::
now
();
$key_insert
++
;
$key_insert
++
;
...
...
app/Console/Commands/Zing/ZingCrawlerTrackCommand.php
View file @
3f070a6e
...
@@ -99,6 +99,9 @@ class ZingCrawlerTrackCommand extends Command
...
@@ -99,6 +99,9 @@ class ZingCrawlerTrackCommand extends Command
if
(
empty
(
$track_db
[
0
]
->
link_mv
))
{
if
(
empty
(
$track_db
[
0
]
->
link_mv
))
{
$track_db
[
0
]
->
link_mv
=
isset
(
$track
->
mv_link
)
?
$domain
.
$track
->
mv_link
:
null
;
$track_db
[
0
]
->
link_mv
=
isset
(
$track
->
mv_link
)
?
$domain
.
$track
->
mv_link
:
null
;
}
}
if
(
empty
(
$track_db
[
0
]
->
src_singer
))
{
$track_db
[
0
]
->
src_singer
=
isset
(
$track
->
artists_names
)
?
$track
->
artists_names
:
null
;
}
$track_db
[
0
]
->
crawler_at
=
Carbon
::
now
();
$track_db
[
0
]
->
crawler_at
=
Carbon
::
now
();
$track_db
[
0
]
->
save
();
$track_db
[
0
]
->
save
();
}
}
...
@@ -119,6 +122,7 @@ class ZingCrawlerTrackCommand extends Command
...
@@ -119,6 +122,7 @@ class ZingCrawlerTrackCommand extends Command
$bulk_track_insert
[
$key_insert
][
'src_thumbnail'
]
=
isset
(
$track
->
thumbnail
)
?
$track
->
thumbnail
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_thumbnail'
]
=
isset
(
$track
->
thumbnail
)
?
$track
->
thumbnail
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_thumbnail_medium'
]
=
isset
(
$track
->
thumbnail_medium
)
?
$track
->
thumbnail_medium
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_thumbnail_medium'
]
=
isset
(
$track
->
thumbnail_medium
)
?
$track
->
thumbnail_medium
:
null
;
$bulk_track_insert
[
$key_insert
][
'link_mv'
]
=
isset
(
$track
->
mv_link
)
?
$domain
.
$track
->
mv_link
:
null
;
$bulk_track_insert
[
$key_insert
][
'link_mv'
]
=
isset
(
$track
->
mv_link
)
?
$domain
.
$track
->
mv_link
:
null
;
$bulk_track_insert
[
$key_insert
][
'src_singer'
]
=
isset
(
$track
->
artists_names
)
?
$track
->
artists_names
:
null
;
$bulk_track_insert
[
$key_insert
][
'crawler_at'
]
=
Carbon
::
now
();
$bulk_track_insert
[
$key_insert
][
'crawler_at'
]
=
Carbon
::
now
();
$key_insert
++
;
$key_insert
++
;
...
...
app/Console/Kernel.php
View file @
3f070a6e
...
@@ -60,7 +60,7 @@ class Kernel extends ConsoleKernel
...
@@ -60,7 +60,7 @@ class Kernel extends ConsoleKernel
$schedule
->
command
(
'zing:get-track'
)
->
twiceDaily
(
11
,
20
);
$schedule
->
command
(
'zing:get-track'
)
->
twiceDaily
(
11
,
20
);
$schedule
->
command
(
'zing:get-new-release-track'
)
->
dailyAt
(
'13:00'
);
$schedule
->
command
(
'zing:get-new-release-track'
)
->
dailyAt
(
'13:00'
);
$schedule
->
command
(
'nct:get-track'
)
->
dailyAt
(
'13:10'
);
//
$schedule->command('nct:get-track')->dailyAt('13:10');
$schedule
->
command
(
'nhacvn:get-track'
)
->
dailyAt
(
'13:20'
);
$schedule
->
command
(
'nhacvn:get-track'
)
->
dailyAt
(
'13:20'
);
$schedule
->
command
(
'keeng:get-track'
)
->
dailyAt
(
'13:30'
);
$schedule
->
command
(
'keeng:get-track'
)
->
dailyAt
(
'13:30'
);
$schedule
->
command
(
'crawler:get-track-image'
)
->
dailyAt
(
'13:40'
);
$schedule
->
command
(
'crawler:get-track-image'
)
->
dailyAt
(
'13:40'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment