I am using R. How can I download multiple patterns datasets in one go?

Hi,
Is there a way I could download multiple patterns datasets in one go? I’m using R if that helps. It is a bit labrious to download each tar.gz file manually from the repository. Any pointers would be appreciated.

Thanks,
Viknesh


This topic was automatically generated from Slack. You can find the original thread here.

Check out the R section of our Awesome SafeGraph Datascience Github Repo - there’s a SafeGraphR package created by @Nick_H-K_Seattle_University that may be useful for you.

If you want to do it manually, I’d look into scripts that automate the downloading of multiple files / extracting them. Then you can loop through each file.

The patterns_lookup() function in SafeGraphR can do this. Give it your SafeGraph AWS key and secret, and specify a vector of dates, and it will download all the weekly patterns files that cover those dates.