Skip to content

Instantly share code, notes, and snippets.

Avatar

Moryson

View GitHub Profile
View Instagram_monitor_visitkoblenz.js
// 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)
You can’t perform that action at this time.