Skip to content

Commit fb0e70e

Browse files
committed
Squash data
1 parent f1dae8d commit fb0e70e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+59674
-3
lines changed

.github/workflows/scrape.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Daily Scrape
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: "30 5 * * *"
6+
- cron: "30 20 * * *"
77

88
jobs:
99
scrape:
@@ -42,15 +42,30 @@ jobs:
4242
$installer = "$($playwright[0].Directory.FullName)/playwright.ps1"
4343
& "$installer" install
4444
45+
- name: Run scraper app - Top 100
46+
shell: pwsh
47+
run: |
48+
$date = (Get-Date).ToUniversalTime().AddHours(9).ToString("yyyyMMdd")
49+
# $result = dotnet run --project ./samples/MelonChart.ConsoleApp/ -- -c Top100 --json | ConvertFrom-Json
50+
$result = dotnet run --project ./samples/MelonChart.ConsoleApp/ -- -c Top100 --json
51+
52+
mkdir -p ./data
53+
pushd ./data
54+
# $result | ConvertTo-Json -Depth 100 | Out-File -FilePath "top100-$date.json" -Force
55+
$result | Out-File -FilePath "top100-$date.json" -Force
56+
popd
57+
4558
- name: Run scraper app - Daily 100
4659
shell: pwsh
4760
run: |
4861
$date = (Get-Date).ToUniversalTime().AddHours(9).ToString("yyyyMMdd")
49-
$result = dotnet run --project ./samples/MelonChart.ConsoleApp/ -- -c Daily100 --json | ConvertFrom-Json
62+
# $result = dotnet run --project ./samples/MelonChart.ConsoleApp/ -- -c Daily100 --json | ConvertFrom-Json
63+
$result = dotnet run --project ./samples/MelonChart.ConsoleApp/ -- -c Daily100 --json
5064
5165
mkdir -p ./data
5266
pushd ./data
53-
$result | ConvertTo-Json -Depth 100 | Out-File -FilePath "daily100-$date.json" -Force
67+
# $result | ConvertTo-Json -Depth 100 | Out-File -FilePath "daily100-$date.json" -Force
68+
$result | Out-File -FilePath "daily100-$date.json" -Force
5469
popd
5570
5671
- name: Upload data

0 commit comments

Comments
 (0)