UNPKG

instagram-scraper-api

Version:

Get user data and posts by scraping Instagram's user page. Without API key or oAuth!

7 lines (6 loc) 310 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.userDataRegex = exports.userUrl = void 0; const userUrl = (user) => `https://www.instagram.com/${encodeURIComponent(user)}`; exports.userUrl = userUrl; exports.userDataRegex = /window\._sharedData\s?=\s?({.+);\s?<\/script>/;