chupapee / social-media-downloader-bot

📥 Bot for downloading any media from Instagram, Twitter and videos from TikTok and Youtube
https://t.me/insta_twitter_youtube_bot
38 stars 20 forks source link

Problem with Instagram links #7

Open Behzad9 opened 1 week ago

Behzad9 commented 1 week ago

The bot works fine for Twitter links, but for Instagram links, the following message is shown: Link could not be scraped, please check it or try again later According to the investigation I did in puppeteer log, it seems that the Instagram problem is due to timeout, no other message is shown in the puppeteer runs output except timeout.

TimeoutError: Waiting for selector `#btn-submit` failed: Waiting failed: 30000ms exceeded
    at Timeout.<anonymous> (/usr/src/bots/social-media-bot/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WaitTask.js:59:37)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
chupapee commented 1 week ago

you can check the website which is used to scrape instagram data INSTA_PAGE_URL=https://snapinsta.app/. Maybe the id "btn-submit" is removed from the submit button