通过URL自动检索JSON数据每隔X秒,并存储在亚马逊DynamoDB亚马逊、每隔、数据、URL

2023-09-12 21:30:47 作者:辞安

我正在寻找一个简单的方法来检索和存储JSON亚马逊DynamoDB。 我通过一个URL获取数据,我想第二个查询的网址每隔X - 例如: wget的 http://open-stocks.com/api/get-数据10:21:33.json

I'm looking for an easy way to retrieve and store JSON in Amazon DynamoDB. I'm getting the data via an URL and I would like to query the URL every X second - example: wget http://open-stocks.com/api/get-data-10:21:33.json

在URL中的时间应该符合要求的时间 - 所以这是动态

The time in the URL should match time of request - so that's dynamic.

我想我可以旋转起来在整个Linux服务器上AWS和编写Python脚本生成的URL,获取数据,并将其推到亚马逊DynamoDB - 但我很想一种现有的服务,这让我不要担心服务器操作系统,cronjobs等等...

I guess I could spin up an entire Linux server on AWS and write a Python script generating the URL, getting the data and push it to Amazon DynamoDB - but I would love a sort of existing service, which made me not worrying about server OS, cronjobs etc...

任何帮助,以这样的服务,或许直接通过AWS?

Any help to such service, perhaps directly via AWS?

推荐答案

AWS LAMBDA现在支持计划任务。由于LAMBDA can发出HTTP请求rel="nofollow">写入DynamoDB 和