我正在尝试从GDELT中提取与加密货币相关的新闻。我使用以下查询:
select date(_partitiontime) date, count(theme) occurences
from `gdelt-bq.gdeltv2.gkg_partitioned`, unnest(split(themes,';')) as theme
where lower(theme) like "%bitcoin%"
group by date
-- order by date 我不仅想提取比特币这个词出现的次数,还想提取新闻文章或文本。
我也尝试过:
select Date,SourceCommonName,Themes,Persons,DocumentIdentifier
from gdelt-bq.gdeltv2.gkg_partitioned, unnest(split(themes,';')) as theme
where theme like "%bitcoin%"
limit 100但是这个查询返回0个结果。我似乎错过了一些东西,无法获得与比特币相关的新闻的URL。
任何帮助都将不胜感激。谢谢!
发布于 2021-06-21 22:06:03
您应该在第二个查询的where子句中使用lower(theme)
https://stackoverflow.com/questions/68067656
复制相似问题