Skip to content

Commit ad5f282

Browse files
committed
デバッグ用の Clubs API リクエスト例もコメントとして付記
1 parent 47e1857 commit ad5f282

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

get_data_from_earth.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,15 @@ def fetch_responses_by_request(page_number=0, query:, variables:)
115115
fetch_responses_by_request(query: query, variables: variables)
116116
puts " (Total: #{@dojo_data.count})"
117117

118+
# [今は不要] Clubs API にある承認された全クラブ情報を取得する
119+
# https://graphql.org/learn/queries/#variables
120+
#variables = { after: nil } # 次に読むページ番号の初期化
121+
#filter_by_brands = 'filterBy: { verified: true }'
122+
#query = get_query_from_template(filter_by_brands)
123+
#print 'ALL_CLUBS_QUERY: '
124+
#fetch_responses_by_request(query: query, variables: variables)
125+
#puts " (Total: #{@dojo_data.count})"
126+
118127
# API から取得した結果を JSON にしてファイルに書き込む
119128
File.write('tmp/number_of_dojos', @dojo_data.length)
120129
File.open('dojos_earth.json', 'w') do |file|

0 commit comments

Comments
 (0)