Instagram Scraper avatar

Instagram Scraper

Try for free

Pay $2.30 for 1,000 results

View all Actors
Instagram Scraper

Instagram Scraper

apify/instagram-scraper
Try for free

Pay $2.30 for 1,000 results

Scrape and download Instagram posts, profiles, places, hashtags, photos, and comments. Get data from Instagram using one or more Instagram URLs or search queries. Export scraped data, run the scraper via API, schedule and monitor runs or integrate with other tools.

Do you want to learn more about this Actor?

Get a demo
SI

Idea: Save the post images to Actor key-value storage

Closed

silverpajumae opened this issue
a month ago

Hi. This is not an issue but a feature suggestion. As Instagram image URLs expire in 1-2 days, i would suggest to have an option to store it in storage. That way these can be store for 30 days, if the storage is not named.

Best regards

alexey avatar

Hi!

As general approach only unique features added to keep actor easy to use. Saving images expected to be done by https://apify.com/lukaskrivka/images-download-upload as separate manual run or integration.

Input example:

1{
2  "convertWebpToPng": false,
3  "datasetId": "kya3nQTKUtFYNVhrk",
4  "fileNameFunction": "({ url }) => new URL(url).pathname.split(\"/\").pop()",
5  "imageCheckType": "content-type",
6  "noDownloadRun": false,
7  "pathToImageUrls": "images",
8  "preDownloadFunction": "({ data }) => data.map((item) => {\r\n    if (!item.images?.length) {\r\n        item.images = [item.displayUrl];\r\n    }\r\n    return item;\r\n})",
9  "s3CheckIfAlreadyThere": false,
10  "uploadTo": "zip-file",
11  "imageCheckMaxRetries": 6,
12  "maxConcurrency": 40,
13  "downloadTimeout": 15000,
14  "batchSize": 10000
15}

Hope its good enough for your case (input above is for saving posts media and keep original file names). If not, please re-open issue with suggestions.

I´m going to close the issue now, but if there would be anything else we could help with, please let us know.

Developer
Maintained by Apify
Actor metrics
  • 4.6k monthly users
  • 304 stars
  • 100.0% runs succeeded
  • 1.8 days response time
  • Created in Apr 2019
  • Modified 4 days ago