Instagram Post Scraper avatar

Instagram Post Scraper

Try for free

Pay $2.30 for 1,000 results

View all Actors
Instagram Post Scraper

Instagram Post Scraper

apify/instagram-post-scraper
Try for free

Pay $2.30 for 1,000 results

Scrape Instagram posts. Just add one or more Instagram usernames and get your data in seconds including text, hashtags, mentions, comments, images, URLs, likes, locations, and metadata. 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
MS

cannot retrieve the Initial Video Thumbnail

Closed

mascaritas opened this issue
6 months ago

When loading the JSON into an editor I am able to render the image URL as an image, however if type of Post is VIDEO, I loose the thumbnail

Is the video Thumbnail ( the one that insta shows on the post) saved in another Column ?

alexey avatar

Hi! Looks like issue caused by editor - may be image too large to resize or expired faster if related to video. Sample re-run https://console.apify.com/view/runs/jrSMQywmPplJOx29N see https://api.apify.com/v2/datasets/c7W6XJUG35M2DjIW8/items?clean=true&fields=type,url,displayUrl&format=json - at the time of writing displayUrl for videos works fine, no noticeable differences, all static images are available.

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

MS

mascaritas

6 months ago

Hi Alexey

thanks a lot, is there an "out of the box" solution via Apiefy ? maybe storage, to have the images immmediateley be downloaded into ?

alexey avatar

Hi! You can try https://apify.com/lukaskrivka/images-download-upload with input like:

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    "proxyConfiguration": {
10        "useApifyProxy": true
11    },
12    "s3CheckIfAlreadyThere": false,
13    "uploadTo": "zip-file"
14}
Developer
Maintained by Apify
Actor metrics
  • 1.8k monthly users
  • 134 stars
  • 99.8% runs succeeded
  • 3 days response time
  • Created in Nov 2021
  • Modified 2 days ago