This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gets page url | |
let url = "https://www.instagram.com/visit.koblenz/" | |
let req = new Request(url) | |
let html = await req.loadString() | |
// Gets posts count | |
let postsStart = html.indexOf('"edge_owner_to_timeline_media":{"count":') | |
let postsEnd = html.indexOf(',"page_info":',postsStart+1) | |
let posts = html.substring(postsStart+40,postsEnd) |