Skip to content

Commit

Permalink
fix: Use username and regenerate bearer token
Browse files Browse the repository at this point in the history
IDK Which one it was
  • Loading branch information
edmundmiller committed Sep 4, 2024
1 parent 2bce0fd commit d50d9cf
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stats/steampipe/pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ version = "0.1.0"

[tasks]
plugins = "steampipe plugin install github twitter --progress=false"
twitter = "steampipe query twitter_users.sql --output json | jq '.rows[0].public_metrics + {timestamp: now|tostring}' >> twitter_users.json"
twitter = "steampipe query twitter_users.sql --output json | jq '.rows[0].public_metrics + {timestamp: now|tostring}' >> hf_stats/steampipe/twitter_users.json"
github = "steampipe query github.sql --output json | jq '.rows[0] + {timestamp: now|tostring}' >> hf_stats/steampipe/github.json"
download_hf = "huggingface-cli download nf-core/stats --local-dir hf_stats --repo-type dataset --quiet"
upload_hf = "huggingface-cli upload nf-core/stats hf_stats --repo-type dataset --quiet"
Expand Down
7 changes: 7 additions & 0 deletions stats/steampipe/twitter_users.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"followers_count": 4282,
"following_count": 16,
"listed_count": 30,
"tweet_count": 2087,
"timestamp": "1725477044.07376"
}
4 changes: 2 additions & 2 deletions stats/steampipe/twitter_users.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ select
from
twitter_user
where
-- NOTE username = 'nf_core';
id = '966931121912004609';
username = 'nf_core';
-- id = '966931121912004609';

0 comments on commit d50d9cf

Please sign in to comment.