From 31bbbf8bb7bf03761b8c58148afbfec5d1d83e08 Mon Sep 17 00:00:00 2001 From: Alberto Balbo Date: Sun, 25 Oct 2026 14:22:16 +0100 Subject: [PATCH] Instagram: Febe legge le risposte vere (campioni dal HAR del 21/10) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Febe non estraeva nulla da Instagram per due motivi. Instagram manda i dati di storie e raccolte (GraphQL) come text/javascript, e la cattura leggeva solo le risposte dichiarate JSON: le scartava tutte. E i file di Instagram (lettori, bersagli) erano scheletri, quindi le ricette si rifiutavano di girare. Alberto ha mandato un HAR del suo browser e una guida. La guida descrive richieste costruite a mano, vietate dalle regole 2-4, e un formato che nel HAR non compare: non si usa. Dal HAR si è letta solo la forma; le risposte utili sono diventate campioni grezzi fuori dal repository, ripuliti e verificati con febe-sonda (tests/Febe.Tests/campioni/instagram). Che cosa cambia: - la cattura legge le risposte text/javascript chieste dalla pagina (mai gli script) e ogni blocco JSON incorporato nel documento della pagina, e avvisa quando un corpo atteso non arriverà; - le risposte che non parlano di contenuti (promozioni, «storia vista») si ignorano invece di valere come formato non riconosciuto; - lettori.instagram.json è confermato, con sole chiavi presenti nei campioni; identificativi delle raccolte nella forma dell'indirizzo; - bersagli.instagram.json ha le pagine viste nel traffico vero; i bersagli restano vuoti (H11): storie, raccolte, Taggati e Reel aspettano lo script tools/bersagli/raccogli-bersagli.js; - le ricette del profilo reggono dati in risposte diverse e prendono la paginazione solo dalla risposta che porta i loro post; l'elenco dei seguiti scarta i profili suggeriti; «Tu» si riconosce anche dal solo identificativo dell'account collegato; - il visualizzatore delle raccolte conta i contenuti (l'indirizzo non cambia), chiede il permesso prima di ogni contenuto e si chiude sempre; - una ricetta che la configurazione non lascia girare è «Da configurare»: non è un guasto, non si sospende, non si pianifica; le sospensioni dovute ai file vecchi si azzerano una volta al cambio dei file; - la barra laterale dice «Collegato» dal cookie di sessione; i «Post singolo» per gli indirizzi scaduti non vengono più annullati; - febe-sonda da-har; la ripulitura tiene latest_reel_media e mette un riempitivo neutro sotto le chiavi simili a segreti (gitleaks). Prove su Windows: 783 superate, 76 saltate (Chromium e Xvfb, nella CI). Nulla è stato provato contro Instagram. Dettagli e decisioni in docs/stato.md e docs/decisioni.md (righe del 25 ottobre). Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 28 + README.md | 2 +- docs/decisioni.md | 20 + docs/guida/Home.md | 7 +- docs/guida/Ipotesi-da-verificare.md | 39 +- docs/guida/Primo-collegamento.md | 4 +- docs/guida/Problemi-comuni.md | 7 +- docs/prove-dal-vivo.md | 104 ++ docs/sonda/esito.md | 50 +- docs/stato.md | 58 +- src/Febe.App/DeferredRecipeRunner.cs | 3 + src/Febe.App/FebeApp.cs | 35 + src/Febe.Browser/Capture/ResponseTap.cs | 260 ++- .../Recipes/CollectionPipeline.cs | 4 +- .../Collection/CollectionConfiguration.cs | 194 +++ src/Febe.Core/Collection/DataResponses.cs | 106 ++ src/Febe.Core/Collection/HostClassifier.cs | 5 +- src/Febe.Core/Collection/IResponseConsumer.cs | 9 + .../Collection/Readers/ReadModels.cs | 12 + .../Collection/Readers/ReaderVocabulary.cs | 19 + .../Collection/Readers/ShapeReader.cs | 89 +- .../Collection/Recipes/CaptureCollector.cs | 46 +- .../Collection/Recipes/RecipeRunner.Lists.cs | 25 +- .../Recipes/RecipeRunner.Profile.cs | 234 ++- .../Collection/Recipes/RecipeRunner.Sweep.cs | 52 +- .../Collection/Recipes/RecipeRunner.Viewer.cs | 585 +++++-- .../Collection/Recipes/RecipeRunner.cs | 67 +- src/Febe.Core/Collection/SiteMap.cs | 9 +- src/Febe.Core/Config/bersagli.instagram.json | 22 +- src/Febe.Core/Config/lettori.instagram.json | 62 +- src/Febe.Core/Engine/CircuitBreaker.cs | 2 + src/Febe.Core/Engine/Contracts.cs | 13 + src/Febe.Core/Engine/EngineHost.cs | 48 + src/Febe.Core/Engine/EngineSettings.cs | 6 + src/Febe.Core/Engine/RecentActions.cs | 1 + src/Febe.Core/Engine/RecipeHealth.cs | 24 +- src/Febe.Core/Engine/SessionComposer.cs | 208 ++- src/Febe.Web/Api/EngineApi.cs | 27 +- tests/Febe.Tests/Browser/CaptureUnitTests.cs | 214 ++- .../Collection/CollectionUnitTests.cs | 103 +- tests/Febe.Tests/Collection/HarImportTests.cs | 263 +++ .../Collection/InstagramReaderTests.cs | 374 +++++ .../Collection/InstagramRecipeTests.cs | 820 +++++++++ tests/Febe.Tests/Collection/ReaderTests.cs | 27 +- .../Febe.Tests/Collection/RecipeRuleTests.cs | 33 + tests/Febe.Tests/Collection/SanitizerTests.cs | 44 + .../Collection/ViewerAddressTests.cs | 732 ++++++++ .../Engine/CollectionConfigurationTests.cs | 151 ++ tests/Febe.Tests/Engine/EngineHostTests.cs | 24 + .../Engine/NotConfiguredRecipeTests.cs | 253 +++ .../Engine/Support/EngineTestBed.cs | 13 + .../Engine/Support/ScriptedRunner.cs | 5 + .../Web/EngineConnectionStateTests.cs | 88 + tests/Febe.Tests/Web/InterfaceTests.cs | 10 +- .../campioni/instagram/000001-promozioni.json | 41 + .../instagram/000002-ricerca-profili.json | 155 ++ .../instagram/000003-profili-suggeriti.json | 106 ++ .../campioni/instagram/000004-commenti.json | 96 ++ .../campioni/instagram/000005-post-video.json | 699 ++++++++ .../000006-raccolta-in-evidenza.json | 1494 +++++++++++++++++ .../000007-raccolta-pagina-successiva.json | 607 +++++++ .../instagram/000008-storia-vista.json | 24 + .../Febe.Tests/campioni/instagram/LEGGIMI.md | 57 + tools/Febe.Sonda/HarImporter.cs | 365 ++++ tools/Febe.Sonda/Program.cs | 40 + tools/Febe.Sonda/SampleSanitizer.cs | 18 +- tools/Febe.Sonda/ripulitura.json | 4 +- tools/bersagli/LEGGIMI.md | 33 + tools/bersagli/raccogli-bersagli.js | 258 +++ 69 files changed, 9184 insertions(+), 453 deletions(-) create mode 100644 src/Febe.Core/Collection/CollectionConfiguration.cs create mode 100644 src/Febe.Core/Collection/DataResponses.cs create mode 100644 tests/Febe.Tests/Collection/HarImportTests.cs create mode 100644 tests/Febe.Tests/Collection/InstagramReaderTests.cs create mode 100644 tests/Febe.Tests/Collection/InstagramRecipeTests.cs create mode 100644 tests/Febe.Tests/Collection/ViewerAddressTests.cs create mode 100644 tests/Febe.Tests/Engine/CollectionConfigurationTests.cs create mode 100644 tests/Febe.Tests/Engine/NotConfiguredRecipeTests.cs create mode 100644 tests/Febe.Tests/Web/EngineConnectionStateTests.cs create mode 100644 tests/Febe.Tests/campioni/instagram/000001-promozioni.json create mode 100644 tests/Febe.Tests/campioni/instagram/000002-ricerca-profili.json create mode 100644 tests/Febe.Tests/campioni/instagram/000003-profili-suggeriti.json create mode 100644 tests/Febe.Tests/campioni/instagram/000004-commenti.json create mode 100644 tests/Febe.Tests/campioni/instagram/000005-post-video.json create mode 100644 tests/Febe.Tests/campioni/instagram/000006-raccolta-in-evidenza.json create mode 100644 tests/Febe.Tests/campioni/instagram/000007-raccolta-pagina-successiva.json create mode 100644 tests/Febe.Tests/campioni/instagram/000008-storia-vista.json create mode 100644 tests/Febe.Tests/campioni/instagram/LEGGIMI.md create mode 100644 tools/Febe.Sonda/HarImporter.cs create mode 100644 tools/bersagli/LEGGIMI.md create mode 100644 tools/bersagli/raccogli-bersagli.js diff --git a/CHANGELOG.md b/CHANGELOG.md index e5f6a97..6af7365 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,8 +2,36 @@ ## 0.1.2 (in preparazione) +Correzioni: + +- **Febe legge le risposte vere di Instagram.** Instagram manda i dati di storie e raccolte come `text/javascript`, e + Febe leggeva solo le risposte dichiarate JSON: le scartava tutte. Ora legge anche quelle (mai i file di script) e il + JSON che la pagina porta con sé. I lettori sono scritti sulle risposte che il browser di Alberto ha ricevuto il 21 + ottobre, ripulite, e il vocabolario di Instagram è «confermato». +- La mappa di Instagram ha le pagine viste nel traffico vero (home, profilo, post, storie, raccolte): girano giro dei + seguiti, controllo del profilo, storico e post singolo. Storie, raccolte e schede Taggati e Reel aspettano i bersagli + dei comandi, che si raccolgono con la nuova procedura «A bis» di `docs/prove-dal-vivo.md`. +- Le risposte che non parlano di contenuti (promozioni, «storia vista», registri) non fermano più le ricette come + «formato non riconosciuto». +- Le ricette del profilo prendono intestazione, griglia e raccolte anche quando arrivano in risposte diverse, e uno + storico non si chiude più per il «non ce n'è altro» di una risposta che parla d'altro. L'elenco dei seguiti non salva + i profili suggeriti. +- Il visualizzatore delle raccolte funziona anche se l'indirizzo non dice quale contenuto è a video, e si chiude + sempre, anche dopo un errore imprevisto. +- Una ricetta che la configurazione non lascia girare risulta «Da configurare»: non conta più come guasto, non viene + sospesa e non si ripianifica. Al primo avvio con i file nuovi le ricette sospese per colpa dei file vecchi ripartono + da sole, con una riga in Attività. +- Barra laterale: dice «Collegato» quando il cookie di sessione c'è, anche se il nome dell'account non è ancora noto. +- «Post singolo»: i controlli accodati per recuperare un indirizzo scaduto o completare una serie non vengono più + annullati dalla coda prima di partire. + Sviluppo e qualità: +- `febe-sonda da-har`: un HAR esportato dal browser diventa campioni grezzi da ripulire con `ripulisci` e + `verifica`; `tools/bersagli/raccogli-bersagli.js` raccoglie in sola lettura ruolo e nome dei comandi. +- La ripulitura tiene `latest_reel_media` come data e mette un riempitivo neutro sotto le chiavi che sembrano segreti, + così gitleaks non scambia i dati finti per segreti veri. + - Prove dell'interfaccia senza attese a tempo fisso (#8): le risposte in ritardo si trattengono finché la prova non le rilascia, e ciò che non deve succedere si controlla quando la pagina ha finito le sue richieste. Restano verdi anche con Chrome rallentato 20 volte. diff --git a/README.md b/README.md index 6a2342d..2daff2b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ Febe non costruisce richieste verso Instagram: usa un browser vero, in cui Alber > Scaricare con un programma è contro le condizioni d'uso di Instagram. Febe va piano per ridurre il rischio per l'account, ma non può azzerarlo. -**Stato: versione 0.1.1, anteprima.** Il programma è completo e provato contro un sito di prova locale; prima di usarlo su Instagram serve la sonda di M0 (vedi [docs/stato.md](docs/stato.md)). +**Stato: versione 0.1.1, anteprima.** Il programma è completo e provato contro un sito di prova locale. Dal 25 ottobre 2026 legge le risposte vere di Instagram (lettori scritti su risposte reali ripulite); storie e raccolte aspettano i bersagli dei comandi, e nulla è ancora stato provato dal vivo (vedi [docs/stato.md](docs/stato.md)). ## Documenti diff --git a/docs/decisioni.md b/docs/decisioni.md index 000ae3d..facf2f2 100644 --- a/docs/decisioni.md +++ b/docs/decisioni.md @@ -293,3 +293,23 @@ Ogni scelta tecnica presa strada facendo, con data e motivo (specifica §15). | 2026-10-21 | Il lavoro «controlli» legge anche gli script Node della CI (`node --check .gitea/scripts/*.js`) | Come `bash -n` per gli script di shell: un errore di sintassi in `versioni-registro.js` si vede in pochi secondi, non alla pulizia del lunedì | | 2026-10-21 | Nei modi «settimanale» e «completa» la pulizia legge lo store delle immagini del demone (`docker info --format '{{json .DriverStatus}}'`: con `io.containerd.snapshotter.v1` è quello di containerd, altrimenti il classico) e lo scrive all'inizio; con containerd, o se non lo sa, la prova avverte che le età che elenca sono solo indicative | Da quando contano le 24 ore di `image prune --filter until` dipende dallo store (rilievo della revisione). Con quello classico Docker confronta il `Created` della configurazione, cioè la costruzione (moby, `daemon/images/image_prune.go`: `img.Created.After(until)`); con quello di containerd il `CreatedAt` del record dell'immagine sul demone (`daemon/containerd/image_list.go`: `image.CreatedAt.Before(until)`), che containerd conserva quando lo stesso nome viene riscaricato. Nessun comando mostra quel `CreatedAt` (`docker image ls` dà il `Created` della configurazione anche con containerd), quindi la prova resta sull'età dalla costruzione e lo dice. Lo store di containerd è il predefinito nelle installazioni nuove di Docker Engine dalla 29; su Unraid è più probabile quello classico. `docker info` solo legge | | 2026-10-21 | Della pulizia del lunedì si dice anche che cosa `image prune -a` toglie alle immagini che un contenitore usa: i nomi in più. La pulizia vera confronta i nomi prima e dopo e scrive, nome per nome, quelli tolti a un'immagine che resta; la prova li stima secondo lo store (classico: tutti tranne l'ultimo in ordine alfabetico del nome completo, `docker.io/library/…` per Docker Hub; containerd: tutti tranne quelli da cui i contenitori sono stati creati, e l'ultimo se un contenitore la usa per identificativo). Il comando resta quello chiesto | Rilievo della revisione: la prova saltava ogni immagine in uso, e i documenti dicevano che un'immagine usata da un contenitore non si tocca. Docker non toglie l'immagine, ma con lo store classico `ImagesPrune` non guarda i contenitori e chiama `ImageDelete` senza forza su ogni riferimento, in ordine alfabetico (`daemon/images/image_prune.go`, uguale in moby v24.0.9, v27.5.1 e master; `reference/store.go`, `lexicalRefs`); `ImageDelete` rifiuta solo l'ultimo riferimento di un'immagine in uso (`image_delete.go`, `isSingleReference`), quindi può sparire proprio il nome da cui il contenitore è stato creato (un'applicazione di Unraid creata da `app:1.2` che si chiama anche `app:latest`). Con containerd `filterImagesUsedByContainers` protegge solo il nome di `Config.Image` e, se il contenitore usa l'immagine per identificativo o digest, l'ultimo nome (`daemon/containerd/image_prune.go`). Il demone finto delle prove fa lo stesso con l'uno e con l'altro store | +| 2026-10-25 | I primi campioni reali di Instagram vengono dal file HAR che Alberto ha esportato dal suo browser il 21 ottobre (DevTools, filtro Fetch/XHR), non dalla sonda: le sole risposte utili sono state convertite nel formato grezzo della sonda in una cartella temporanea fuori dal repository, accorciate dal lato grezzo (raccolte: 2 per 4 contenuti, scelti fra foto, video con audio e video senza; pagina successiva: 1 per 3; profili suggeriti: i primi 3), ripulite con `febe-sonda ripulisci` e controllate con `febe-sonda verifica` («Verifica superata»). Del HAR si è letta solo la forma (percorsi, tipi, chiavi), mai valori, intestazioni o cookie; i grezzi convertiti si cancellano a fine lavoro | Richiesta di Alberto del 25 ottobre («vedi tu quale ti risulta più utile»: HAR o guida). La guida descrive richieste costruite a mano verso l'API, con intestazioni copiate, vietate dalle regole 2–4 di §2, e un formato (`GraphImage`, `edge_sidecar_to_children`) che nel HAR non compare: non si usa. Il HAR invece è ciò che la pagina riceve davvero, cioè il campione reale che chiede la regola 10. Accorciare dal lato grezzo tiene i campioni piccoli senza cambiarne la forma; la ripulitura costruisce l'elenco dei frammenti sensibili da tutto il grezzo, quindi accorciare dopo non servirebbe | +| 2026-10-25 | La cattura legge come dati anche le risposte `text/javascript` (e ogni tipo che contiene «javascript») che la pagina chiede da sé (risorsa XHR o Fetch), oltre a quelle dichiarate JSON; i file di script non si leggono mai. Una sola regola, `DataResponses.IsData`, per `ResponseTap` e `CaptureCollector` | Nel HAR tutte le risposte GraphQL (`/graphql/query`, `/api/graphql`: storie, raccolte, ricerca) sono `text/javascript`; solo le REST (`/api/v1/…`) sono `application/json`. Con la regola di prima Febe scartava proprio i dati di storie e raccolte: è il motivo per cui non leggeva nulla. Le risposte con il prefisso `for (;;);` (`/ajax/…`: definizioni delle pagine, registri di navigazione) non sono JSON e non portano contenuti: restano scartate | +| 2026-10-25 | Del documento principale di una pagina del sito (`text/html`, cornice principale) si leggono i blocchi ` + + + + """; + cdp.Responder = (method, p) => method switch + { + "Page.getFrameTree" => new JsonObject { ["frameTree"] = new JsonObject { ["frame"] = new JsonObject { ["id"] = "F1", ["url"] = "about:blank" } } }, + "Network.getResponseBody" when p!["requestId"]!.GetValue() == "L7" => new JsonObject { ["body"] = html, ["base64Encoded"] = false }, + "Network.getResponseBody" when p!["requestId"]!.GetValue() == "r10" => new JsonObject { ["body"] = """{"d":4}""", ["base64Encoded"] = false }, + "Network.getResponseBody" => new JsonObject { ["body"] = "niente", ["base64Encoded"] = false }, + _ => null, + }; + var failing = new FailingConsumer(); + var consumer = new CollectingConsumer(); + var observer = new CollectingObserver(); + await using var tap = new ResponseTap(cdp, Hosts, clock); + tap.AddConsumer(failing); + tap.AddConsumer(consumer); + tap.AddObserver(observer); + await tap.StartAsync(); + + // The frame commits the new document before its body has finished loading: the body is still read. + cdp.Raise("Network.responseReceived", Document("L7", "http://127.0.0.1:5000/marta.prova/")); + cdp.Raise("Page.frameNavigated", new JsonObject { ["frame"] = new JsonObject { ["id"] = "F1", ["loaderId"] = "L7", ["url"] = "http://127.0.0.1:5000/marta.prova/" } }); + cdp.Raise("Network.loadingFinished", new JsonObject { ["requestId"] = "L7", ["encodedDataLength"] = html.Length }); + + // A document without embedded JSON gives nothing; one of another host is not even fetched. A data answer after + // them: the worker reads in order, so once it has arrived the documents have been dealt with. + cdp.Raise("Network.responseReceived", Document("L8", "http://127.0.0.1:5000/vuota/")); + cdp.Raise("Network.loadingFinished", new JsonObject { ["requestId"] = "L8", ["encodedDataLength"] = 30 }); + cdp.Raise("Network.responseReceived", Document("L9", "https://esterno.example/")); + cdp.Raise("Network.loadingFinished", new JsonObject { ["requestId"] = "L9", ["encodedDataLength"] = 30 }); + cdp.Raise("Network.responseReceived", Received("r10", "http://127.0.0.1:5000/api/dopo", 200, "application/json")); + cdp.Raise("Network.loadingFinished", new JsonObject { ["requestId"] = "r10", ["encodedDataLength"] = 7 }); + await WaitUntilAsync(() => consumer.Items.Any(i => i.Descriptor.RequestId == "r10")); + + // One answer per valid block, in the order of the document, each with the document's descriptor: a block that + // is not JSON, is too deep or is blank is left out without being a parse error. + var blocks = consumer.Items.Where(i => i.Descriptor.RequestId == "L7").ToList(); + CollectionAssert.AreEqual(new[] { """{"a":1}""", """{"c":[3]}""" }, blocks.Select(b => b.Json).ToArray()); + Assert.IsTrue(blocks.All(b => b.Descriptor.IsMainFrameDocument && b.Descriptor.MimeType == "text/html" && b.Descriptor.Path == "/marta.prova/")); + Assert.AreEqual(0, tap.Stats.ParseErrors); + Assert.AreEqual(3, tap.Stats.JsonBodies, "Two blocks and the answer after them."); + + // A reader that fails on a block stops neither the other readers, nor the next block, nor the next answer. + Assert.AreEqual(3, failing.Calls); + + // Those who wait for a body are told once when nothing reached the readers, never when blocks did. + Assert.IsFalse(observer.Dropped.Contains("L7")); + Assert.AreEqual(1, observer.Dropped.Count(id => id == "L8")); + Assert.IsFalse(cdp.Sent.Any(c => c.Method == "Network.getResponseBody" && c.Parameters?["requestId"]?.GetValue() == "L9")); + } + + [TestMethod] + public async Task ThePaginationOfAnEmbeddedBlockStaysWithTheBlockThatCarriesIt() + { + // Two real answers (cleaned samples of the HAR of 21/10/2026) embedded in one page document: first the + // collections, which say «has_next_page: true» of themselves, then a post, which says «more_available: false» + // of itself. Read as one answer, the post took the first pagination of the document, the collections'. + var clock = new VirtualClock(); + var cdp = new FakeCdpSession(clock); + var html = $""" + + + """; + cdp.Responder = (method, p) => method switch + { + "Page.getFrameTree" => new JsonObject { ["frameTree"] = new JsonObject { ["frame"] = new JsonObject { ["id"] = "F1", ["url"] = "about:blank" } } }, + "Network.getResponseBody" when p!["requestId"]!.GetValue() == "L7" => new JsonObject { ["body"] = Convert.ToBase64String(Encoding.UTF8.GetBytes(html)), ["base64Encoded"] = true }, + "Network.getResponseBody" => new JsonObject { ["body"] = """{"segni":[1]}""", ["base64Encoded"] = false }, + _ => null, + }; + var capture = new CaptureCollector(new ShapeReader(ReaderVocabulary.LoadInstagram()), clock); + var after = new CollectingConsumer(); + await using var tap = new ResponseTap(cdp, Hosts, clock); + tap.AddConsumer(capture); + tap.AddObserver(capture); + tap.AddConsumer(after); + await tap.StartAsync(); + + cdp.Raise("Network.responseReceived", Document("L7", "http://127.0.0.1:5000/marta.prova/")); + cdp.Raise("Network.loadingFinished", new JsonObject { ["requestId"] = "L7", ["encodedDataLength"] = html.Length }); + cdp.Raise("Network.responseReceived", Received("r2", "http://127.0.0.1:5000/api/dopo", 200, "application/json")); + cdp.Raise("Network.loadingFinished", new JsonObject { ["requestId"] = "r2", ["encodedDataLength"] = 7 }); + await WaitUntilAsync(() => after.Items.Any(i => i.Descriptor.RequestId == "r2")); + + var reads = capture.Since(0); + Assert.AreEqual(2, reads.Count, "One read per block (the answer after them is not about contents)."); + Assert.IsTrue(reads.All(r => r.Response.RequestId == "L7" && r.Response.IsMainFrameDocument)); + var collections = reads[0].Result; + Assert.AreEqual(2, collections.Highlights.Count); + Assert.AreEqual(true, collections.Page?.HasMore); + Assert.IsFalse(string.IsNullOrEmpty(collections.Page?.Cursor)); + var post = reads[1].Result; + Assert.AreEqual(0, post.Highlights.Count); + Assert.AreEqual(1, post.Contents.Count); + Assert.AreEqual(false, post.Page?.HasMore, "The post's own pagination, not the collections'."); + Assert.IsNull(post.Page?.Cursor); + Assert.AreEqual(0, capture.Pending, "Nothing is left on its way."); + } + + [TestMethod] + public async Task BodiesThatWillNotComeAreReportedToObservers() + { + var clock = new VirtualClock(); + var cdp = new FakeCdpSession(clock); + cdp.Responder = (method, _) => method == "Page.getFrameTree" + ? new JsonObject { ["frameTree"] = new JsonObject { ["frame"] = new JsonObject { ["id"] = "F1", ["url"] = "about:blank" } } } + : null; + var observer = new CollectingObserver(); + await using var tap = new ResponseTap(cdp, Hosts, clock, options: new ResponseTapOptions { MaxBodyBytes = 100 }); + tap.AddConsumer(new CollectingConsumer()); + tap.AddObserver(observer); + await tap.StartAsync(); + + cdp.Raise("Network.responseReceived", Received("big", "http://127.0.0.1:5000/a", 200, "application/json")); + cdp.Raise("Network.loadingFinished", new JsonObject { ["requestId"] = "big", ["encodedDataLength"] = 1000 }); + cdp.Raise("Network.responseReceived", Received("fail", "http://127.0.0.1:5000/b", 200, "application/json")); + cdp.Raise("Network.loadingFailed", new JsonObject { ["requestId"] = "fail" }); + cdp.Raise("Network.responseReceived", Received("old", "http://127.0.0.1:5000/c", 200, "application/json")); + cdp.Raise("Page.frameNavigated", new JsonObject { ["frame"] = new JsonObject { ["id"] = "F1", ["loaderId"] = "L2", ["url"] = "http://127.0.0.1:5000/altra/" } }); + + CollectionAssert.AreEquivalent(new[] { "big", "fail", "old" }, observer.Dropped.ToArray()); + } + [TestMethod] public async Task MainFrameNavigationsAreReported() { @@ -229,15 +399,25 @@ public sealed class CaptureUnitTests Assert.IsFalse(gate.IsDriving); } - private static JsonObject Received(string id, string url, int status, string mime) => new() + private static JsonObject Received(string id, string url, int status, string mime, string type = "Fetch") => new() { ["requestId"] = id, ["loaderId"] = "L1", ["frameId"] = "F1", - ["type"] = "Fetch", + ["type"] = type, ["response"] = new JsonObject { ["url"] = url, ["status"] = status, ["mimeType"] = mime }, }; + /// The response of a main-frame navigation: its request id is the loader id. + private static JsonObject Document(string loader, string url) => new() + { + ["requestId"] = loader, + ["loaderId"] = loader, + ["frameId"] = "F1", + ["type"] = "Document", + ["response"] = new JsonObject { ["url"] = url, ["status"] = 200, ["mimeType"] = "text/html; charset=utf-8" }, + }; + private static async Task WaitUntilAsync(Func condition) { for (var i = 0; i < 300 && !condition(); i++) @@ -248,17 +428,39 @@ public sealed class CaptureUnitTests Assert.IsTrue(condition(), "Condition not reached in time."); } + /// The body of a cleaned Instagram sample (tests/campioni/instagram), as JSON text. + private static string SampleBody(string name) + { + var file = Directory.EnumerateFiles(Path.Combine(AppContext.BaseDirectory, "campioni", "instagram"), $"*-{name}.json").Single(); + using var sample = JsonDocument.Parse(File.ReadAllText(file)); + return sample.RootElement.GetProperty("corpo").GetRawText(); + } + private sealed class CollectingConsumer : IResponseConsumer { - public ConcurrentBag<(ResponseDescriptor Descriptor, string Json)> Items { get; } = []; + /// In arrival order. + public ConcurrentQueue<(ResponseDescriptor Descriptor, string Json)> Items { get; } = new(); public ValueTask ConsumeAsync(ResponseDescriptor response, JsonDocument body, CancellationToken ct) { - Items.Add((response, body.RootElement.GetRawText())); + Items.Enqueue((response, body.RootElement.GetRawText())); return ValueTask.CompletedTask; } } + private sealed class FailingConsumer : IResponseConsumer + { + private int _calls; + + public int Calls => Volatile.Read(ref _calls); + + public ValueTask ConsumeAsync(ResponseDescriptor response, JsonDocument body, CancellationToken ct) + { + Interlocked.Increment(ref _calls); + throw new InvalidOperationException("Lettore di prova che fallisce sempre."); + } + } + private sealed class CollectingObserver : IResponseObserver { public ConcurrentQueue Responses { get; } = new(); @@ -267,7 +469,11 @@ public sealed class CaptureUnitTests public void OnResponse(ResponseDescriptor response) => Responses.Enqueue(response); + public ConcurrentQueue Dropped { get; } = new(); + public void OnNavigation(NavigationDescriptor navigation) => Navigations.Enqueue(navigation); + + public void OnBodyDropped(string requestId) => Dropped.Enqueue(requestId); } private sealed class SyncProgress(List values) : IProgress diff --git a/tests/Febe.Tests/Collection/CollectionUnitTests.cs b/tests/Febe.Tests/Collection/CollectionUnitTests.cs index 068ee0e..012c66e 100644 --- a/tests/Febe.Tests/Collection/CollectionUnitTests.cs +++ b/tests/Febe.Tests/Collection/CollectionUnitTests.cs @@ -34,11 +34,46 @@ public sealed class CollectionUnitTests } [TestMethod] - public void TheInstagramMapIsASkeletonWithEveryEntryEmpty() + public void TheInstagramMapHasThePagesSeenInRealTrafficAndNoTargetYet() { var map = SiteMap.LoadInstagram(); Assert.AreEqual("instagram", map.Site); - Assert.AreEqual(SitePages.All.Count + SiteTargets.All.Count, map.Missing(SitePages.All, SiteTargets.All).Count, "Nothing is filled in before M0."); + + // Pages: only those with evidence in the HAR of 21 October 2026 (Instagram's own route templates and the + // Referer of the page's requests). The others have none and stay empty. + string[] filled = [SitePages.Home, SitePages.Profile, SitePages.Post, SitePages.StoryViewer, SitePages.HighlightViewer]; + string[] empty = [SitePages.ProfileFrom, SitePages.ReelsFrom, SitePages.TaggedFrom, SitePages.Following, SitePages.FollowingFrom]; + CollectionAssert.AreEquivalent(SitePages.All.ToArray(), filled.Concat(empty).ToArray(), "Every page is decided."); + Assert.IsTrue(filled.All(map.HasPage)); + CollectionAssert.AreEquivalent(empty.Select(p => $"pagina «{p}»").ToArray(), map.Missing(SitePages.All, []).ToArray()); + + Assert.AreEqual("/", map.BuildPath(SitePages.Home)); + Assert.AreEqual("/mario.rossi/", map.BuildPath(SitePages.Profile, new Dictionary { ["username"] = "mario.rossi" })); + Assert.AreEqual("/p/Abc_12-xYz9/", map.BuildPath(SitePages.Post, new Dictionary { ["code"] = "Abc_12-xYz9" })); + Assert.IsNotNull(map.Match(SitePages.Home, "/")); + Assert.IsNull(map.Match(SitePages.Home, "/mario.rossi/")); + Assert.AreEqual("mario.rossi", map.Match(SitePages.Profile, "/mario.rossi/")!["username"]); + + // Viewers: matched only, never opened. The story viewer carries the account and the story shown. + var story = map.Match(SitePages.StoryViewer, "/stories/mario/3456789012345678901/"); + Assert.AreEqual("mario", story!["username"]); + Assert.AreEqual("3456789012345678901", story["id"]); + Assert.IsNull(map.Match(SitePages.StoryViewer, "/stories/mario/"), "Without the story id the shape does not match (to be confirmed live)."); + Assert.IsNull(map.Match(SitePages.HighlightViewer, "/stories/mario/3456789012345678901/")); + + // The highlight viewer: the 17 digits of the collection and no item id (the address stays the same while watching). + var highlight = map.Match(SitePages.HighlightViewer, "/stories/highlights/17841400000000000/"); + CollectionAssert.AreEquivalent(new[] { "highlight" }, highlight!.Keys.ToArray()); + Assert.AreEqual("17841400000000000", highlight["highlight"]); + + // Overlap: a highlight address also has the story viewer's shape, with «highlights» as user name. The story + // recipe then sees «another account» and closes; the highlight recipe reads only its own page. + Assert.AreEqual("highlights", map.Match(SitePages.StoryViewer, "/stories/highlights/17841400000000000/")!["username"]); + + // Targets: none has evidence yet (the HAR had no documents and no element attributes). + var missingTargets = map.Missing([], SiteTargets.All); + Assert.AreEqual(SiteTargets.All.Count, missingTargets.Count); + Assert.IsTrue(missingTargets.All(m => m.EndsWith("(vuoto)", StringComparison.Ordinal)), "Every target is listed, still empty."); // The browser layer reads the same file: every target is a placeholder and is never looked up in the page. var targets = TargetMap.LoadEmbedded("bersagli.instagram.json"); @@ -49,47 +84,77 @@ public sealed class CollectionUnitTests Assert.AreEqual(TargetStatus.NotConfigured, lookup.Status); Assert.AreEqual(0, cdp.Sent.Count, "A placeholder never reaches the page."); StringAssert.Contains(lookup.Message, "H11"); + + // The copy next to the executable is the same map. + var copy = SiteMap.Load(Path.Combine(AppContext.BaseDirectory, "config", "bersagli.instagram.json")); + CollectionAssert.AreEquivalent(map.Missing(SitePages.All, SiteTargets.All).ToArray(), copy.Missing(SitePages.All, SiteTargets.All).ToArray()); } [TestMethod] - public async Task RecipesRefuseToRunOnInstagramWhileTheMapOrTheReadersAreSkeletons() + public async Task OnInstagramOnlyRecipesThatNeedNoTargetGetPastTheMap() { using var temp = new TempFolder("ricette"); await using var db = await TestDatabase.OpenAsync(temp); var clock = new VirtualClock(); var governor = new PermissiveGovernor(); var session = new TestSession((await db.Sessions.StartAsync(clock.Now)).Id); - RecipeEnvironment Environment(SiteMap map, ReaderVocabulary vocabulary) => new() + + // The Instagram vocabulary is confirmed on real samples. To see which recipes get past the map without letting + // any of them reach the page, the runs use a copy marked as a hypothesis: the readers' gate comes right after + // the map's and stops them there. + Assert.IsTrue(ReaderVocabulary.LoadInstagram().IsUsable, ReaderVocabulary.LoadInstagram().UnusableReason); + var stopper = ReaderVocabulary.LoadInstagram() with { Status = VocabularyStatus.Hypothesis }; + Task RunAsync(RecipeKind kind) => new RecipeRunner(new RecipeEnvironment { Driver = new UntouchableDriver(), - Capture = new CaptureCollector(new ShapeReader(vocabulary), clock), + Capture = new CaptureCollector(new ShapeReader(stopper), clock), Governor = governor, Signals = new SignalDetector(SignalRules.LoadDefault(), new RecordingBreaker(), clock), Storage = db, - SiteMap = map, + SiteMap = SiteMap.LoadInstagram(), Clock = clock, Random = new SeededRandom(1), - }; + }).RunAsync(new RecipeRequest(kind, 1), session, CancellationToken.None); - foreach (var kind in Enum.GetValues().Where(k => k != RecipeKind.FollowingSweep)) + static void Refused(RecipeKind kind, RecipeOutcome outcome, string missing) { - var outcome = await new RecipeRunner(Environment(SiteMap.LoadInstagram(), ReaderVocabulary.LoadTestSite())) - .RunAsync(new RecipeRequest(kind, 1), session, CancellationToken.None); - Assert.AreEqual(RecipeStatus.TargetNotFound, outcome.Status, kind.ToString()); + Assert.AreEqual(RecipeStatus.NotConfigured, outcome.Status, kind.ToString()); StringAssert.Contains(outcome.Message, "mappa dei bersagli non è ancora compilata"); + StringAssert.Contains(outcome.Message, missing, kind.ToString()); } - var sweep = await new RecipeRunner(Environment(SiteMap.LoadInstagram(), ReaderVocabulary.LoadTestSite())) - .RunAsync(new RecipeRequest(RecipeKind.FollowingSweep), session, CancellationToken.None); - StringAssert.Contains(sweep.Message, "pagina «home»"); + static void Passed(RecipeKind kind, RecipeOutcome outcome) + { + Assert.AreEqual(RecipeStatus.NotConfigured, outcome.Status, $"{kind}: {outcome.Message}"); + StringAssert.Contains(outcome.Message, "ipotesi", kind.ToString()); + } - var readers = await new RecipeRunner(Environment(SiteMap.LoadTestSite(), ReaderVocabulary.LoadInstagram())) - .RunAsync(new RecipeRequest(RecipeKind.FollowingSweep), session, CancellationToken.None); - Assert.AreEqual(RecipeStatus.UnrecognizedFormat, readers.Status); - StringAssert.Contains(readers.Message, "ipotesi"); + // Recipes that click something: every target is still empty (H11), while their pages are all there. + foreach (var kind in new[] { RecipeKind.AccountStories, RecipeKind.Highlight, RecipeKind.Tagged, RecipeKind.Reels }) + { + var outcome = await RunAsync(kind); + Refused(kind, outcome, "(vuoto)"); + Assert.IsFalse(outcome.Message!.Contains("pagina «", StringComparison.Ordinal), $"{kind}: {outcome.Message}"); + } + + // Recipes that only open pages. + Passed(RecipeKind.FollowingSweep, await RunAsync(RecipeKind.FollowingSweep)); + Passed(RecipeKind.SinglePost, await RunAsync(RecipeKind.SinglePost)); + + // The profile check and the backfill need no target: the «not found» marker is looked up only when configured. + foreach (var kind in new[] { RecipeKind.ProfileCheck, RecipeKind.Backfill }) + { + Assert.IsFalse(RecipeRunner.Requirements(kind).Targets.Contains(SiteTargets.ProfileNotFound), kind.ToString()); + Passed(kind, await RunAsync(kind)); + } + + // No evidence of the address of the following list. + Refused(RecipeKind.FollowingList, await RunAsync(RecipeKind.FollowingList), $"pagina «{SitePages.Following}»"); Assert.AreEqual(0, governor.Requests.Count, "No permit asked, no gesture, no page."); - Assert.IsTrue((await db.Events.ListAsync(new EventQuery())).Any(e => e.Code == "mappa-incompleta")); + var events = await db.Events.ListAsync(new EventQuery()); + Assert.IsTrue(events.Any(e => e.Code == "mappa-incompleta")); + Assert.IsTrue(events.Any(e => e.Code == "lettori-incompleti")); } [TestMethod] diff --git a/tests/Febe.Tests/Collection/HarImportTests.cs b/tests/Febe.Tests/Collection/HarImportTests.cs new file mode 100644 index 0000000..3797c32 --- /dev/null +++ b/tests/Febe.Tests/Collection/HarImportTests.cs @@ -0,0 +1,263 @@ +using System.Text; +using System.Text.Json.Nodes; +using Febe.Sonda; +using Febe.Tests.Support; + +namespace Febe.Tests.Collection; + +/// +/// The tools with which Alberto provides evidence from his own browser: the conversion of a HAR into the probe's raw +/// format (febe-sonda da-har) and the targets snippet for the DevTools console. The HAR is synthetic, written by +/// the test: invented generic values, nothing that claims to be Instagram's format. +/// +[TestClass] +public sealed class HarImportTests +{ + private const string FirstBody = """{"dati":{"elementi":[{"numero":"5512345678","nome":"mario.rossi","larghezza":1080}]}}"""; + private const string SecondBody = """{"stato":"ok","persone":[{"nome":"lucia.bianchi"}]}"""; + private const string EmbeddedBlock = """{"profilo":{"nome":"mario.rossi","privato":false}}"""; + private const string SecondEmbeddedBlock = """{"pagina":{"altre":false},"elementi":[]}"""; + + /// The request parameter that names a GraphQL operation (the only part of a request body ever read). + private const string Operation = HarImporter.OperationParameter; + + [TestMethod] + public void OnlyDataAnswersOfTheSiteAndEmbeddedDataAreKeptWithoutHeadersCookiesOrQueries() + { + using var temp = new TempFolder("har"); + var har = temp.Combine("prova.har"); + File.WriteAllText(har, SyntheticHar().ToJsonString()); + var raw = temp.Combine("grezzi"); + + var report = HarImporter.Import(har, raw); + Assert.AreEqual(new HarImportReport(Entries: 12, DataResponses: 4, Documents: 1, DocumentBlocks: 2, OtherHosts: 2, NotData: 2, WithoutBody: 1, NotJson: 1, DocumentsWithoutData: 1), report); + Assert.AreEqual(6, report.Written); + + // Flat files named by number and kind: a GraphQL operation name only when it is one, never a path. + CollectionAssert.AreEqual( + new[] { "000001-ProvaElencoQuery.json", "000002-risposta.json", "000003-ProvaPaginaSuccessivaQuery.json", "000004-risposta.json", "000005-documento.json", "000006-documento.json", "LEGGIMI.txt" }, + Directory.GetFiles(raw).Select(Path.GetFileName).Order(StringComparer.Ordinal).ToArray()); + + // Headers, cookies, query strings and request bodies never reach the output. + foreach (var file in Directory.GetFiles(raw)) + { + var text = File.ReadAllText(file); + foreach (var secret in new[] { "segreto", "sessionid", "cookie", "igsh", "variables", "pacchetto", "nascosto", "payload", "esterno" }) + { + Assert.IsFalse(text.Contains(secret, StringComparison.OrdinalIgnoreCase), $"{Path.GetFileName(file)}: {secret}"); + } + } + + var first = Sample(raw, "000001-ProvaElencoQuery.json"); + var descriptor = first["descrittore"]!; + Assert.AreEqual("https://www.instagram.com/graphql/query", descriptor["indirizzo"]!.GetValue()); + Assert.AreEqual("sito", descriptor["host"]!.GetValue()); + Assert.AreEqual(200, descriptor["stato"]!.GetValue()); + Assert.AreEqual("text/javascript", descriptor["tipo"]!.GetValue(), "Lower case, no parameters."); + Assert.AreEqual("XHR", descriptor["risorsa"]!.GetValue()); + Assert.AreEqual("2026-10-21T15:35:04Z", descriptor["quando"]!.GetValue(), "UTC, to the second."); + Assert.IsTrue(JsonNode.DeepEquals(JsonNode.Parse(FirstBody), first["corpo"]), "The base64 body, decoded and parsed."); + CollectionAssert.AreEquivalent(new[] { "descrittore", "corpo" }, first.AsObject().Select(p => p.Key).ToArray()); + + var second = Sample(raw, "000002-risposta.json"); + Assert.AreEqual("https://www.instagram.com/api/v1/prova/mario.rossi/info/", second["descrittore"]!["indirizzo"]!.GetValue()); + Assert.AreEqual("Fetch", second["descrittore"]!["risorsa"]!.GetValue()); + Assert.AreEqual("application/json", second["descrittore"]!["tipo"]!.GetValue()); + Assert.IsTrue(JsonNode.DeepEquals(JsonNode.Parse(SecondBody), second["corpo"])); + + // A page document: one sample per valid JSON block it embeds, in order and with the document's descriptor, as + // Febe's capture hands them to the readers; nothing of its scripts. + var page = Sample(raw, "000005-documento.json"); + Assert.AreEqual("Document", page["descrittore"]!["risorsa"]!.GetValue()); + Assert.AreEqual("text/html", page["descrittore"]!["tipo"]!.GetValue()); + Assert.AreEqual("https://www.instagram.com/mario.rossi/", page["descrittore"]!["indirizzo"]!.GetValue()); + Assert.IsTrue(JsonNode.DeepEquals(JsonNode.Parse(EmbeddedBlock), page["corpo"])); + var nextBlock = Sample(raw, "000006-documento.json"); + Assert.IsTrue(JsonNode.DeepEquals(page["descrittore"], nextBlock["descrittore"])); + Assert.IsTrue(JsonNode.DeepEquals(JsonNode.Parse(SecondEmbeddedBlock), nextBlock["corpo"])); + + // The folder is a raw folder like the probe's: «ripulisci» and «verifica» work on it unchanged. + var clean = temp.Combine("ripuliti"); + var cleaned = new SampleSanitizer(key: new byte[32]).SanitizeFolder(raw, clean); + Assert.AreEqual(6, cleaned.Files); + var verify = SampleVerifier.Verify(raw, clean); + Assert.IsTrue(verify.Passed, string.Join("; ", verify.Leaks.Select(l => $"{l.CleanFile} {l.Length} {l.Kind}"))); + Assert.IsFalse(File.ReadAllText(Path.Combine(clean, "000001-ProvaElencoQuery.json")).Contains("mario", StringComparison.Ordinal)); + } + + [TestMethod] + public void TheConversionRefusesRepositoriesUsedFoldersAndFilesThatAreNotAHar() + { + using var temp = new TempFolder("har"); + var har = temp.Combine("prova.har"); + File.WriteAllText(har, SyntheticHar().ToJsonString()); + + // Raw output inside a repository: refused before anything is written. + Directory.CreateDirectory(temp.Combine("progetto", ".git")); + var inside = temp.Combine("progetto", "grezzi"); + StringAssert.Contains(Assert.ThrowsExactly(() => HarImporter.Import(har, inside)).Message, "fuori dal repository"); + Assert.IsFalse(Directory.Exists(inside)); + + // The HAR itself holds cookies: it is not read from inside a repository either. + var harInside = temp.Combine("progetto", "prova.har"); + File.Copy(har, harInside); + Assert.ThrowsExactly(() => HarImporter.Import(harInside, temp.Combine("altrove"))); + + // A folder that is already in use: refused, nothing is mixed or overwritten. + var used = Directory.CreateDirectory(temp.Combine("usata")).FullName; + File.WriteAllText(Path.Combine(used, "000001-risposta.json"), "{}"); + StringAssert.Contains(Assert.ThrowsExactly(() => HarImporter.Import(har, used)).Message, "non è vuota"); + Assert.AreEqual("{}", File.ReadAllText(Path.Combine(used, "000001-risposta.json"))); + + Assert.ThrowsExactly(() => HarImporter.Import(temp.Combine("manca.har"), temp.Combine("nuova1"))); + File.WriteAllText(temp.Combine("non-har.har"), """{"altro":[]}"""); + Assert.ThrowsExactly(() => HarImporter.Import(temp.Combine("non-har.har"), temp.Combine("nuova2"))); + File.WriteAllText(temp.Combine("rotto.har"), "{\"log\":"); + Assert.ThrowsExactly(() => HarImporter.Import(temp.Combine("rotto.har"), temp.Combine("nuova3"))); + File.WriteAllText(temp.Combine("elenco.har"), "[1,2]"); + Assert.ThrowsExactly(() => HarImporter.Import(temp.Combine("elenco.har"), temp.Combine("nuova4"))); + Assert.IsFalse(Directory.Exists(temp.Combine("nuova4")), "Nothing is created for a file that is not a HAR."); + } + + [TestMethod] + public void OnlyNamesOfTheSiteCodeNameAFile() + { + Assert.AreEqual("PolarisStoriesV3HighlightsPageQuery", HarImporter.OperationName("PolarisStoriesV3HighlightsPageQuery")); + Assert.AreEqual("usePolarisRegisterInRecentSearchesMutation", HarImporter.OperationName(" usePolarisRegisterInRecentSearchesMutation ")); + Assert.AreEqual("ProvaAggiornamentiSubscription", HarImporter.OperationName("ProvaAggiornamentiSubscription")); + foreach (var value in new[] { null, "", "Query", "mario.rossi", "mario_rossi", "Pagina di mario Query", "Profilo12345Query", "/mario.rossi/Query", "ProvaElenco" }) + { + Assert.IsNull(HarImporter.OperationName(value), value ?? "null"); + } + } + + [TestMethod] + public void TheTargetsSnippetOnlyListensAndReads() + { + var path = Febe.Tests.Desktop.Support.Repository.PathOf("tools", "bersagli", "raccogli-bersagli.js"); + var script = File.ReadAllText(path); + + // The same deny-list as Febe's own page scripts: no gesture, no DOM change, no request, no cookie or storage. + Febe.Browser.Cdp.ReadOnlyScriptGuard.EnsureReadOnly(script); + foreach (var word in new[] { "preventDefault", "stopPropagation", "stopImmediatePropagation", "postMessage", "document.cookie", "cookieStore", "Storage", "indexedDB", "fetch(", "XMLHttpRequest", "sendBeacon", "WebSocket", "new Image", "innerHTML", "outerHTML", "classList", ".style", "setAttribute", "removeAttribute", "eval(", "Function(", "open(" }) + { + Assert.IsFalse(script.Contains(word, StringComparison.Ordinal), word); + } + + // One capturing click listener, and the function that copies the records. + foreach (var part in new[] { "addEventListener('click', onClick, { capture: true, passive: true })", "globalThis.febeBersagli = ", "copy(text)" }) + { + Assert.IsTrue(script.Contains(part, StringComparison.Ordinal), part); + } + + Assert.AreEqual(1, script.Split("addEventListener").Length - 1, "A single listener."); + Assert.IsTrue(File.Exists(Path.Combine(Path.GetDirectoryName(path)!, "LEGGIMI.md"))); + } + + private static JsonNode Sample(string folder, string name) => JsonNode.Parse(File.ReadAllText(Path.Combine(folder, name)))!; + + private static string Base64(string text) => Convert.ToBase64String(Encoding.UTF8.GetBytes(text)); + + private static JsonObject SyntheticHar() + { + static JsonArray Headers(params (string Name, string Value)[] headers) => + [.. headers.Select(h => (JsonNode)new JsonObject { ["name"] = h.Name, ["value"] = h.Value })]; + + static JsonObject Entry(string resourceType, string method, string url, int status, JsonObject content, JsonObject? postData = null, string started = "2026-10-21T17:35:04.512+02:00") + { + var request = new JsonObject + { + ["method"] = method, + ["url"] = url, + ["httpVersion"] = "h3", + ["headers"] = Headers(("Cookie", "sessionid=segreto-cookie; ds_user_id=segreto-cookie"), ("X-Prova", "segreto-intestazione")), + ["queryString"] = new JsonArray(new JsonObject { ["name"] = "variables", ["value"] = "segreto-indirizzo" }), + ["cookies"] = new JsonArray(new JsonObject { ["name"] = "sessionid", ["value"] = "segreto-cookie" }), + ["headersSize"] = -1, + ["bodySize"] = 0, + }; + if (postData is not null) + { + request["postData"] = postData; + } + + return new JsonObject + { + ["_resourceType"] = resourceType, + ["startedDateTime"] = started, + ["time"] = 123.4, + ["request"] = request, + ["response"] = new JsonObject + { + ["status"] = status, + ["statusText"] = "", + ["httpVersion"] = "h3", + ["headers"] = Headers(("Set-Cookie", "prova=segreto-risposta"), ("Content-Type", "text/plain; segreto-intestazione")), + ["cookies"] = new JsonArray(new JsonObject { ["name"] = "prova", ["value"] = "segreto-risposta" }), + ["content"] = content, + ["redirectURL"] = "", + }, + }; + } + + static JsonObject Content(string mime, string? text, bool base64 = false) + { + var content = new JsonObject { ["size"] = text?.Length ?? 0, ["mimeType"] = mime }; + if (text is not null) + { + content["text"] = base64 ? Base64(text) : text; + if (base64) + { + content["encoding"] = "base64"; + } + } + + return content; + } + + static JsonObject Form(string text, params (string Name, string Value)[] parameters) + { + var form = new JsonObject { ["mimeType"] = "application/x-www-form-urlencoded", ["text"] = text }; + if (parameters.Length > 0) + { + form["params"] = Headers(parameters); + } + + return form; + } + + var page = $$""" + + + + +

segreto-testo-della-pagina

+ """; + + return new JsonObject + { + ["log"] = new JsonObject + { + ["version"] = "1.2", + ["creator"] = new JsonObject { ["name"] = "WebInspector", ["version"] = "537.36" }, + ["pages"] = new JsonArray(), + ["entries"] = new JsonArray( + Entry("xhr", "POST", "https://www.instagram.com/graphql/query?variables=segreto-indirizzo", 200, Content("text/javascript; charset=utf-8", FirstBody, base64: true), + Form($"av=segreto-corpo&{Operation}=ProvaElencoQuery&variables=segreto-corpo", ("av", "segreto-corpo"), (Operation, "ProvaElencoQuery"), ("variables", "segreto-corpo"))), + Entry("fetch", "GET", "https://www.instagram.com/api/v1/prova/mario.rossi/info/?segreto=1", 200, Content("application/json", SecondBody)), + Entry("xhr", "POST", "https://www.instagram.com/graphql/query", 200, Content("application/json", """{"pagina":{"cursore":"QVFIUjBz","altre":true}}"""), + Form($"{Operation}=ProvaPaginaSuccessivaQuery&x=segreto-corpo")), + Entry("xhr", "POST", "https://www.instagram.com/api/graphql", 200, Content("text/javascript", """{"dati":{"vuoto":null}}"""), + Form($"{Operation}=mario.rossi", (Operation, "mario.rossi"))), + Entry("script", "GET", "https://www.instagram.com/static/pacchetto.js", 200, Content("text/javascript", "console.log('segreto-script')")), + Entry("image", "GET", "https://scontent.cdninstagram.com/v/foto.jpg?firma=segreto-indirizzo", 200, Content("image/jpeg", "segreto-immagine", base64: true)), + Entry("document", "GET", "https://www.instagram.com/mario.rossi/?igsh=segreto-indirizzo", 200, Content("text/html; charset=utf-8", page)), + Entry("xhr", "POST", "https://www.instagram.com/ajax/prova/", 200, Content("text/javascript", """for (;;);{"payload":{"segreto":1}}""")), + Entry("document", "GET", "https://www.instagram.com/altro/", 200, Content("text/html", "segreto-senza-dati")), + Entry("xhr", "GET", "https://www.instagram.com/api/v1/vuota/", 200, Content("application/json", null)), + Entry("fetch", "GET", "https://esterno.example/api/?segreto=1", 200, Content("application/json", """{"segreto":1}""")), + Entry("fetch", "GET", "https://scontent.cdninstagram.com/v/dati.json", 200, Content("application/json", """{"segreto":1}"""))), + }, + }; + } +} diff --git a/tests/Febe.Tests/Collection/InstagramReaderTests.cs b/tests/Febe.Tests/Collection/InstagramReaderTests.cs new file mode 100644 index 0000000..4708dfc --- /dev/null +++ b/tests/Febe.Tests/Collection/InstagramReaderTests.cs @@ -0,0 +1,374 @@ +using System.Text.Json; +using Febe.Core.Collection; +using Febe.Core.Collection.Readers; +using Febe.Core.Collection.Recipes; +using Febe.Core.Domain; + +namespace Febe.Tests.Collection; + +/// +/// The reader with the Instagram vocabulary on the cleaned real samples of tests/campioni/instagram: answers +/// Alberto's browser received on 21 October 2026 (HAR), cleaned with «febe-sonda ripulisci» and checked with +/// «febe-sonda verifica» (spec §14.5, rule 10). Values are fakes of the same shape: the tests check shapes, sizes, +/// dates and counts. +/// +[TestClass] +public sealed class InstagramReaderTests +{ + private static readonly ReaderVocabulary Vocabulary = ReaderVocabulary.LoadInstagram(); + private static readonly ShapeReader Reader = new(Vocabulary); + + private static string SampleFile(string name) => + Directory.EnumerateFiles(Path.Combine(AppContext.BaseDirectory, "campioni", "instagram"), $"*-{name}.json").Single(); + + private static ReadResult ReadSample(string name) + { + using var document = JsonDocument.Parse(File.ReadAllText(SampleFile(name))); + return Reader.Read(document.RootElement.GetProperty("corpo")); + } + + private static string SampleBody(string name) + { + using var document = JsonDocument.Parse(File.ReadAllText(SampleFile(name))); + return document.RootElement.GetProperty("corpo").GetRawText(); + } + + private static string MimeOf(string name) + { + using var document = JsonDocument.Parse(File.ReadAllText(SampleFile(name))); + return document.RootElement.GetProperty("descrittore").GetProperty("tipo").GetString()!; + } + + [TestMethod] + public void TheInstagramVocabularyIsConfirmedAndUsable() + { + Assert.AreEqual(VocabularyStatus.Confirmed, Vocabulary.Status); + Assert.IsTrue(Vocabulary.IsUsable, Vocabulary.UnusableReason); + Assert.AreEqual(0, Vocabulary.MissingConcepts.Count); + Assert.IsTrue(File.Exists(Path.Combine(AppContext.BaseDirectory, "config", "lettori.instagram.json")), "Editable without recompiling."); + } + + [TestMethod] + public void EveryKeyOfTheVocabularyComesFromTheRealSamples() + { + // Rule 10: the format is not invented. Every path of lettori.instagram.json exists, as nested keys, somewhere in + // the cleaned samples; every relevance key is a key of the samples. + var paths = new HashSet(StringComparer.Ordinal); + var names = new HashSet(StringComparer.Ordinal); + foreach (var file in Directory.EnumerateFiles(Path.Combine(AppContext.BaseDirectory, "campioni", "instagram"), "*.json")) + { + using var document = JsonDocument.Parse(File.ReadAllText(file)); + Collect(document.RootElement.GetProperty("corpo"), paths, names); + } + + var concepts = new[] + { + Vocabulary.Content.Id, Vocabulary.Content.Code, Vocabulary.Content.TakenAt, Vocabulary.Content.Caption, Vocabulary.Content.Images, + Vocabulary.Content.Videos, Vocabulary.Content.Children, Vocabulary.Content.ChildCount, Vocabulary.Content.Owner, Vocabulary.Content.Pinned, + Vocabulary.Content.ExpiresAt, Vocabulary.Content.Duration, Vocabulary.Version.Url, Vocabulary.Version.Width, Vocabulary.Version.Height, + Vocabulary.Version.HasAudio, Vocabulary.Profile.Id, Vocabulary.Profile.Username, Vocabulary.Profile.DisplayName, Vocabulary.Profile.IsPrivate, + Vocabulary.Profile.IsFollowed, Vocabulary.Profile.PostCount, Vocabulary.Profile.Picture, Vocabulary.Profile.LatestStoryAt, + Vocabulary.Highlight.Id, Vocabulary.Highlight.Title, Vocabulary.Highlight.Owner, Vocabulary.Highlight.Items, + Vocabulary.Page.HasMore, Vocabulary.Page.Cursor, Vocabulary.Viewer, + }; + foreach (var path in concepts.SelectMany(c => c.Paths)) + { + Assert.IsTrue(paths.Contains(path), $"«{path}» non compare in nessun campione ripulito di Instagram."); + } + + foreach (var key in Vocabulary.Relevance) + { + Assert.IsTrue(names.Contains(key), $"«{key}» non compare in nessun campione ripulito di Instagram."); + } + } + + [TestMethod] + public void GraphQlAnswersComeAsJavaScriptAndAreReadAsData() + { + // Why the capture reads «text/javascript»: the stories and highlights data of the samples was served that way. + Assert.AreEqual("text/javascript", MimeOf("raccolta-in-evidenza")); + Assert.AreEqual("application/json", MimeOf("post-video")); + Assert.IsTrue(DataResponses.IsData("text/javascript", "XHR")); + Assert.IsTrue(DataResponses.IsData("text/javascript", "Fetch")); + Assert.IsTrue(DataResponses.IsData("application/x-javascript", "XHR")); + Assert.IsTrue(DataResponses.IsData("application/json", "Fetch")); + Assert.IsTrue(DataResponses.IsData("application/json", null)); + Assert.IsFalse(DataResponses.IsData("text/javascript", "Script"), "Script files are never parsed."); + Assert.IsFalse(DataResponses.IsData("text/javascript", null)); + Assert.IsFalse(DataResponses.IsData("text/html", "Document")); + Assert.IsFalse(DataResponses.IsData("video/mp4", "Fetch")); + } + + [TestMethod] + public void AHighlightPageGivesTheCollectionsTheirStoriesAndTheirOwner() + { + var result = ReadSample("raccolta-in-evidenza"); + Assert.AreEqual(ReadShape.Recognized, result.Shape); + Assert.AreEqual(2, result.Highlights.Count); + foreach (var highlight in result.Highlights) + { + // «highlight:<17 digits>» in the data, «/stories/highlights/<17 digits>/» in the address: the reader keeps + // the address form (the cleaned samples fake the letters of the prefix, not its shape). + StringAssert.Matches(highlight.Id, new System.Text.RegularExpressions.Regex("^[0-9]{17}$")); + Assert.AreEqual(4, highlight.Items.Count); + Assert.IsFalse(string.IsNullOrWhiteSpace(highlight.Title)); + Assert.IsNotNull(highlight.Owner); + Assert.IsTrue(highlight.Items.All(i => i.HighlightId == highlight.Id)); + + // The «user» of each item has only an identifier: the author is the owner of the collection. + Assert.IsTrue(highlight.Items.All(i => i.Owner?.Id == highlight.Owner.Id && i.Owner.Username == highlight.Owner.Username)); + Assert.IsTrue(highlight.Items.All(i => i.ExpiresAt > i.TakenAt), "Highlight items keep the expiry they had as stories."); + Assert.IsTrue(highlight.Items.All(i => i.Code is { Length: 11 })); + Assert.IsTrue(highlight.Items.All(i => i.IsComplete && i.Files.Count == 1)); + } + + Assert.AreEqual(result.Highlights.Sum(h => h.Items.Count), result.Contents.Count); + Assert.IsFalse(result.Contents.Any(c => c.ExpiresAt is null && c.HighlightId is null), "Nothing here looks like a post."); + Assert.AreEqual(true, result.Page?.HasMore); + Assert.IsFalse(string.IsNullOrEmpty(result.Page?.Cursor)); + Assert.IsTrue(result.Profiles.Any(p => p.Id == result.Highlights[0].Owner!.Id && p.IsPrivate == false)); + Assert.IsNull(result.Viewer, "xdt_viewer.user has no user name: the connected account is not recognized from it alone (H10)."); + Assert.IsNotNull(result.ViewerId, "Its identifier is kept, to recognize its profile in other answers."); + Assert.IsFalse(result.Profiles.Any(p => p.Id == result.ViewerId), "In this answer the connected account has no profile."); + } + + [TestMethod] + public void StoryFilesTakeTheLargestImageAndTheFirstVideoVersion() + { + var items = ReadSample("raccolta-in-evidenza").Contents; + var photos = items.Where(i => i.Files[0].Kind == MediaKind.Photo).ToList(); + var videos = items.Where(i => i.Files[0].Kind == MediaKind.Video).ToList(); + Assert.IsTrue(photos.Count > 0 && videos.Count > 0); + + // The largest of the 10–14 candidates: 1206×2144 or 640×1136 in the samples. + Assert.IsTrue(items.All(i => i.Files[0].Kind == MediaKind.Video || i.Files[0].Best.Area >= 640 * 1136)); + Assert.IsTrue(photos.All(p => p.Files[0].Best.Url.EndsWith(".jpg", StringComparison.Ordinal))); + + // Story video versions (type 101, 102, 103) carry no size: the first one is taken, with the cover image. + foreach (var video in videos.Select(v => v.Files[0])) + { + Assert.IsTrue(video.Best.Url.EndsWith(".mp4", StringComparison.Ordinal)); + Assert.IsNull(video.Best.Width); + Assert.IsNotNull(video.Cover); + Assert.IsTrue(video.Duration > TimeSpan.Zero); + } + } + + [TestMethod] + public void TheNextPageOfHighlightsIsReadLikeTheFirst() + { + var result = ReadSample("raccolta-pagina-successiva"); + var highlight = result.Highlights.Single(); + Assert.AreEqual(3, highlight.Items.Count); + Assert.IsNotNull(highlight.Owner); + Assert.IsNotNull(result.Page); + } + + [TestMethod] + public void APostPageGivesTheVideoItsCoverTheCaptionAndTheAuthor() + { + var result = ReadSample("post-video"); + Assert.AreEqual(ReadShape.Recognized, result.Shape); + var post = result.Contents.Single(); + Assert.AreEqual(11, post.Code?.Length); + Assert.IsFalse(string.IsNullOrEmpty(post.Caption), "The caption is an object: its text is in caption.text."); + Assert.IsNull(post.ExpiresAt); + Assert.IsNull(post.HighlightId); + Assert.IsTrue(post.IsComplete); + Assert.IsNotNull(post.Owner); + Assert.AreEqual(false, post.Owner.IsFollowed, "friendship_status.following of the author."); + Assert.AreEqual(false, post.Owner.IsPrivate); + Assert.IsNotNull(post.Owner.Picture); + Assert.AreEqual(960, post.Owner.Picture.Width, "hd_profile_pic_url_info, the largest picture."); + Assert.IsNotNull(post.Owner.LatestStoryAt); + + var video = post.Files.Single(); + Assert.AreEqual(MediaKind.Video, video.Kind); + Assert.AreEqual((720, 1280), (video.Best.Width, video.Best.Height)); + Assert.IsTrue(video.Best.Url.EndsWith(".mp4", StringComparison.Ordinal)); + Assert.AreEqual((720, 1280), (video.Cover?.Width, video.Cover?.Height), "The largest of the 12 candidates."); + Assert.AreEqual(5.919, video.Duration!.Value.TotalSeconds, 0.001); + Assert.AreEqual(false, result.Page?.HasMore, "more_available of the REST answer."); + + var now = new DateTimeOffset(2026, 10, 25, 12, 0, 0, TimeSpan.Zero); + var media = ReadMapping.ToMedia(post, now).Single(); + Assert.AreEqual(MediaKind.Video, media.Kind); + Assert.AreEqual(video.Best.Url, media.SourceUrl); + Assert.AreEqual(video.Cover!.Url, media.CoverUrl); + Assert.AreEqual(post.TakenAt, ReadMapping.ToEntry(post, 1, EntryKind.Post, now).PublishedAt); + } + + [TestMethod] + public void TheProfilesOfSearchSuggestionsAndCommentsAreProfilesOnly() + { + var search = ReadSample("ricerca-profili"); + Assert.AreEqual(ReadShape.Recognized, search.Shape); + Assert.AreEqual(5, search.Profiles.Count); + Assert.AreEqual(0, search.Contents.Count); + + var suggested = ReadSample("profili-suggeriti"); + Assert.AreEqual(3, suggested.Profiles.Count); + Assert.IsTrue(suggested.Profiles.All(p => p.IsFollowed == false), "Suggested profiles are not followed."); + Assert.AreEqual(0, suggested.Contents.Count); + + var comments = ReadSample("commenti"); + Assert.AreEqual(0, comments.Contents.Count); + Assert.IsTrue(comments.Profiles.Count > 0); + } + + [TestMethod] + public void AnswersAboutOtherThingsAreUnrelatedNotAnUnknownFormat() + { + foreach (var name in new[] { "promozioni", "storia-vista" }) + { + var result = ReadSample(name); + Assert.AreEqual(ReadShape.Unrelated, result.Shape, name); + Assert.IsNull(result.KeyStructure, name); + } + + // A response that speaks of contents but in keys nobody knows is still an unknown format (spec §6.4). + var changed = Reader.Read("""{"data":{"feed":{"items":[{"pk":"1","taken_at":1777663535,"image_versions3":{"candidates":[]}}]}}}"""); + Assert.AreEqual(ReadShape.Unrecognized, changed.Shape); + Assert.IsNotNull(changed.KeyStructure); + } + + [TestMethod] + public void TheCollectorKeepsNothingOfUnrelatedAnswers() + { + var clock = new Febe.Tests.Browser.TestSupport.VirtualClock(); + var collector = new CaptureCollector(Reader, clock); + var observer = (IResponseObserver)collector; + var descriptor = new ResponseDescriptor("r1", HostKind.Site, "https://www.instagram.com/api/graphql", "www.instagram.com", "/api/graphql", 200, "text/javascript", "XHR", false, clock.Now); + observer.OnResponse(descriptor); + Assert.AreEqual(1, collector.Pending, "A JavaScript data answer is awaited like a JSON one."); + var mark = collector.Mark(); + using (var promo = JsonDocument.Parse(File.ReadAllText(SampleFile("promozioni")))) + { + Assert.IsNull(collector.Accept(descriptor, promo.RootElement.GetProperty("corpo"))); + } + + Assert.AreEqual(0, collector.Pending); + Assert.AreEqual(mark, collector.Mark(), "An unrelated answer is not «something new arrived»."); + using var highlights = JsonDocument.Parse(File.ReadAllText(SampleFile("raccolta-in-evidenza"))); + Assert.IsNotNull(collector.Accept(descriptor with { RequestId = "r2" }, highlights.RootElement.GetProperty("corpo"))); + Assert.AreEqual(ReadShape.Recognized, collector.Since(mark).Single().Result.Shape); + + observer.OnResponse(descriptor with { RequestId = "r3", ResourceType = "Script" }); + Assert.AreEqual(0, collector.Pending, "A script file is not data."); + + // The connected account's identifier is remembered even from an answer that is otherwise not kept. + using var unrelated = JsonDocument.Parse("""{"data":{"xdt_viewer":{"user":{"id":"5512345","pk":"5512345"}},"segni":[1]}}"""); + var before = collector.Mark(); + Assert.IsNull(collector.Accept(descriptor with { RequestId = "r4" }, unrelated.RootElement)); + Assert.AreEqual(before, collector.Mark()); + Assert.AreEqual("5512345", collector.ViewerId); + } + + [TestMethod] + public void TheDataEmbeddedInAPageDocumentIsReadLikeAnAnswer() + { + // Each valid block is an answer of its own, as the capture hands it to the readers: the collections (which say + // «has_next_page: true» of themselves) and the post (which says «more_available: false» of itself) keep each + // their own pagination, whatever their order in the document. + var head = $$""" + + + + + + + """; + var reads = new List(); + foreach (var block in DataResponses.EmbeddedJsonBlocks(html)) + { + using (block) + { + reads.Add(Reader.Read(block.RootElement)); + } + } + + Assert.AreEqual(3, reads.Count, "Only the valid application/json blocks, in order."); + Assert.AreEqual(ReadShape.Unrelated, reads[0].Shape, "The loader's block is not about contents."); + Assert.AreEqual(2, reads[1].Highlights.Count); + Assert.AreEqual(true, reads[1].Page?.HasMore); + Assert.AreEqual(ReadShape.Recognized, reads[2].Shape); + Assert.AreEqual(1, reads[2].Contents.Count); + Assert.AreEqual(0, reads[2].Highlights.Count); + Assert.AreEqual(false, reads[2].Page?.HasMore, "The post's own pagination, not the collections'."); + + Assert.IsFalse(DataResponses.EmbeddedJsonBlocks("").Any()); + Assert.IsTrue(DataResponses.IsPageDocument("text/html", isMainFrameDocument: true)); + Assert.IsFalse(DataResponses.IsPageDocument("text/html", isMainFrameDocument: false)); + } + + [TestMethod] + public void ABadBlockOfAPageDocumentIsLeftOutAndTheNextOnesAreStillRead() + { + // Text that is not valid UTF-16 (a lone surrogate: JsonDocument throws ArgumentException, not JsonException), + // a block nested deeper than any body may be, a blank one: none of them stops the reading of the document. + const string Open = """" + Open + new string('[', 300) + new string(']', 300) + "" + + Open + " " + Open + """{"b":[2]}"""; + var blocks = new List(); + foreach (var block in DataResponses.EmbeddedJsonBlocks(html)) + { + using (block) + { + blocks.Add(block.RootElement.GetRawText()); + } + } + + CollectionAssert.AreEqual(new[] { """{"b":[2]}""" }, blocks); + } + + private static void Collect(JsonElement element, HashSet paths, HashSet names) + { + switch (element.ValueKind) + { + case JsonValueKind.Object: + foreach (var property in element.EnumerateObject()) + { + names.Add(property.Name); + paths.Add(property.Name); + foreach (var below in NestedPaths(property.Value)) + { + paths.Add(property.Name + "." + below); + } + + Collect(property.Value, paths, names); + } + + break; + case JsonValueKind.Array: + foreach (var item in element.EnumerateArray()) + { + Collect(item, paths, names); + } + + break; + } + } + + /// Dotted paths of object keys directly below (two levels are enough here). + private static IEnumerable NestedPaths(JsonElement element) + { + if (element.ValueKind != JsonValueKind.Object) + { + yield break; + } + + foreach (var property in element.EnumerateObject()) + { + yield return property.Name; + if (property.Value.ValueKind == JsonValueKind.Object) + { + foreach (var deeper in property.Value.EnumerateObject()) + { + yield return property.Name + "." + deeper.Name; + } + } + } + } +} diff --git a/tests/Febe.Tests/Collection/InstagramRecipeTests.cs b/tests/Febe.Tests/Collection/InstagramRecipeTests.cs new file mode 100644 index 0000000..c319f46 --- /dev/null +++ b/tests/Febe.Tests/Collection/InstagramRecipeTests.cs @@ -0,0 +1,820 @@ +using System.Globalization; +using System.Text.Json; +using System.Text.Json.Nodes; +using Febe.Core.Abstractions; +using Febe.Core.Collection; +using Febe.Core.Collection.Readers; +using Febe.Core.Collection.Recipes; +using Febe.Core.Domain; +using Febe.Core.Engine; +using Febe.Core.Storage; +using Febe.Data; +using Febe.Tests.Browser.TestSupport; +using Febe.Tests.Collection.Support; +using Febe.Tests.Support; + +namespace Febe.Tests.Collection; + +/// +/// The recipes of the profile, the history, the sweep and the following list over answers shaped like Instagram's, +/// without a browser: the cleaned real samples of tests/campioni/instagram (HAR of 21 October 2026), and +/// variants built here from them where Instagram's answer is not in the samples (the profile, the grid, the feed, the +/// stories bar, the following list: REPERTI «Not in the sample»). The variants use only keys of the samples and move +/// their parts around; they say nothing new about Instagram's format. Unlike the test site, the page receives what it +/// shows in several answers, one after the other, and answers about something else in between. +/// +[TestClass] +public sealed class InstagramRecipeTests +{ + private const string AlbertoId = "1000"; + + [TestMethod] + public void TheNotFoundMarkerIsOptionalAndTheTabsStillNeedTheirTargets() + { + foreach (var kind in new[] { RecipeKind.ProfileCheck, RecipeKind.Backfill }) + { + Assert.AreEqual(0, RecipeRunner.Requirements(kind).Targets.Count, kind.ToString()); + } + + CollectionAssert.AreEqual(new[] { SiteTargets.ProfileTabTagged }, RecipeRunner.Requirements(RecipeKind.Tagged).Targets.ToArray()); + CollectionAssert.AreEqual(new[] { SiteTargets.ProfileTabReels }, RecipeRunner.Requirements(RecipeKind.Reels).Targets.ToArray()); + + var map = InstagramBed.Map(); + var (pages, targets) = RecipeRunner.Requirements(RecipeKind.ProfileCheck); + Assert.AreEqual(0, map.Missing(pages, targets).Count, "The profile page is enough for the check."); + var tagged = RecipeRunner.Requirements(RecipeKind.Tagged); + CollectionAssert.AreEqual(new[] { $"bersaglio «{SiteTargets.ProfileTabTagged}» (vuoto)" }, map.Missing(tagged.Pages, tagged.Targets).ToArray()); + } + + [TestMethod] + public async Task TheProfileCheckKeepsTheGridAndTheCollectionsThatComeAfterTheProfile() + { + await using var bed = await InstagramBed.CreateAsync(); + var account = await bed.AddAccountAsync("2002", "marta.prova"); + var marta = Author("2002", "marta.prova"); + + // The profile first; the grid asked for only after the page has settled on it; then the collections and a + // post of another account, both saying there is nothing more of themselves. + bed.Page.OnOpen["/marta.prova/"] = + [ + new(ProfileAnswer(marta), TimeSpan.Zero, TimeSpan.FromMilliseconds(300)), + new(Grid(Posts(marta, 0, 12, bed.Clock.Now.AddDays(-1)), "griglia-12", hasNext: true), TimeSpan.FromSeconds(1.5), TimeSpan.FromSeconds(1.9)), + new(Highlights("2002", "marta.prova", hasNext: false), TimeSpan.FromSeconds(1.9), TimeSpan.FromSeconds(2.3)), + new(Sample("post-video"), TimeSpan.FromSeconds(2.0), TimeSpan.FromSeconds(2.5)), + ]; + + var outcome = await bed.RunAsync(RecipeKind.ProfileCheck, account.Id); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + Assert.AreEqual(12, (await bed.PostIdsAsync(account.Id)).Count, "The grid came after the profile and was read."); + Assert.AreEqual(2, (await bed.Db.Highlights.ListAsync(account.Id)).Count, "So were the collections, after the grid."); + var stored = await bed.Db.Accounts.GetAsync(account.Id); + Assert.AreEqual("griglia-12", stored!.BackfillCursor, "The history goes on from the grid's own page."); + Assert.IsNull(stored.BackfillCompletedAt, "Neither «more_available: false» of the post nor «has_next_page: false» of the collections ends it."); + Assert.IsFalse(bed.Page.Looked.Contains(SiteTargets.ProfileNotFound), "The marker is not in the map: it is not looked for."); + Assert.IsFalse((await bed.Db.Events.ListAsync(new EventQuery())).Any(e => e.Code is "mappa-incompleta" or "formato-non-riconosciuto")); + } + + [TestMethod] + public async Task WithoutTheMarkerAMissingProfileIsAnEmptyPageAndWithItTheAccountIsUnreachable() + { + await using (var bed = await InstagramBed.CreateAsync()) + { + var account = await bed.AddAccountAsync("2004", "sparito.prova"); + var outcome = await bed.RunAsync(RecipeKind.ProfileCheck, account.Id); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + Assert.AreEqual("La pagina è arrivata vuota: nessun dato da leggere.", outcome.Message); + Assert.AreNotEqual(AccountState.Unreachable, (await bed.Db.Accounts.GetAsync(account.Id))!.State, "Nothing says the profile is gone."); + Assert.IsFalse(bed.Page.Looked.Contains(SiteTargets.ProfileNotFound)); + } + + await using (var bed = await InstagramBed.CreateAsync(InstagramBed.Map(SiteTargets.ProfileNotFound))) + { + var account = await bed.AddAccountAsync("2004", "sparito.prova"); + bed.Page.Present.Add(SiteTargets.ProfileNotFound); + var outcome = await bed.RunAsync(RecipeKind.ProfileCheck, account.Id); + Assert.AreEqual(RecipeStatus.AccountUnreachable, outcome.Status, outcome.Message); + var stored = await bed.Db.Accounts.GetAsync(account.Id); + Assert.AreEqual(AccountState.Unreachable, stored!.State); + Assert.AreEqual(UnreachableReason.NotFound, stored.UnreachableReason); + } + } + + [TestMethod] + public async Task AnAnswerWithoutMorePagesOfSomethingElseDoesNotEndTheHistory() + { + await using var bed = await InstagramBed.CreateAsync(); + var account = await bed.AddAccountAsync("2001", "luca.prova"); + var luca = Author("2001", "luca.prova"); + var newest = bed.Clock.Now.AddDays(-2); + bed.Page.OnOpen["/luca.prova/"] = + [ + new(ProfileAnswer(luca), TimeSpan.Zero, TimeSpan.Zero), + new(Grid(Posts(luca, 0, 12, newest), "griglia-12", hasNext: true), TimeSpan.Zero, TimeSpan.Zero), + ]; + + // The first burst brings only answers about something else, each saying it has no more: a post of another + // account and the collections. The next page of the grid comes with the second burst. + bed.Page.OnScroll["/luca.prova/"] = new Queue>( + [ + [Sample("post-video"), Highlights("2001", "luca.prova", hasNext: false)], + [Grid(Posts(luca, 12, 24, newest), "griglia-24", hasNext: true)], + [Grid(Posts(luca, 24, 30, newest), null, hasNext: false)], + ]); + + var outcome = await bed.RunAsync(RecipeKind.Backfill, account.Id, maxPages: 5); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + Assert.IsTrue(outcome.BackfillFinished, "The end of the grid, not of the post."); + Assert.AreEqual(30, (await bed.PostIdsAsync(account.Id)).Count); + Assert.IsNotNull((await bed.Db.Accounts.GetAsync(account.Id))!.BackfillCompletedAt); + Assert.AreEqual(2, bed.Governor.Granted(ActionKind.BackfillPage), "The answers about something else did not count as a page."); + Assert.AreEqual(3, bed.Page.Scrolls); + } + + [TestMethod] + public async Task ThePageOfAPostOfTheAccountNeitherEndsTheHistoryNorCountsAsItsNextPage() + { + await using var bed = await InstagramBed.CreateAsync(); + var account = await bed.AddAccountAsync("2001", "luca.prova"); + var luca = Author("2001", "luca.prova"); + var newest = bed.Clock.Now.AddDays(-2); + + // After the grid, the page of one of its posts: the REST answer of the samples, «more_available: false». + bed.Page.OnOpen["/luca.prova/"] = + [ + new(ProfileAnswer(luca), TimeSpan.Zero, TimeSpan.Zero), + new(Grid(Posts(luca, 0, 12, newest), "griglia-12", hasNext: true), TimeSpan.Zero, TimeSpan.Zero), + new(PostPage(Posts(luca, 3, 4, newest)[0]), TimeSpan.FromMilliseconds(200), TimeSpan.FromMilliseconds(400)), + ]; + + var check = await bed.RunAsync(RecipeKind.ProfileCheck, account.Id); + Assert.AreEqual(RecipeStatus.Completed, check.Status, check.Message); + var stored = await bed.Db.Accounts.GetAsync(account.Id); + Assert.AreEqual("griglia-12", stored!.BackfillCursor, "The history goes on from the grid's own page."); + Assert.IsNull(stored.BackfillCompletedAt, "«more_available: false» of the page of one of its posts does not complete it."); + + // The first burst brings only the page of another post already read; the next page of the grid comes with the second. + bed.Page.OnScroll["/luca.prova/"] = new Queue>( + [ + [PostPage(Posts(luca, 5, 6, newest)[0])], + [Grid(Posts(luca, 12, 24, newest), "griglia-24", hasNext: true)], + [Grid(Posts(luca, 24, 30, newest), null, hasNext: false)], + ]); + + var outcome = await bed.RunAsync(RecipeKind.Backfill, account.Id, maxPages: 5); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + Assert.IsTrue(outcome.BackfillFinished, "The end of the grid, not of the post."); + Assert.AreEqual(30, (await bed.PostIdsAsync(account.Id)).Count); + Assert.IsNotNull((await bed.Db.Accounts.GetAsync(account.Id))!.BackfillCompletedAt); + Assert.AreEqual(2, bed.Governor.Granted(ActionKind.BackfillPage), "The page of a post already read did not count as a page."); + Assert.AreEqual(3, bed.Page.Scrolls); + } + + [TestMethod] + public async Task OnTheTaggedTabThePageOfAPostAlreadyReadDoesNotEndTheWalk() + { + await using var bed = await InstagramBed.CreateAsync(InstagramBed.Map(SiteTargets.ProfileTabTagged)); + bed.Page.Present.Add(SiteTargets.ProfileTabTagged); + var account = await bed.AddAccountAsync("2001", "luca.prova", change: a => a with { ContentTypes = a.ContentTypes | ContentTypes.Tagged }); + var luca = Author("2001", "luca.prova"); + var other = Author("2005", "altro.prova"); + var newest = bed.Clock.Now.AddDays(-3); + + // On the tab every post of another account is an item of the walk, the page of one of them too. + bed.Page.OnOpen["/luca.prova/"] = [new(ProfileAnswer(luca), TimeSpan.Zero, TimeSpan.Zero)]; + bed.Page.OnClick[SiteTargets.ProfileTabTagged] = + [ + new(Grid(Posts(other, 0, 12, newest), "taggati-12", hasNext: true), TimeSpan.Zero, TimeSpan.FromMilliseconds(200)), + new(PostPage(Posts(other, 4, 5, newest)[0]), TimeSpan.FromMilliseconds(300), TimeSpan.FromMilliseconds(600)), + ]; + bed.Page.OnScroll["/luca.prova/"] = new Queue>( + [ + [PostPage(Posts(other, 7, 8, newest)[0])], + [Grid(Posts(other, 12, 20, newest), null, hasNext: false)], + ]); + + var outcome = await bed.RunAsync(RecipeKind.Tagged, account.Id, maxPages: 5); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + Assert.IsTrue(outcome.BackfillFinished, "The end of the tab, not of the post."); + Assert.AreEqual(20, (await bed.PostIdsAsync(account.Id, EntryKind.Tagged)).Count); + Assert.IsNotNull(await bed.Db.Settings.GetAsync($"raccolta.taggati.{account.Id.ToString(CultureInfo.InvariantCulture)}.completo")); + Assert.AreEqual(2, bed.Governor.Granted(ActionKind.BackfillPage), "The tab and its second page; the page of a post is not one."); + Assert.AreEqual(2, bed.Page.Scrolls); + } + + [TestMethod] + public async Task ThePageOfAPostAlreadyInTheFeedDoesNotEndTheSweep() + { + await using var bed = await InstagramBed.CreateAsync(); + var account = await bed.AddAccountAsync("2003", "nadia.prova"); + var nadia = Author("2003", "nadia.prova"); + var newest = bed.Clock.Now.AddHours(-1); + bed.Page.OnOpen["/"] = [new(Grid(Posts(nadia, 0, 6, newest), "feed-6", hasNext: true), TimeSpan.Zero, TimeSpan.Zero)]; + bed.Page.OnScroll["/"] = new Queue>( + [ + [PostPage(Posts(nadia, 2, 3, newest)[0])], + [Grid(Posts(nadia, 6, 12, newest), null, hasNext: false)], + ]); + + var outcome = await bed.RunAsync(RecipeKind.FollowingSweep); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + Assert.AreEqual(12, (await bed.PostIdsAsync(account.Id)).Count, "«more_available: false» of the page of a post read already is not the end of the feed."); + Assert.AreEqual(2, bed.Page.Scrolls, "The feed's own end stops the sweep."); + } + + [TestMethod] + public async Task TheEmptyCollectionsOfAnAccountWithoutAnyAreNotAnEmptyGrid() + { + await using var bed = await InstagramBed.CreateAsync(); + var account = await bed.AddAccountAsync("2002", "marta.prova"); + var marta = Author("2002", "marta.prova"); + + // No collections: their answer, an empty connection saying there are no more, comes before the grid, which + // the page asks for only after it has settled on the profile. + bed.Page.OnOpen["/marta.prova/"] = + [ + new(ProfileAnswer(marta), TimeSpan.Zero, TimeSpan.FromMilliseconds(300)), + new(NoHighlights(), TimeSpan.FromMilliseconds(400), TimeSpan.FromMilliseconds(800)), + new(Grid(Posts(marta, 0, 12, bed.Clock.Now.AddDays(-1)), "griglia-12", hasNext: true), TimeSpan.FromSeconds(1.6), TimeSpan.FromSeconds(2.0)), + ]; + + var check = await bed.RunAsync(RecipeKind.ProfileCheck, account.Id); + Assert.AreEqual(RecipeStatus.Completed, check.Status, check.Message); + Assert.AreEqual(12, (await bed.PostIdsAsync(account.Id)).Count, "The grid was still waited for."); + var stored = await bed.Db.Accounts.GetAsync(account.Id); + Assert.AreEqual("griglia-12", stored!.BackfillCursor); + Assert.IsNull(stored.BackfillCompletedAt, "«has_next_page: false» of the empty collections does not complete the history."); + + // When the grid does not come, the empty collections do not stand for it either. + var other = await bed.AddAccountAsync("2003", "nadia.prova"); + bed.Page.OnOpen["/nadia.prova/"] = + [ + new(ProfileAnswer(Author("2003", "nadia.prova")), TimeSpan.Zero, TimeSpan.FromMilliseconds(300)), + new(NoHighlights(), TimeSpan.FromMilliseconds(400), TimeSpan.FromMilliseconds(800)), + ]; + Assert.AreEqual(RecipeStatus.Completed, (await bed.RunAsync(RecipeKind.ProfileCheck, other.Id)).Status); + stored = await bed.Db.Accounts.GetAsync(other.Id); + Assert.IsNull(stored!.BackfillCompletedAt, "Nothing said the grid is empty."); + Assert.IsNull(stored.BackfillCursor); + } + + [TestMethod] + public async Task SuggestedProfilesAreNeverSavedAsFollowed() + { + await using var bed = await InstagramBed.CreateAsync(); + await bed.AddMineAsync(); + + // A profile Febe keeps that Alberto does not follow, among the suggestions of the sample. + var suggestions = Sample("profili-suggeriti"); + var suggested = suggestions["data"]!["xdt_api__v1__discover__chaining"]!["users"]!.AsArray().Select(u => u!["username"]!.GetValue()).ToList(); + var kept = await bed.AddAccountAsync(suggestions["data"]!["xdt_api__v1__discover__chaining"]!["users"]![0]!["pk"]!.GetValue(), suggested[0], followed: false); + + var followed = Enumerable.Range(0, 4).Select(i => Author((3000 + i).ToString(CultureInfo.InvariantCulture), $"seguito{i}.prova")).ToList(); + bed.Page.OnOpen["/alberto.prova/seguiti-di-prova/"] = + [ + new(suggestions, TimeSpan.Zero, TimeSpan.Zero), + new(ProfileAnswer(Author(AlbertoId, "alberto.prova", following: null)), TimeSpan.Zero, TimeSpan.FromMilliseconds(200)), + new(FollowingList(followed), TimeSpan.FromMilliseconds(300), TimeSpan.FromMilliseconds(700)), + ]; + + var outcome = await bed.RunAsync(RecipeKind.FollowingList); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + Assert.IsTrue(outcome.BackfillFinished, outcome.Message); + var list = (await bed.Db.Following.ListAsync()).Select(f => f.Username).ToList(); + CollectionAssert.AreEquivalent(new[] { "seguito0.prova", "seguito1.prova", "seguito2.prova", "seguito3.prova" }, list, "Neither the suggestions nor Alberto himself."); + Assert.IsFalse((await bed.Db.Accounts.GetAsync(kept.Id))!.IsFollowed, "A suggested profile is not followed."); + } + + [TestMethod] + public async Task SuggestionsAndAlbertoAloneAreNotTheFollowingList() + { + await using var bed = await InstagramBed.CreateAsync(); + await bed.AddMineAsync(); + bed.Page.OnOpen["/alberto.prova/seguiti-di-prova/"] = + [ + new(Sample("profili-suggeriti"), TimeSpan.Zero, TimeSpan.Zero), + new(ProfileAnswer(Author(AlbertoId, "alberto.prova", following: null)), TimeSpan.Zero, TimeSpan.Zero), + ]; + + var outcome = await bed.RunAsync(RecipeKind.FollowingList); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + Assert.AreEqual("La pagina è arrivata vuota: nessun dato da leggere.", outcome.Message); + Assert.AreEqual(0, await bed.Db.Following.CountAsync()); + Assert.IsNull(await bed.Db.Settings.GetAsync(RecipeRunner.FollowingKeys.Cursor)); + } + + [TestMethod] + public async Task TheConnectedAccountIsRecognizedFromItsIdentifierAndItsEntryInTheStoriesBar() + { + await using var bed = await InstagramBed.CreateAsync(); + var account = await bed.AddAccountAsync("2003", "nadia.prova"); + var nadia = Author("2003", "nadia.prova", latestStoryAt: bed.Clock.Now.AddHours(-2)); + + // The feed says who the connected account is by its identifier only (xdt_viewer.user, as in the samples); + // its name comes later, with its own entry in the stories bar. + bed.Page.OnOpen["/"] = + [ + new(Grid(Posts(nadia, 0, 2, bed.Clock.Now.AddHours(-5)), "feed-2", hasNext: false, viewerId: AlbertoId), TimeSpan.Zero, TimeSpan.FromMilliseconds(200)), + new(StoriesBar(Author(AlbertoId, "alberto.prova", following: null, latestStoryAt: bed.Clock.Now.AddHours(-1)), nadia), TimeSpan.FromMilliseconds(500), TimeSpan.FromMilliseconds(900)), + ]; + + var outcome = await bed.RunAsync(RecipeKind.FollowingSweep); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + var mine = await bed.Db.Accounts.GetMineAsync(); + Assert.IsNotNull(mine, "«Tu» from the identifier of one answer and the profile of another."); + Assert.AreEqual("alberto.prova", mine.Username); + Assert.AreEqual(AlbertoId, mine.InstagramId); + Assert.AreEqual(2, (await bed.PostIdsAsync(account.Id)).Count); + Assert.IsTrue(outcome.AccountsWithStories.Contains(account.Id), "The stories bar came after the feed and was read."); + Assert.IsTrue((await bed.Db.Events.ListAsync(new EventQuery())).Any(e => e.Code == "account-collegato")); + } + + [TestMethod] + public async Task SuggestedProfilesAloneAreNotTheHome() + { + await using var bed = await InstagramBed.CreateAsync(); + bed.Page.OnOpen["/"] = [new(Sample("profili-suggeriti"), TimeSpan.Zero, TimeSpan.Zero)]; + + Assert.AreEqual(RecipeStatus.Completed, (await bed.RunAsync(RecipeKind.FollowingSweep)).Status); + Assert.AreEqual(RecipeStatus.Completed, (await bed.RunAsync(RecipeKind.FollowingSweep)).Status); + Assert.AreEqual(0, bed.Breaker.Signals.Count); + var third = await bed.RunAsync(RecipeKind.FollowingSweep); + Assert.AreEqual(RecipeStatus.StoppedBySignal, third.Status, "Three homes with nothing but suggestions are three empty pages: " + third.Message); + Assert.AreEqual("empty-pages", bed.Breaker.Signals.Single().Code); + Assert.IsNull(await bed.Db.Accounts.GetMineAsync()); + } + + // ----- Answers: the cleaned samples, and variants built from them ----- + + private static string SampleFile(string name) => + Directory.EnumerateFiles(Path.Combine(AppContext.BaseDirectory, "campioni", "instagram"), $"*-{name}.json").Single(); + + /// The body of a cleaned sample, as the page received it. + private static JsonObject Sample(string name) => + JsonNode.Parse(File.ReadAllText(SampleFile(name)))!["corpo"]!.DeepClone().AsObject(); + + /// + /// A profile as the post of the samples describes its author (pk, username, friendship_status, latest_reel_media, + /// the pictures), with another identity. null: without friendship_status. + /// + private static JsonObject Author(string pk, string username, bool? following = true, DateTimeOffset? latestStoryAt = null) + { + var user = Sample("post-video")["items"]![0]!["user"]!.DeepClone().AsObject(); + user["pk"] = pk; + user["pk_id"] = pk; + user["id"] = pk; + user["strong_id__"] = pk; + user["username"] = username; + user["full_name"] = username; + if (following is { } value) + { + user["friendship_status"]!["following"] = value; + } + else + { + user.Remove("friendship_status"); + } + + if (latestStoryAt is { } latest) + { + user["latest_reel_media"] = latest.ToUnixTimeSeconds(); + } + else + { + user.Remove("latest_reel_media"); + } + + Retag(user, "a" + pk); + return user; + } + + /// Posts of , one hour apart going back from : the post of the samples, renumbered. + private static List Posts(JsonObject author, int from, int to, DateTimeOffset newest) + { + var template = Sample("post-video")["items"]![0]!; + var authorPk = author["pk"]!.GetValue(); + var posts = new List(); + for (var i = from; i < to; i++) + { + var pk = authorPk + "9" + i.ToString("D4", CultureInfo.InvariantCulture); + var post = template.DeepClone().AsObject(); + post["pk"] = pk; + post["id"] = $"{pk}_{authorPk}"; + post["code"] = ("C" + pk).PadRight(11, 'x')[..11]; + post["taken_at"] = newest.AddHours(-i).ToUnixTimeSeconds(); + Retag(post, "p" + pk); + post["user"] = author.DeepClone(); + post["owner"] = author.DeepClone(); + posts.Add(post); + } + + return posts; + } + + /// + /// A page of posts: Instagram's grid and feed are not in the samples, so the posts go into the GraphQL connection + /// the samples show (data.…connection.edges[].node, page_info), with xdt_viewer.user when given. + /// + private static JsonObject Grid(IEnumerable posts, string? cursor, bool hasNext, string? viewerId = null) + { + var body = Sample("raccolta-in-evidenza"); + var data = body["data"]!.AsObject(); + var connection = data["xdt_api__v1__feed__reels_media__connection"]!.AsObject(); + connection["edges"] = new JsonArray([.. posts.Select(p => (JsonNode)new JsonObject { ["node"] = p, ["cursor"] = null })]); + connection["page_info"]!["end_cursor"] = cursor; + connection["page_info"]!["has_next_page"] = hasNext; + if (viewerId is null) + { + data.Remove("xdt_viewer"); + } + else + { + var user = data["xdt_viewer"]!["user"]!; + user["pk"] = viewerId; + user["id"] = viewerId; + user["user_id"] = viewerId; + } + + return body; + } + + /// The collections of the samples, as if of another account, saying whether there are more of them. + private static JsonObject Highlights(string pk, string username, bool hasNext) + { + var body = Sample("raccolta-in-evidenza"); + var connection = body["data"]!["xdt_api__v1__feed__reels_media__connection"]!; + foreach (var node in connection["edges"]!.AsArray().Select(e => e!["node"]!)) + { + var owner = node["user"]!; + owner["pk"] = pk; + owner["id"] = pk; + owner["user_id"] = pk; + owner["username"] = username; + foreach (var item in node["items"]!.AsArray()) + { + item!["user"]!["pk"] = pk; + item["user"]!["id"] = pk; + item["user"]!["instagram_pk"] = pk; + } + } + + connection["page_info"]!["has_next_page"] = hasNext; + body["data"]!.AsObject().Remove("xdt_viewer"); + return body; + } + + /// The collections of an account that has none: the connection of the samples without edges, saying there are no more. + private static JsonObject NoHighlights() + { + var body = Highlights("0", "nessuno.prova", hasNext: false); + body["data"]!["xdt_api__v1__feed__reels_media__connection"]!["edges"] = new JsonArray(); + return body; + } + + /// The page of one post: the REST answer of the samples («more_available: false») with as its item. + private static JsonObject PostPage(JsonObject post) + { + var body = Sample("post-video"); + body["items"] = new JsonArray(post); + return body; + } + + /// A profile on its own (data.user): Instagram's profile answer is not in the samples. + private static JsonObject ProfileAnswer(JsonObject profile) => new() { ["data"] = new JsonObject { ["user"] = profile.DeepClone() } }; + + /// + /// The stories bar of the home, not in the samples: the reels of the samples (XDTReelDict) without what makes them a + /// collection (title, items), one per account, its author in «user». + /// + private static JsonObject StoriesBar(params JsonObject[] authors) + { + var body = Sample("raccolta-in-evidenza"); + var data = body["data"]!.AsObject(); + var connection = data["xdt_api__v1__feed__reels_media__connection"]!.AsObject(); + var template = connection["edges"]![0]!["node"]!; + connection["edges"] = new JsonArray([.. authors.Select(author => + { + var reel = template.DeepClone().AsObject(); + reel.Remove("title"); + reel.Remove("items"); + reel.Remove("cover_media"); + reel["id"] = author["pk"]!.GetValue(); + reel["user"] = author.DeepClone(); + reel["latest_reel_media"] = author["latest_reel_media"]?.DeepClone(); + return (JsonNode)new JsonObject { ["node"] = reel, ["cursor"] = null }; + })]); + connection.Remove("page_info"); + data.Remove("xdt_viewer"); + return body; + } + + /// The following list, not in the samples: its profiles in «users», as the suggestions of the samples have them, and «more_available». + private static JsonObject FollowingList(IEnumerable profiles) => new() + { + ["users"] = new JsonArray([.. profiles.Select(p => (JsonNode)p.DeepClone())]), + ["more_available"] = false, + }; + + /// Gives the file addresses of a copied part their own name, so that copies are different files. + private static void Retag(JsonNode node, string tag) + { + switch (node) + { + case JsonObject obj: + foreach (var (key, value) in obj.ToList()) + { + if (value is JsonValue v && v.TryGetValue(out var text) && text.StartsWith("https://cdn.esempio/", StringComparison.Ordinal)) + { + obj[key] = "https://cdn.esempio/" + tag + "-" + text["https://cdn.esempio/".Length..]; + } + else if (value is not null) + { + Retag(value, tag); + } + } + + break; + case JsonArray array: + foreach (var item in array.Where(i => i is not null)) + { + Retag(item!, tag); + } + + break; + } + } + + // ----- The bed: a page driver that hands the capture Instagram-shaped answers over time ----- + + /// An answer of a page: its response seen at , its body read at . + private sealed record Answer(JsonNode Body, TimeSpan Announced, TimeSpan Delivered); + + /// A virtual clock that also runs what is due when time passes: bodies arrive while the recipe waits. + private sealed class StepClock(DateTimeOffset start) : IClock + { + private readonly Lock _gate = new(); + private readonly List<(DateTimeOffset At, long Order, Action Action)> _due = []; + private DateTimeOffset _now = start; + private long _order; + + public DateTimeOffset Now + { + get + { + lock (_gate) + { + return _now; + } + } + } + + public TimeZoneInfo LocalZone => TimeZoneInfo.Utc; + + public void After(TimeSpan delay, Action action) + { + lock (_gate) + { + _due.Add((_now + delay, _order++, action)); + } + } + + public Task Delay(TimeSpan time, CancellationToken ct) + { + ct.ThrowIfCancellationRequested(); + List due; + lock (_gate) + { + if (time > TimeSpan.Zero) + { + _now += time; + } + + due = [.. _due.Where(d => d.At <= _now).OrderBy(d => d.At).ThenBy(d => d.Order).Select(d => d.Action)]; + _due.RemoveAll(d => d.At <= _now); + } + + foreach (var action in due) + { + action(); + } + + return Task.CompletedTask; + } + } + + /// + /// The page: opening a path hands the capture its answers (each seen as a response first, its body read later, as + /// the browser does), and so does a click on a target; a burst hands it the next answers queued for the path. + /// Targets are found only when present. + /// + private sealed class InstagramPage(CaptureCollector capture, StepClock clock) : IPageDriver + { + private int _requests; + + public Dictionary> OnOpen { get; } = new(StringComparer.Ordinal); + + public Dictionary> OnClick { get; } = new(StringComparer.Ordinal); + + public Dictionary>> OnScroll { get; } = new(StringComparer.Ordinal); + + public HashSet Present { get; } = []; + + public List Looked { get; } = []; + + public int Scrolls { get; private set; } + + public string CurrentPath { get; private set; } = "about:blank"; + + public double WaitMultiplier => 1; + + public void BeginSession(double mood) + { + } + + public Task OpenAsync(string path, CancellationToken ct) + { + CurrentPath = path; + foreach (var answer in OnOpen.GetValueOrDefault(path) ?? []) + { + Send(answer.Body, answer.Announced, answer.Delivered); + } + + return Task.FromResult(new PageLoad(true, path, null)); + } + + public Task CurrentPathAsync(CancellationToken ct) => Task.FromResult(CurrentPath); + + public Task IsOnSiteAsync(CancellationToken ct) => Task.FromResult(true); + + public Task FindAsync(string target, IReadOnlyDictionary? parameters, CancellationToken ct) + { + Looked.Add(target); + return Task.FromResult(Present.Contains(target) + ? new TargetCheck(target, TargetCheckStatus.Found, 1, "Trovato.") + : new TargetCheck(target, TargetCheckStatus.NotFound, 0, $"Bersaglio «{target}» non trovato.")); + } + + public Task ClickAsync(string target, IReadOnlyDictionary? parameters, CancellationToken ct) + { + if (!Present.Contains(target)) + { + return Task.FromResult(new TargetCheck(target, TargetCheckStatus.NotFound, 0, $"Bersaglio «{target}» non trovato.")); + } + + foreach (var answer in OnClick.GetValueOrDefault(target) ?? []) + { + Send(answer.Body, answer.Announced, answer.Delivered); + } + + return Task.FromResult(new TargetCheck(target, TargetCheckStatus.Clicked, 1, "Cliccato.")); + } + + public Task ScrollBurstAsync(CancellationToken ct) + { + Scrolls++; + if (OnScroll.TryGetValue(CurrentPath, out var queue) && queue.Count > 0) + { + foreach (var body in queue.Dequeue()) + { + Send(body, TimeSpan.Zero, TimeSpan.Zero); + } + } + + return Task.CompletedTask; + } + + public Task WaitAfterLoadAsync(CancellationToken ct) => Task.CompletedTask; + + public Task WaitAsync(TimeSpan duration, CancellationToken ct) => Task.CompletedTask; + + public Task MaybeDistractionAsync(CancellationToken ct) => Task.FromResult(false); + + public Task HasSessionCookieAsync(CancellationToken ct) => Task.FromResult(true); + + public Task RestAsync(CancellationToken ct) + { + CurrentPath = "about:blank"; + return Task.CompletedTask; + } + + private void Send(JsonNode body, TimeSpan announced, TimeSpan delivered) + { + var id = "r" + Interlocked.Increment(ref _requests).ToString(CultureInfo.InvariantCulture); + var descriptor = new ResponseDescriptor(id, HostKind.Site, "https://sito.esempio/graphql/query", "sito.esempio", "/graphql/query", 200, "text/javascript", "XHR", false, clock.Now); + var text = body.ToJsonString(); + void Announce() => ((IResponseObserver)capture).OnResponse(descriptor); + void Deliver() + { + using var document = JsonDocument.Parse(text); + capture.Accept(descriptor, document.RootElement); + } + + if (delivered <= TimeSpan.Zero) + { + Announce(); + Deliver(); + return; + } + + clock.After(announced, Announce); + clock.After(delivered, Deliver); + } + } + + /// Database, clock, Governor, signals and runner over and the Instagram vocabulary. + private sealed class InstagramBed : IAsyncDisposable + { + private InstagramBed(TempFolder temp, FebeDatabase db, StepClock clock, InstagramPage page, RecipeRunner runner, TestSession session) + { + Temp = temp; + Db = db; + Clock = clock; + Page = page; + Runner = runner; + Session = session; + } + + public TempFolder Temp { get; } + + public FebeDatabase Db { get; } + + public StepClock Clock { get; } + + public InstagramPage Page { get; } + + public RecipeRunner Runner { get; } + + public TestSession Session { get; } + + public PermissiveGovernor Governor => (PermissiveGovernor)Runner.Env.Governor; + + public RecordingBreaker Breaker => (RecordingBreaker)Runner.Env.Breaker!; + + /// + /// Pages with Instagram's addresses where the samples show them (home, profile, post: route definitions of the + /// HAR); the following list has an address of the test, Instagram's is not in the samples. Targets: only + /// . + /// + public static SiteMap Map(params string[] configured) => new( + "instagram", + new Dictionary + { + [SitePages.Home] = "/", + [SitePages.Profile] = "/{username}/", + [SitePages.Post] = "/p/{code}/", + [SitePages.Following] = "/{username}/seguiti-di-prova/", + }, + configured, + SiteTargets.All); + + public static async Task CreateAsync(SiteMap? map = null) + { + var temp = new TempFolder("ricette-instagram"); + var db = await TestDatabase.OpenAsync(temp); + var clock = new StepClock(new DateTimeOffset(2026, 10, 25, 9, 0, 0, TimeSpan.Zero)); + var capture = new CaptureCollector(new ShapeReader(ReaderVocabulary.LoadInstagram()), clock); + var page = new InstagramPage(capture, clock); + var breaker = new RecordingBreaker(); + var governor = new PermissiveGovernor(); + var runner = new RecipeRunner(new RecipeEnvironment + { + Driver = page, + Capture = capture, + Governor = governor, + Budget = governor, + Signals = new SignalDetector(SignalRules.LoadDefault(), breaker, clock), + Storage = db, + SiteMap = map ?? Map(), + Clock = clock, + Random = new SeededRandom(7), + Breaker = breaker, + }); + var session = new TestSession((await db.Sessions.StartAsync(clock.Now)).Id); + return new InstagramBed(temp, db, clock, page, runner, session); + } + + public Task AddAccountAsync(string instagramId, string username, bool followed = true, Func? change = null) + { + var account = Account.Create(username, StartingPoint.EverythingAndKeepUpdated, Clock.Now, TestZones.Rome) with + { + InstagramId = instagramId, + IsFollowed = followed, + }; + return Db.Accounts.AddAsync(change is null ? account : change(account)); + } + + public Task AddMineAsync() => + Db.Accounts.AddAsync(Account.Create("alberto.prova", StartingPoint.EverythingAndKeepUpdated, Clock.Now, TestZones.Rome, isMine: true) with { InstagramId = AlbertoId }); + + public Task RunAsync(RecipeKind kind, long? accountId = null, int? maxPages = null) => + Runner.RunAsync(new RecipeRequest(kind, accountId, MaxPages: maxPages), Session, CancellationToken.None); + + public async Task> PostIdsAsync(long accountId, EntryKind kind = EntryKind.Post) => + [.. (await Db.Entries.ListByAccountAsync(accountId, new EntryListOptions { Kind = kind, Limit = 1000 })).Select(e => e.InstagramId!)]; + + public async ValueTask DisposeAsync() + { + await Db.DisposeAsync(); + Temp.Dispose(); + } + } +} diff --git a/tests/Febe.Tests/Collection/ReaderTests.cs b/tests/Febe.Tests/Collection/ReaderTests.cs index f9988c8..598bfb5 100644 --- a/tests/Febe.Tests/Collection/ReaderTests.cs +++ b/tests/Febe.Tests/Collection/ReaderTests.cs @@ -7,8 +7,8 @@ namespace Febe.Tests.Collection; /// /// The generic reader (spec §6.4) on the cleaned samples of tests/campioni/prova: captured from the test site, -/// cleaned with «febe-sonda ripulisci» and checked with «febe-sonda verifica». Never real Instagram samples: there -/// are none yet (rule 10). +/// cleaned with «febe-sonda ripulisci» and checked with «febe-sonda verifica». The real Instagram samples have their +/// own tests (). /// [TestClass] public sealed class ReaderTests @@ -199,31 +199,16 @@ public sealed class ReaderTests } [TestMethod] - public void TheShippedVocabulariesLoadAndInstagramsIsOnlyAHypothesis() + public void TheShippedVocabulariesLoad() { var test = ReaderVocabulary.LoadTestSite(); Assert.IsTrue(test.IsUsable, test.UnusableReason); + Assert.AreEqual(0, test.Relevance.Count, "On the test site every unknown answer is a format change."); Assert.IsTrue(File.Exists(Path.Combine(AppContext.BaseDirectory, "config", "lettori.prova.json")), "Editable without recompiling."); Assert.IsTrue(File.Exists(Path.Combine(AppContext.BaseDirectory, "config", "lettori.instagram.json"))); - var instagram = ReaderVocabulary.LoadInstagram(); - Assert.AreEqual(VocabularyStatus.Hypothesis, instagram.Status); - Assert.IsFalse(instagram.IsUsable); - StringAssert.Contains(instagram.UnusableReason, "ipotesi"); - StringAssert.Contains(instagram.Note, "IPOTESI, DA CONFERMARE CON I CAMPIONI DI M0"); - - // Only the hint keys of spec §6.4: nothing invented (rule 10). - var keys = new[] - { - instagram.Content.Id, instagram.Content.Code, instagram.Content.TakenAt, instagram.Content.Caption, instagram.Content.Images, - instagram.Content.Videos, instagram.Content.Children, instagram.Content.ChildCount, instagram.Content.Owner, instagram.Content.Pinned, - instagram.Content.ExpiresAt, instagram.Content.Duration, instagram.Version.Url, instagram.Version.Width, instagram.Version.Height, - instagram.Version.HasAudio, instagram.Profile.Id, instagram.Profile.Username, instagram.Profile.DisplayName, instagram.Profile.IsPrivate, - instagram.Profile.IsFollowed, instagram.Profile.PostCount, instagram.Profile.Picture, instagram.Profile.LatestStoryAt, - instagram.Highlight.Id, instagram.Highlight.Title, instagram.Highlight.Owner, instagram.Highlight.Items, - instagram.Page.HasMore, instagram.Page.Cursor, instagram.Viewer, - }.SelectMany(k => k.Paths).Order().ToArray(); - CollectionAssert.AreEqual(new[] { "carousel_media", "code", "image_versions2.candidates", "pk", "taken_at", "video_versions" }, keys); + // Instagram's vocabulary has its own tests on the real cleaned samples (InstagramReaderTests). + Assert.IsTrue(ReaderVocabulary.LoadInstagram().IsUsable); } [TestMethod] diff --git a/tests/Febe.Tests/Collection/RecipeRuleTests.cs b/tests/Febe.Tests/Collection/RecipeRuleTests.cs index 4091e6e..d401bca 100644 --- a/tests/Febe.Tests/Collection/RecipeRuleTests.cs +++ b/tests/Febe.Tests/Collection/RecipeRuleTests.cs @@ -134,6 +134,39 @@ public sealed class RecipeRuleTests Assert.IsNull(await bed.Db.Settings.GetAsync($"raccolta.lacuna.{account.Id}.cursore")); } + [TestMethod] + public async Task AProfileWithCollectionsAndNoPostsHasItsWholeHistoryInTheFirstAnswer() + { + // The test site sends the collections with the first page of the grid, here empty: the profile in the same + // answer says there are no posts. + await using var bed = await ScriptedBed.CreateAsync(); + var timeout = new RecipeOptions().DataTimeout; + var vera = bed.Site.Add(new ScriptedAccount("2006", "vera.prova")); + vera.HighlightsWithItems.Add(("h1", "Estate", [])); + var account = await bed.AddAccountAsync(vera, a => a with { State = AccountState.Backfilling }); + + var start = bed.Clock.Now; + var check = await bed.RunAsync(RecipeKind.ProfileCheck, account.Id); + Assert.AreEqual(RecipeStatus.Completed, check.Status, check.Message); + Assert.IsTrue(bed.Clock.Now - start < timeout, "The empty grid came with the profile: no wait for another one."); + Assert.AreEqual(1, (await bed.Db.Highlights.ListAsync(account.Id)).Count); + Assert.IsNotNull((await bed.Db.Accounts.GetAsync(account.Id))!.BackfillCompletedAt); + Assert.IsTrue(check.BackfillFinished, "Its history is complete, with nothing in it."); + + // The history of an account like it, not marked complete yet, ends at the profile without a page of its own. + var lia = bed.Site.Add(new ScriptedAccount("2007", "lia.prova")); + lia.HighlightsWithItems.Add(("h2", "Inverno", [])); + var other = await bed.AddAccountAsync(lia, a => a with { State = AccountState.Backfilling }); + start = bed.Clock.Now; + var backfill = await bed.RunAsync(RecipeKind.Backfill, other.Id); + Assert.AreEqual(RecipeStatus.Completed, backfill.Status, backfill.Message); + Assert.IsTrue(backfill.BackfillFinished, backfill.Message); + Assert.IsTrue(bed.Clock.Now - start < timeout); + Assert.AreEqual(0, bed.Governor.Granted(ActionKind.BackfillPage), "No page asked for after the profile."); + Assert.AreEqual(0, bed.Site.Scrolls); + Assert.AreEqual(0, bed.Breaker.Signals.Count); + } + [TestMethod] public async Task AResponseUnrelatedToThePageNeitherEndsTheWalkNorStopsTheRecipe() { diff --git a/tests/Febe.Tests/Collection/SanitizerTests.cs b/tests/Febe.Tests/Collection/SanitizerTests.cs index 1f8a088..54c0bc9 100644 --- a/tests/Febe.Tests/Collection/SanitizerTests.cs +++ b/tests/Febe.Tests/Collection/SanitizerTests.cs @@ -193,6 +193,24 @@ public sealed class SanitizerTests StringAssert.EndsWith(node["c"]!.GetValue(), ".webp"); } + [TestMethod] + public void ValuesUnderSecretLikeKeysBecomeANeutralFillerOfTheSameShape() + { + // A fake drawn letter by letter from a long token still looks like a token to a secret scanner (gitleaks). + var sanitizer = new SampleSanitizer(key: new byte[32]); + // Built at run time, so the source itself holds no token-like literal next to a token-like key (gitleaks). + var tracked = Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("""{"version":5,"payload":{"is_analytics_tracked":true""")); + var ranked = new Guid(0x18f2c1b0, 0xaa77, 0x4c2e, 0x9e, 0x1d, 0x0c, 0x6a, 0x1b, 0x2c, 0x3d, 0x4e).ToString(); + var node = sanitizer.Sanitize(JsonNode.Parse(new JsonObject { ["organic_tracking_token"] = tracked, ["rank_token"] = ranked, ["nome"] = "Lucia" }.ToJsonString()))!; + Assert.AreEqual("xxx7xxxx", node["organic_tracking_token"]!.GetValue()[..8]); + Assert.IsTrue(node["organic_tracking_token"]!.GetValue().All(c => c is 'x' or '7')); + Assert.AreEqual("77x7x7x7-xx77-7x7x-7x7x-7x7x7x7x7x7x", node["rank_token"]!.GetValue()); + Assert.AreNotEqual("Lucia", node["nome"]!.GetValue()); + Assert.IsFalse(node["nome"]!.GetValue().All(c => c == 'x'), "Ordinary values keep their varied fakes."); + Assert.IsTrue(SampleSanitizer.LooksLikeSecretKey("client_cache_key")); + Assert.IsFalse(SampleSanitizer.LooksLikeSecretKey("username")); + } + [TestMethod] public void TheProbeReadsOnlyThroughAReadOnlyScript() => Febe.Browser.Cdp.ReadOnlyScriptGuard.EnsureReadOnly(ProbeRecorder.InteractionScript); @@ -209,5 +227,31 @@ public sealed class SanitizerTests using var document = JsonDocument.Parse(text); Assert.IsTrue(document.RootElement.TryGetProperty("corpo", out _)); } + + // The same for tests/campioni/instagram: no address of Instagram or of its CDN, every address a fake one. + foreach (var file in Directory.EnumerateFiles(Path.Combine(AppContext.BaseDirectory, "campioni", "instagram"), "*.json")) + { + var text = File.ReadAllText(file); + foreach (var host in new[] { "instagram.com", "cdninstagram", "fbcdn" }) + { + Assert.IsFalse(text.Contains(host, StringComparison.OrdinalIgnoreCase), $"{file}: {host}"); + } + + using var document = JsonDocument.Parse(text); + Assert.IsTrue(document.RootElement.TryGetProperty("descrittore", out _), file); + Assert.IsTrue(document.RootElement.TryGetProperty("corpo", out _), file); + foreach (var address in Strings(document.RootElement).Where(v => v.StartsWith("http", StringComparison.OrdinalIgnoreCase))) + { + Assert.IsTrue(System.Text.RegularExpressions.Regex.IsMatch(address, @"^https://(sito|cdn|altro)\.esempio/"), $"{file}: indirizzo non ripulito"); + } + } } + + private static IEnumerable Strings(JsonElement element) => element.ValueKind switch + { + JsonValueKind.String => [element.GetString()!], + JsonValueKind.Object => element.EnumerateObject().SelectMany(p => Strings(p.Value)), + JsonValueKind.Array => element.EnumerateArray().SelectMany(Strings), + _ => [], + }; } diff --git a/tests/Febe.Tests/Collection/ViewerAddressTests.cs b/tests/Febe.Tests/Collection/ViewerAddressTests.cs new file mode 100644 index 0000000..41b9475 --- /dev/null +++ b/tests/Febe.Tests/Collection/ViewerAddressTests.cs @@ -0,0 +1,732 @@ +using System.Globalization; +using System.Text.Json; +using System.Text.Json.Nodes; +using Febe.Core.Abstractions; +using Febe.Core.Collection; +using Febe.Core.Collection.Recipes; +using Febe.Core.Domain; +using Febe.Core.Engine; +using Febe.Core.Storage; +using Febe.Tests.Browser.TestSupport; +using Febe.Tests.Collection.Support; + +namespace Febe.Tests.Collection; + +/// +/// The story and highlight viewers on the scripted site, with and without the item shown in the address. Instagram's +/// highlight viewer stays on «/stories/highlights/{id}/» from one item to the next (HAR of 21/10/2026): the recipe +/// counts the items against the list the page received. The test site writes the item in the address +/// («/storie/{username}/{id}/»): the recipe keeps reading it from there. +/// +[TestClass] +public sealed class ViewerAddressTests +{ + private const string SummerId = "17900000000000001"; + private const string TravelId = "17900000000000002"; + + [TestMethod] + [DataRow(SummerId)] + [DataRow("highlight:" + SummerId)] + public async Task AHighlightViewerWithoutTheItemInTheAddressSavesTheItemsShownAndClosesAfterTheLast(string requested) + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress: false); + var (_, account) = await bed.AddCollectionsAsync(); + + var outcome = await bed.RunHighlightAsync(account, requested); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + Assert.AreEqual(4, outcome.NewEntries); + CollectionAssert.AreEqual(new[] { "e0", "e1", "e2", "e3" }, bed.Viewer.Seen, "Closed after the last item: never on to the next collection."); + CollectionAssert.AreEqual(new[] { "e0", "e1", "e2", "e3" }, (await bed.ItemsOfAsync(account, SummerId)).ToArray(), "Every item shown, in order."); + Assert.AreEqual(0, (await bed.Bed.Db.Entries.ListByAccountAsync(account.Id, new EntryListOptions { Kind = EntryKind.Highlight })).Count(e => e.InstagramId!.StartsWith('v')), "The other collection received with it is not saved."); + Assert.AreEqual(3, bed.Viewer.NextClicks); + Assert.AreEqual(1, bed.Viewer.CloseClicks); + Assert.AreEqual(4, bed.Bed.Governor.Granted(ActionKind.StoryView), "One permit per item shown."); + bed.AssertNoItemCameOnScreenBeforeItsPermit(); + Assert.AreEqual("/profilo/nadia.prova/", await bed.Viewer.CurrentPathAsync(CancellationToken.None), "Back on the profile."); + Assert.AreEqual("/evidenza/" + SummerId + "/", bed.Viewer.OpenedAt, "The collection is clicked by the identifier of its address."); + } + + [TestMethod] + public async Task WithoutTheItemInTheAddressAVideoIsLeftBeforeItEndsAlsoWhenTheWatchWouldLastLonger() + { + // Mood × pace 1.2 and a draw near the top: the watch of a ten-second video would last 11.3 s, past its end but + // short of the old three-second margin. Clicked then, «next» would have skipped «p1». + var random = new FixedRandom(0.9); + var watch = StoryTimings.Watch(random, TimeSpan.FromSeconds(10), 1.2); + Assert.IsTrue(watch > TimeSpan.FromSeconds(10) && watch < TimeSpan.FromSeconds(13), $"Watch of {watch}."); + + await using var bed = await ViewerBed.CreateAsync(itemInAddress: false, waitMultiplier: 1.2, random: random); + var (_, account) = await bed.AddCollectionsAsync([new("v0", Video: TimeSpan.FromSeconds(10)), new("p1"), new("p2")]); + + var outcome = await bed.RunHighlightAsync(account, SummerId); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + CollectionAssert.AreEqual(new[] { "v0", "p1", "p2" }, bed.Viewer.Seen, "Never on to the next collection."); + CollectionAssert.AreEqual(new[] { "v0", "p1", "p2" }, (await bed.ItemsOfAsync(account, SummerId)).ToArray(), "Every item shown, in order."); + Assert.AreEqual(2, bed.Viewer.NextClicks, "«next» on the video before it ended, then on «p1»."); + Assert.AreEqual(1, bed.Viewer.CloseClicks); + bed.AssertNoItemCameOnScreenBeforeItsPermit(); + Assert.IsFalse((await bed.Bed.Db.Events.ListAsync(new EventQuery())).Any(e => e.Code == "visualizzatore-altro-account")); + } + + [TestMethod] + [DataRow(false)] + [DataRow(true)] + public async Task AnUnexpectedErrorInTheViewerClosesItAndKeepsWhatWasShown(bool itemInAddress) + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress); + var (_, account) = await bed.AddCollectionsAsync(); + bed.Viewer.FailAtNextClick = 2; + + var outcome = await bed.RunHighlightAsync(account, SummerId); + Assert.AreEqual(RecipeStatus.Failed, outcome.Status, outcome.Message); + StringAssert.Contains(outcome.Message, "Errore imprevisto"); + StringAssert.Contains(outcome.Message, nameof(InvalidOperationException)); + Assert.AreEqual(1, bed.Viewer.CloseClicks, "The viewer is closed: left open it would move on by itself."); + Assert.AreEqual("/profilo/nadia.prova/", await bed.Viewer.CurrentPathAsync(CancellationToken.None)); + CollectionAssert.AreEqual(new[] { "e0", "e1" }, (await bed.ItemsOfAsync(account, SummerId)).ToArray(), "The two items shown before the error are saved."); + Assert.IsTrue((await bed.Bed.Db.Events.ListAsync(new EventQuery())).Any(e => e.Code == "ricetta-fallita")); + } + + [TestMethod] + [DataRow(2, DisplayName = "The video ended: the viewer moved on by itself")] + [DataRow(30, DisplayName = "The video stalled: the viewer is still on it")] + public async Task WithoutTheItemInTheAddressAVideoThatMayHaveEndedIsNeverClickedPastNorCountedAsOver(int onScreenSeconds) + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress: false, spacing: TimeSpan.FromSeconds(6)); + var nadia = bed.Bed.Site.Add(new ScriptedAccount("2003", "nadia.prova")); + var account = await bed.Bed.AddAccountAsync(nadia); + nadia.HighlightsWithItems.Add(("highlight:" + SummerId, "Estate", [])); + var video = new ViewerItem("v0", TimeSpan.FromSeconds(onScreenSeconds), Video: TimeSpan.FromSeconds(2)); + bed.Viewer.Add(ViewerAnswers.Highlight(nadia, SummerId, "Estate", [video, new ViewerItem("p1"), new ViewerItem("p2")])); + + // The Governor makes the permit for «p1» wait 6 s: the two-second video may be over by then, with the viewer on + // «p1» by itself, or it may have stalled. The address does not say which: closed, without clicking «next». + var outcome = await bed.RunHighlightAsync(account, SummerId); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + var saved = (await bed.ItemsOfAsync(account, SummerId)).ToArray(); + CollectionAssert.AreEqual(new[] { "v0" }, saved, "Only what was surely shown under its permit."); + CollectionAssert.IsSubsetOf(saved, bed.Viewer.Seen, "Nothing saved that was not on screen."); + Assert.AreEqual(0, bed.Viewer.NextClicks, "No click on a video that may have ended: it would have skipped «p1»."); + Assert.AreEqual(1, bed.Viewer.CloseClicks); + Assert.AreEqual(2, bed.Bed.Governor.Granted(ActionKind.StoryView), "For «v0», and for «p1» before it could come on screen."); + Assert.IsTrue((await bed.Bed.Db.Events.ListAsync(new EventQuery())).Any(e => e.Code == "visualizzatore-chiuso-prima"), "The early close is recorded."); + Assert.AreEqual("/profilo/nadia.prova/", await bed.Viewer.CurrentPathAsync(CancellationToken.None)); + } + + [TestMethod] + public async Task WithoutTheItemInTheAddressOnlyStoriesAreCountedAsStories() + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress: false); + var marta = bed.Bed.Site.Add(new ScriptedAccount("2002", "marta.prova") { LatestStoryAt = bed.Bed.Clock.Now.AddHours(-1) }); + var account = await bed.Bed.AddAccountAsync(marta); + + // A post of the account arrives with the stories, ahead of them: counted by position it would take the place of «s0». + var post = ScriptedSite.Post(marta, new ScriptedPost("post1", bed.Bed.Clock.Now.AddDays(-1))); + bed.Viewer.Add(ViewerAnswers.Stories(marta, [new ViewerItem("s0"), new ViewerItem("s1")], post)); + + var outcome = await bed.RunAsync(new RecipeRequest(RecipeKind.AccountStories, account.Id)); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + CollectionAssert.AreEqual(new[] { "s0", "s1" }, (await bed.Bed.Db.Entries.ListByAccountAsync(account.Id, new EntryListOptions { Kind = EntryKind.Story })).Select(e => e.InstagramId).Order(StringComparer.Ordinal).ToArray()); + Assert.AreEqual(0, (await bed.Bed.PostIdsAsync(account.Id)).Count, "The post received with the viewer is not saved by it."); + Assert.AreEqual(1, bed.Viewer.NextClicks); + Assert.AreEqual(1, bed.Viewer.CloseClicks); + Assert.AreEqual("/profilo/marta.prova/", await bed.Viewer.CurrentPathAsync(CancellationToken.None)); + } + + [TestMethod] + public async Task WithTheItemInTheAddressStoriesAreFollowedByTheAddressAsBefore() + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress: true); + var marta = bed.Bed.Site.Add(new ScriptedAccount("2002", "marta.prova") { LatestStoryAt = bed.Bed.Clock.Now.AddHours(-1) }); + var account = await bed.Bed.AddAccountAsync(marta); + await bed.Bed.AddAccountAsync(bed.Bed.Site.Add(new ScriptedAccount("2001", "luca.prova"))); + + // «s1» stays on screen half a second: the viewer moves on to «s2» by itself while the recipe watches. + var stories = ViewerAnswers.Stories(marta, [new ViewerItem("s0"), new ViewerItem("s1", TimeSpan.FromMilliseconds(500)), new ViewerItem("s2")]); + bed.Viewer.Add(stories with { Next = "luca.prova" }); + bed.Viewer.Add(ViewerAnswers.Stories(bed.Bed.Site.Accounts["luca.prova"], [new ViewerItem("l0")])); + + var outcome = await bed.RunAsync(new RecipeRequest(RecipeKind.AccountStories, account.Id)); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + Assert.AreEqual(3, outcome.NewEntries); + CollectionAssert.AreEqual(new[] { "s0", "s1", "s2" }, bed.Viewer.Seen, "Closed after the last story, before the next account."); + Assert.AreEqual(1, bed.Viewer.NextClicks, "From «s0» to «s1»; «s2» came by itself, and the address said so."); + Assert.AreEqual(3, bed.Bed.Governor.Granted(ActionKind.StoryView), "One permit per story shown."); + bed.AssertNoItemCameOnScreenBeforeItsPermit(); // «s2» too, that came by itself: its permit was asked on «s1» + Assert.AreEqual(1, bed.Viewer.CloseClicks); + Assert.AreEqual("/profilo/marta.prova/", await bed.Viewer.CurrentPathAsync(CancellationToken.None)); + } + + [TestMethod] + public async Task WithTheItemInTheAddressAPostArrivingAfterTheStoriesDoesNotHideTheLastOne() + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress: true); + var marta = bed.Bed.Site.Add(new ScriptedAccount("2002", "marta.prova") { LatestStoryAt = bed.Bed.Clock.Now.AddHours(-1) }); + var account = await bed.Bed.AddAccountAsync(marta); + await bed.Bed.AddAccountAsync(bed.Bed.Site.Add(new ScriptedAccount("2001", "luca.prova"))); + + // The grid of the profile comes in an answer of its own, after the viewer opened: a post of the account. + var post = ScriptedSite.Post(marta, new ScriptedPost("post1", bed.Bed.Clock.Now.AddDays(-1))); + bed.Viewer.Add(ViewerAnswers.Stories(marta, [new ViewerItem("s0"), new ViewerItem("s1"), new ViewerItem("s2")]) with + { + Next = "luca.prova", + Then = new JsonObject { ["contenuti"] = new JsonArray(post) }, + }); + bed.Viewer.Add(ViewerAnswers.Stories(bed.Bed.Site.Accounts["luca.prova"], [new ViewerItem("l0")])); + + var outcome = await bed.RunAsync(new RecipeRequest(RecipeKind.AccountStories, account.Id)); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + CollectionAssert.AreEqual(new[] { "s0", "s1", "s2" }, bed.Viewer.Seen, "Closed after «s2», the last story: never on to the next account."); + Assert.AreEqual(2, bed.Viewer.NextClicks); + Assert.AreEqual(1, bed.Viewer.CloseClicks); + Assert.AreEqual(3, bed.Bed.Governor.Granted(ActionKind.StoryView), "No permit for a story after the last one."); + Assert.IsFalse((await bed.Bed.Db.Events.ListAsync(new EventQuery())).Any(e => e.Code == "visualizzatore-altro-account")); + CollectionAssert.AreEqual(new[] { "s0", "s1", "s2" }, (await bed.Bed.Db.Entries.ListByAccountAsync(account.Id, new EntryListOptions { Kind = EntryKind.Story })).Select(e => e.InstagramId).Order(StringComparer.Ordinal).ToArray()); + } + + [TestMethod] + [DataRow(false)] + [DataRow(true)] + public async Task AViewerThatDoesNotCloseStopsTheRunAsATargetNotFoundAndKeepsWhatWasShown(bool itemInAddress) + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress); + var (_, account) = await bed.AddCollectionsAsync(); + bed.Viewer.IgnoresClose = true; // «viewer-close» is found, and the viewer stays open + + var outcome = await bed.RunHighlightAsync(account, SummerId); + Assert.AreEqual(RecipeStatus.TargetNotFound, outcome.Status, outcome.Message); + StringAssert.Contains(outcome.Message, SiteTargets.ViewerClose); + Assert.AreEqual(2, bed.Viewer.CloseClicks, "One more try on the way out."); + CollectionAssert.AreEqual(new[] { "e0", "e1", "e2", "e3" }, (await bed.ItemsOfAsync(account, SummerId)).ToArray(), "What was shown is saved all the same."); + } + + [TestMethod] + public async Task ARefusedPermitWithAViewerThatDoesNotCloseStopsAsATargetNotFound() + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress: false, storyGrants: 2); + var (_, account) = await bed.AddCollectionsAsync(); + bed.Viewer.IgnoresClose = true; + + // Refused on «e1», the viewer is closed at once, but it stays open: the run says so, as a target not found + // (the session stops and puts the page at rest), not as a refusal (it would go on with the viewer open). + var outcome = await bed.RunHighlightAsync(account, SummerId); + Assert.AreEqual(RecipeStatus.TargetNotFound, outcome.Status, outcome.Message); + StringAssert.Contains(outcome.Message, "Tetto delle storie raggiunto (prova)."); + StringAssert.Contains(outcome.Message, SiteTargets.ViewerClose); + Assert.AreEqual(1, bed.Viewer.CloseClicks); + CollectionAssert.AreEqual(new[] { "e0", "e1" }, (await bed.ItemsOfAsync(account, SummerId)).ToArray()); + } + + [TestMethod] + [DataRow(false)] + [DataRow(true)] + public async Task ACancellationWhileWatchingKeepsWhatWasShownAndThenGoesOn(bool itemInAddress) + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress); + var (_, account) = await bed.AddCollectionsAsync(); + using var cancel = new CancellationTokenSource(); + bed.Viewer.CancelAtWait = (3, cancel); // while watching «e2», as a pause or a signal that closes the session would + + var outcome = await bed.RunAsync(new RecipeRequest(RecipeKind.Highlight, account.Id, HighlightId: SummerId), cancel.Token); + Assert.AreEqual(RecipeStatus.Cancelled, outcome.Status, outcome.Message); + CollectionAssert.AreEqual(new[] { "e0", "e1", "e2" }, (await bed.ItemsOfAsync(account, SummerId)).ToArray(), "The three items shown are saved."); + Assert.AreEqual(0, bed.Viewer.CloseClicks, "A cancelled run leaves the page as it is."); + } + + [TestMethod] + public async Task ACancellationWhileWatchingStoriesKeepsTheStoriesShown() + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress: true); + var marta = bed.Bed.Site.Add(new ScriptedAccount("2002", "marta.prova") { LatestStoryAt = bed.Bed.Clock.Now.AddHours(-1) }); + var account = await bed.Bed.AddAccountAsync(marta); + bed.Viewer.Add(ViewerAnswers.Stories(marta, [new ViewerItem("s0"), new ViewerItem("s1"), new ViewerItem("s2")])); + using var cancel = new CancellationTokenSource(); + bed.Viewer.CancelAtWait = (2, cancel); // while watching «s1» + + var outcome = await bed.RunAsync(new RecipeRequest(RecipeKind.AccountStories, account.Id), cancel.Token); + Assert.AreEqual(RecipeStatus.Cancelled, outcome.Status, outcome.Message); + CollectionAssert.AreEqual(new[] { "s0", "s1" }, (await bed.Bed.Db.Entries.ListByAccountAsync(account.Id, new EntryListOptions { Kind = EntryKind.Story })).Select(e => e.InstagramId).Order(StringComparer.Ordinal).ToArray()); + Assert.AreEqual(0, bed.Viewer.CloseClicks); + } + + [TestMethod] + [DataRow(true)] + [DataRow(false)] + public async Task AClickThatOpensAnAddressTheMapDoesNotTakeForTheViewerIsClosedBeforeTheRecipeStops(bool closes) + { + // The map wants the story in the address; the site opens the viewer without it. + await using var bed = await ViewerBed.CreateAsync(itemInAddress: true, siteWritesItem: false); + var marta = bed.Bed.Site.Add(new ScriptedAccount("2002", "marta.prova") { LatestStoryAt = bed.Bed.Clock.Now.AddHours(-1) }); + var account = await bed.Bed.AddAccountAsync(marta); + bed.Viewer.Add(ViewerAnswers.Stories(marta, [new ViewerItem("s0"), new ViewerItem("s1")])); + bed.Viewer.IgnoresClose = !closes; + + var outcome = await bed.RunAsync(new RecipeRequest(RecipeKind.AccountStories, account.Id)); + Assert.AreEqual(closes ? RecipeStatus.Failed : RecipeStatus.TargetNotFound, outcome.Status, outcome.Message); + CollectionAssert.AreEqual(new[] { "s0" }, bed.Viewer.Seen, "No second click on what opened."); + Assert.AreEqual(1, bed.Viewer.CloseClicks, "What opened is closed like a viewer."); + Assert.AreEqual(closes ? "/profilo/marta.prova/" : "/storie/marta.prova/", await bed.Viewer.CurrentPathAsync(CancellationToken.None)); + Assert.AreEqual(0, (await bed.Bed.Db.Entries.ListByAccountAsync(account.Id, new EntryListOptions { Kind = EntryKind.Story })).Count); + } + + [TestMethod] + public async Task WithTheItemInTheAddressTheViewerIsFollowedFromTheItemItOpensOn() + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress: true); + var marta = bed.Bed.Site.Add(new ScriptedAccount("2002", "marta.prova") { LatestStoryAt = bed.Bed.Clock.Now.AddHours(-1) }); + var account = await bed.Bed.AddAccountAsync(marta); + bed.Viewer.Add(ViewerAnswers.Stories(marta, [new ViewerItem("s0"), new ViewerItem("s1"), new ViewerItem("s2")])); + bed.Viewer.StartAt = 1; // a site that opens on the first story not seen yet + + var outcome = await bed.RunAsync(new RecipeRequest(RecipeKind.AccountStories, account.Id)); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + CollectionAssert.AreEqual(new[] { "s1", "s2" }, (await bed.Bed.Db.Entries.ListByAccountAsync(account.Id, new EntryListOptions { Kind = EntryKind.Story })).Select(e => e.InstagramId).Order(StringComparer.Ordinal).ToArray(), "«s0» was received, never shown."); + } + + [TestMethod] + public async Task ProfilesSuggestedBesideTheProfileAreNotItsPage() + { + await using var bed = await ViewerBed.CreateAsync(itemInAddress: false); + var account = await bed.Bed.AddAccountAsync(new ScriptedAccount("2003", "nadia.prova")); // its profile never arrives + bed.Viewer.AlongsideEveryPage = new JsonObject + { + ["suggeriti"] = new JsonArray(ScriptedSite.Profile(new ScriptedAccount("4001", "altro.prova")), ScriptedSite.Profile(new ScriptedAccount("4002", "ancora.prova"))), + }; + + var outcome = await bed.RunHighlightAsync(account, SummerId); + Assert.AreEqual(RecipeStatus.Completed, outcome.Status, outcome.Message); + Assert.AreEqual("La pagina è arrivata vuota: nessun dato da leggere.", outcome.Message, "An empty page, not «the collection is not on the profile»."); + Assert.AreEqual(0, bed.Bed.Governor.Granted(ActionKind.StoryView)); + Assert.IsNull(bed.Viewer.OpenedAt); + } +} + +/// What the viewer of the scripted site receives, in the format of the test site (lettori.prova.json). +internal static class ViewerAnswers +{ + /// A collection of as the viewer receives it: «highlight:» before the identifier, as Instagram writes it. + public static Viewable Highlight(ScriptedAccount owner, string id, string title, IReadOnlyList items, params Viewable[] alsoReceived) + { + var node = HighlightNode(owner, id, title, items); + var all = new JsonArray(node); + foreach (var other in alsoReceived) + { + all.Add(HighlightNode(owner, other.Key, other.Title, other.Items)); + } + + return new Viewable("evidenza", id, title, items, new JsonObject { ["raccolte"] = all }); + } + + private static JsonObject HighlightNode(ScriptedAccount owner, string id, string title, IReadOnlyList items) => new() + { + ["numero"] = "highlight:" + id, + ["titolo"] = title, + ["autore"] = ScriptedSite.Lite(owner), + ["contenuti"] = new JsonArray([.. items.Select(i => (JsonNode)Item(owner, i, expires: false))]), + }; + + /// The stories of as the viewer receives them, after when given. + public static Viewable Stories(ScriptedAccount owner, IReadOnlyList items, JsonObject? before = null) + { + var body = new JsonObject(); + if (before is not null) + { + body["contenuti"] = new JsonArray(before); + } + + body["storie"] = new JsonArray([.. items.Select(i => (JsonNode)Item(owner, i, expires: true))]); + body["autore"] = ScriptedSite.Lite(owner); + return new Viewable("storie", owner.Username, owner.Username, items, body); + } + + private static JsonObject Item(ScriptedAccount owner, ViewerItem item, bool expires) + { + var takenAt = new DateTimeOffset(2026, 10, 13, 6, 0, 0, TimeSpan.Zero); + var node = ScriptedSite.Post(owner, new ScriptedPost(item.Id, takenAt) + { + ExpiresAt = expires ? takenAt.AddHours(24) : null, + Url = $"https://cdn.prova/m/{item.Id}.jpg", + }); + if (item.Video is { } duration) + { + node["filmati"] = new JsonArray(new JsonObject { ["indirizzo"] = $"https://cdn.prova/m/{item.Id}.mp4", ["larghezza"] = 720, ["altezza"] = 1280, ["audio"] = true }); + node["durata"] = duration.TotalSeconds; + } + + return node; + } +} + +/// An item of a viewer: how long it stays on screen before the viewer moves on by itself, and its video length. +internal sealed record ViewerItem(string Id, TimeSpan? OnScreen = null, TimeSpan? Video = null); + +/// What a viewer shows for one owner (an account, or a collection), and what the page receives when it opens. +/// «storie» or «evidenza», the first segment of its address. +/// The owner in the address: user name, or identifier of the collection. +internal sealed record Viewable(string Kind, string Key, string Title, IReadOnlyList Items, JsonObject Body) +{ + /// The owner the viewer moves on to by itself after the last item (another account, another collection). + public string? Next { get; init; } + + /// An answer of its own the page receives right after (the grid of the profile, say). + public JsonObject? Then { get; init; } +} + +/// +/// The scripted site with a viewer, as a decorator: clicking a story ring or a collection opens its viewer on the first +/// item (or on ) and hands the capture what the page receives; «viewer-next» moves one item on; an +/// item moves on by itself after its time on screen (time is the virtual clock, which the waits move on); after the last +/// item the viewer goes on to or closes; «viewer-close» goes back to the page it was opened +/// from. The address carries the item shown only with . +/// +internal sealed class ViewerSite(ScriptedSite site, CaptureCollector capture, VirtualClock clock) : IPageDriver +{ + private static readonly TimeSpan PhotoOnScreen = TimeSpan.FromMinutes(1); // long: only clicks move a photo on, unless a test says so + + private readonly Dictionary _viewables = new(StringComparer.OrdinalIgnoreCase); + private Viewable? _open; + private int _index; + private DateTimeOffset _since; + private int _responses; + private int _waits; + + public bool AddressWithItem { get; init; } + + /// The item the viewer opens on (a site that resumes from the first item not seen). + public int StartAt { get; set; } + + /// The click on «next» (from 1) that throws, as a broken connection with the browser would. + public int? FailAtNextClick { get; set; } + + /// «viewer-close» is found, but the viewer stays open (a click that lands on the wrong element). + public bool IgnoresClose { get; set; } + + /// The wait (from 1) during which the source is cancelled: the wait then throws, as would. + public (int Wait, CancellationTokenSource Source)? CancelAtWait { get; set; } + + /// An answer unrelated to the account (suggested profiles) that arrives with every page opened. + public JsonObject? AlongsideEveryPage { get; set; } + + /// The items that came on screen, in order. + public List Seen { get; } = []; + + public int NextClicks { get; private set; } + + public int CloseClicks { get; private set; } + + /// The address of the first viewer opened. + public string? OpenedAt { get; private set; } + + public double WaitMultiplier { get; init; } = 1; + + public void Add(Viewable viewable) => _viewables[viewable.Kind + "/" + viewable.Key] = viewable; + + /// How many items have come on screen until now. + public int OnScreenSoFar() + { + Tick(); + return Seen.Count; + } + + public void BeginSession(double mood) => site.BeginSession(mood); + + public async Task OpenAsync(string path, CancellationToken ct) + { + _open = null; + var load = await site.OpenAsync(path, ct); + if (AlongsideEveryPage is { } other) + { + Deliver(other); + } + + return load; + } + + public Task CurrentPathAsync(CancellationToken ct) + { + Tick(); + if (_open is not { } open) + { + return Task.FromResult(site.CurrentPath); + } + + var path = "/" + open.Kind + "/" + Uri.EscapeDataString(open.Key) + "/"; + return Task.FromResult(AddressWithItem ? path + Uri.EscapeDataString(open.Items[_index].Id) + "/" : path); + } + + public Task IsOnSiteAsync(CancellationToken ct) => Task.FromResult(true); + + public Task FindAsync(string target, IReadOnlyDictionary? parameters, CancellationToken ct) => site.FindAsync(target, parameters, ct); + + public async Task ClickAsync(string target, IReadOnlyDictionary? parameters, CancellationToken ct) + { + Tick(); + var check = await site.FindAsync(target, parameters, ct); + if (!check.Found) + { + return check; + } + + var clicked = new TargetCheck(target, TargetCheckStatus.Clicked, 1, "Cliccato."); + switch (target) + { + case SiteTargets.ProfileHighlight: + return Show("evidenza/" + parameters!["id"]) ? clicked : NotFound(target); + case SiteTargets.ProfileStoryRing or SiteTargets.HomeStory: + return Show("storie/" + parameters!["username"]) ? clicked : NotFound(target); + case SiteTargets.ViewerNext when _open is not null: + if (++NextClicks == FailAtNextClick) + { + throw new InvalidOperationException("Il collegamento con il navigatore si è interrotto (prova)."); + } + + MoveOn(clock.Now); + return clicked; + case SiteTargets.ViewerClose when _open is not null: + CloseClicks++; + if (!IgnoresClose) + { + _open = null; + } + + return clicked; + default: + return clicked; + } + } + + public Task ScrollBurstAsync(CancellationToken ct) => site.ScrollBurstAsync(ct); + + public Task WaitAfterLoadAsync(CancellationToken ct) => site.WaitAfterLoadAsync(ct); + + public Task WaitAsync(TimeSpan duration, CancellationToken ct) + { + clock.Advance(duration); + if (CancelAtWait is { } cancel && ++_waits == cancel.Wait) + { + cancel.Source.Cancel(); + } + + return ct.IsCancellationRequested ? Task.FromCanceled(ct) : Task.CompletedTask; + } + + public Task MaybeDistractionAsync(CancellationToken ct) => Task.FromResult(false); + + public Task HasSessionCookieAsync(CancellationToken ct) => Task.FromResult(true); + + public Task RestAsync(CancellationToken ct) + { + _open = null; + return site.RestAsync(ct); + } + + private static TargetCheck NotFound(string target) => new(target, TargetCheckStatus.NotFound, 0, $"Bersaglio «{target}» non trovato."); + + private static TimeSpan OnScreen(ViewerItem item) => item.OnScreen ?? item.Video ?? PhotoOnScreen; + + private bool Show(string key) + { + if (!_viewables.TryGetValue(key, out var viewable)) + { + return false; + } + + Open(viewable, StartAt, clock.Now); + OpenedAt ??= "/" + viewable.Kind + "/" + viewable.Key + "/"; + return true; + } + + private void Open(Viewable viewable, int index, DateTimeOffset since) + { + _open = viewable; + _index = index; + _since = since; + Seen.Add(viewable.Items[index].Id); + Deliver(viewable.Body); + if (viewable.Then is { } then) + { + Deliver(then); + } + } + + /// The viewer moves on by itself when an item has been on screen for its time. + private void Tick() + { + while (_open is { } open && clock.Now - _since >= OnScreen(open.Items[_index])) + { + MoveOn(_since + OnScreen(open.Items[_index])); + } + } + + private void MoveOn(DateTimeOffset at) + { + var open = _open!; + if (_index + 1 < open.Items.Count) + { + _index++; + _since = at; + Seen.Add(open.Items[_index].Id); + return; + } + + if (open.Next is { } next && _viewables.TryGetValue(open.Kind + "/" + next, out var following)) + { + Open(following, 0, at); + return; + } + + _open = null; // after the last item, with nothing after it, the viewer closes by itself + } + + private void Deliver(JsonObject body) + { + var id = "v" + Interlocked.Increment(ref _responses).ToString(CultureInfo.InvariantCulture); + using var document = JsonDocument.Parse(body.ToJsonString()); + capture.Accept(new ResponseDescriptor(id, HostKind.Site, "http://prova.local/dati", "prova.local", "/dati", 200, "application/json", "Fetch", false, clock.Now), document.RootElement); + } +} + +/// A scripted bed whose page has a viewer; the Governor can make every story permit wait, like its minimum spacing. +internal sealed class ViewerBed : IAsyncDisposable +{ + private ViewerBed(ScriptedBed bed, ViewerSite viewer, PermitWatcher permits, RecipeRunner runner) + { + Bed = bed; + Viewer = viewer; + Permits = permits; + Runner = runner; + } + + public ScriptedBed Bed { get; } + + public ViewerSite Viewer { get; } + + /// What was on screen at each story permit granted. + public PermitWatcher Permits { get; } + + public RecipeRunner Runner { get; } + + /// Whether the map's viewer addresses carry the item shown. + /// Every story permit first waits this long (the Governor's minimum spacing). + /// Mood × pace of the page driver. + /// The random source of the recipes (a seeded one by default). + /// Whether the site writes the item in the address (as the map says, by default). + /// After this many story permits the Governor refuses, while the budget says there is room. + public static async Task CreateAsync(bool itemInAddress, TimeSpan? spacing = null, double waitMultiplier = 1, IRandomSource? random = null, bool? siteWritesItem = null, int? storyGrants = null) + { + var pages = ScriptedBed.TestSitePages.ToDictionary(p => p.Key, p => p.Value, StringComparer.Ordinal); + if (!itemInAddress) + { + pages[SitePages.StoryViewer] = "/storie/{username}/"; + pages[SitePages.HighlightViewer] = "/evidenza/{highlight}/"; + } + + var bed = await ScriptedBed.CreateAsync(new SiteMap("prova", pages, SiteTargets.All, SiteTargets.All)); + var viewer = new ViewerSite(bed.Site, bed.Runner.Env.Capture, bed.Clock) { AddressWithItem = siteWritesItem ?? itemInAddress, WaitMultiplier = waitMultiplier }; + IGovernor governor = storyGrants is { } grants ? new StoryGrantsGovernor(bed.Governor, grants) : bed.Governor; + governor = spacing is { } wait ? new SpacedGovernor(governor, bed.Clock, wait) : governor; + var permits = new PermitWatcher(governor, viewer); + return new ViewerBed(bed, viewer, permits, new RecipeRunner(bed.Runner.Env with { Driver = viewer, Governor = permits, Random = random ?? bed.Runner.Env.Random })); + } + + /// + /// «nadia.prova» with two collections on her profile, «Estate» (e0–e3, or ) and «Viaggi» + /// (v0–v1): the viewer of «Estate» receives both, as Instagram's did, and goes on to «Viaggi» by itself after the last item. + /// + public async Task<(ScriptedAccount Scripted, Account Account)> AddCollectionsAsync(IReadOnlyList? summer = null) + { + var nadia = Bed.Site.Add(new ScriptedAccount("2003", "nadia.prova")); + var account = await Bed.AddAccountAsync(nadia); + nadia.HighlightsWithItems.Add(("highlight:17900000000000001", "Estate", [])); + nadia.HighlightsWithItems.Add(("highlight:17900000000000002", "Viaggi", [])); + summer ??= [new("e0"), new("e1"), new("e2"), new("e3")]; + IReadOnlyList travel = [new("v0"), new("v1")]; + var travelView = ViewerAnswers.Highlight(nadia, "17900000000000002", "Viaggi", travel); + Viewer.Add(ViewerAnswers.Highlight(nadia, "17900000000000001", "Estate", summer, travelView) with { Next = "17900000000000002" }); + Viewer.Add(travelView); + return (nadia, account); + } + + /// + /// Every item that came on screen had its story permit before (rule 7, §6.3): the n-th permit was granted before + /// the n-th item came, and no item came without one. + /// + public void AssertNoItemCameOnScreenBeforeItsPermit() + { + var atPermit = Permits.OnScreenAtStoryPermit; + for (var i = 0; i < atPermit.Count; i++) + { + Assert.IsTrue(atPermit[i] <= i, $"Story permit {i + 1} granted when {atPermit[i]} items had already come on screen ({string.Join(", ", Viewer.Seen)})."); + } + + Assert.IsTrue(Viewer.Seen.Count <= atPermit.Count, $"{Viewer.Seen.Count} items came on screen ({string.Join(", ", Viewer.Seen)}) with {atPermit.Count} story permits."); + } + + public Task RunAsync(RecipeRequest request, CancellationToken ct = default) => Runner.RunAsync(request, Bed.Session, ct); + + public Task RunHighlightAsync(Account account, string highlightId) => + RunAsync(new RecipeRequest(RecipeKind.Highlight, account.Id, HighlightId: highlightId)); + + /// Instagram identifiers of the items of a collection, in their order. + public async Task> ItemsOfAsync(Account account, string highlightId) + { + var highlight = await Bed.Db.Highlights.FindAsync(account.Id, highlightId) ?? throw new AssertFailedException($"Raccolta {highlightId} non salvata."); + var ids = new List(); + foreach (var item in (await Bed.Db.Highlights.ListItemsAsync(highlight.Id)).OrderBy(i => i.Position)) + { + ids.Add((await Bed.Db.Entries.GetAsync(item.EntryId))!.InstagramId!); + } + + return ids; + } + + public ValueTask DisposeAsync() => Bed.DisposeAsync(); +} + +/// Grants what the inner Governor grants, but every story permit first waits (its minimum spacing). +internal sealed class SpacedGovernor(IGovernor inner, VirtualClock clock, TimeSpan spacing) : IGovernor +{ + public Task RequestAsync(ActionKind kind, long? accountId, CancellationToken ct) + { + if (kind == ActionKind.StoryView) + { + clock.Advance(spacing); + } + + return inner.RequestAsync(kind, accountId, ct); + } +} + +/// Grants what the inner Governor grants, but refuses story permits after (the budget view still says there is room). +internal sealed class StoryGrantsGovernor(IGovernor inner, int grants) : IGovernor +{ + private int _granted; + + public Task RequestAsync(ActionKind kind, long? accountId, CancellationToken ct) => + kind == ActionKind.StoryView && Interlocked.Increment(ref _granted) > grants + ? Task.FromResult(Permit.Deny(kind, accountId, DenialReason.HourlyBudgetReached, "Tetto delle storie raggiunto (prova).")) + : inner.RequestAsync(kind, accountId, ct); +} + +/// Passes every request on and records, at each story permit granted, how many items had come on screen. +internal sealed class PermitWatcher(IGovernor inner, ViewerSite viewer) : IGovernor +{ + public List OnScreenAtStoryPermit { get; } = []; + + public async Task RequestAsync(ActionKind kind, long? accountId, CancellationToken ct) + { + var permit = await inner.RequestAsync(kind, accountId, ct); + if (kind == ActionKind.StoryView && permit.Granted) + { + OnScreenAtStoryPermit.Add(viewer.OnScreenSoFar()); + } + + return permit; + } +} + +/// A degenerate random source: always the same value (the draws of §7.2 come out the same every time). +internal sealed class FixedRandom(double value) : IRandomSource +{ + public double NextDouble() => value; +} diff --git a/tests/Febe.Tests/Engine/CollectionConfigurationTests.cs b/tests/Febe.Tests/Engine/CollectionConfigurationTests.cs new file mode 100644 index 0000000..5d35548 --- /dev/null +++ b/tests/Febe.Tests/Engine/CollectionConfigurationTests.cs @@ -0,0 +1,151 @@ +using Febe.Core.Collection; +using Febe.Core.Collection.Readers; +using Febe.Core.Domain; +using Febe.Core.Engine; +using Febe.Core.Storage; +using Febe.Tests.Engine.Support; +using Febe.Tests.Support; + +namespace Febe.Tests.Engine; + +/// +/// The collection configuration in use (reader vocabulary and target map of the site, as loaded): what the log says of +/// it, the copies in the Data folder that hide newer embedded files, and the suspensions counted against other files, +/// cleared once when it changes. +/// +[TestClass] +public sealed class CollectionConfigurationTests +{ + private static readonly DateTimeOffset Morning = EngineTestBed.Local(2026, 10, 14, 6, 0); + + [TestMethod] + public async Task AChangedCollectionConfigurationLiftsTheSuspensionsOfTheOldFilesOnce() + { + await using var bed = await EngineTestBed.CreateAsync(Morning); + await bed.AddAccountAsync("strano.demo", followed: false, Frequency.High); + + // What the first Instagram files left in Alberto's database: suspended recipes and failures counted. + var since = Morning.AddDays(-3).ToUnixTimeMilliseconds(); + await bed.Db.Settings.SetAsync(EngineSettingKeys.SuspendedRecipes, $"AccountStories={since};ProfileCheck={since}"); + await bed.Db.Settings.SetAsync(EngineSettingKeys.RecipeFailures, "AccountStories=3;Backfill=2;ProfileCheck=3"); + + var runner = new ScriptedRunner(bed.Governor, bed.Clock); + var changed = false; + var host = await bed.StartAsync(runner, async h => changed = await h.ApplyCollectionConfigurationAsync("impronta-1")); + Assert.IsTrue(changed, "The first start that knows the configuration counts as a change."); + Assert.IsEmpty(host.SuspendedRecipes); + Assert.IsNull(await bed.Db.Settings.GetAsync(EngineSettingKeys.SuspendedRecipes)); + Assert.IsNull(await bed.Db.Settings.GetAsync(EngineSettingKeys.RecipeFailures)); + Assert.AreEqual("impronta-1", await bed.Db.Settings.GetAsync(EngineSettingKeys.CollectionConfiguration)); + + var line = (await bed.Db.Events.ListAsync(new EventQuery())).Single(e => e.Code == EngineEventCodes.CollectionConfigurationChanged); + Assert.AreEqual("La configurazione della raccolta è cambiata: le ricette sospese ripartono («Le storie», «Il controllo del profilo»).", line.Message); + Assert.AreEqual(EventSeverity.Info, line.Severity); + + await bed.RunUntilAsync(Morning.AddDays(1)); + Assert.IsTrue(runner.Runs.Any(r => r.Request.Kind == RecipeKind.ProfileCheck && r.Status == RecipeStatus.Completed), "The recipe runs again."); + Assert.IsFalse(await host.ApplyCollectionConfigurationAsync("impronta-1"), "Same files: nothing to do."); + + // A restart with the same files changes nothing; new files with nothing to clear say nothing. + await bed.ReopenAsync(8); + var again = true; + var reopened = await bed.StartAsync(new ScriptedRunner(bed.Governor, bed.Clock), async h => again = await h.ApplyCollectionConfigurationAsync("impronta-1")); + Assert.IsFalse(again); + Assert.IsTrue(await reopened.ApplyCollectionConfigurationAsync("impronta-2")); + Assert.AreEqual("impronta-2", await bed.Db.Settings.GetAsync(EngineSettingKeys.CollectionConfiguration)); + Assert.AreEqual(1, (await bed.Db.Events.ListAsync(new EventQuery())).Count(e => e.Code == EngineEventCodes.CollectionConfigurationChanged)); + } + + [TestMethod] + public async Task FailuresAloneAreClearedWithTheirOwnLine() + { + await using var bed = await EngineTestBed.CreateAsync(Morning); + await bed.Db.Settings.SetAsync(EngineSettingKeys.RecipeFailures, "ProfileCheck=2"); + var host = new EngineHost(bed.Services, new ScriptedRunner(bed.Governor, bed.Clock)); + await using (host) + { + Assert.IsTrue(await host.ApplyCollectionConfigurationAsync("impronta")); + } + + Assert.IsNull(await bed.Db.Settings.GetAsync(EngineSettingKeys.RecipeFailures)); + var line = (await bed.Db.Events.ListAsync(new EventQuery())).Single(e => e.Code == EngineEventCodes.CollectionConfigurationChanged); + Assert.AreEqual("La configurazione della raccolta è cambiata: i problemi delle ricette contati finora non valgono più.", line.Message); + } + + [TestMethod] + public void TheEmbeddedFilesAreDescribedWithoutTheirContentAndFingerprinted() + { + var configuration = CollectionConfiguration.Describe("prova", ReaderVocabulary.LoadTestSite(), SiteMap.LoadTestSite()); + Assert.IsFalse(configuration.VocabularyFile.IsOverride); + Assert.IsFalse(configuration.MapFile.IsOverride); + Assert.IsEmpty(configuration.Blocked); + Assert.IsEmpty(configuration.Warnings); + CollectionAssert.AreEqual( + new[] + { + "Vocabolario dei lettori per «prova»: il file incorporato in Febe (lettori.prova.json), confermato.", + "Mappa dei bersagli per «prova»: il file incorporato in Febe (bersagli.prova.json), tutte le voci compilate.", + "Con questa configurazione tutte le ricette possono girare.", + }, + configuration.Lines.ToArray()); + Assert.MatchesRegex("^[0-9a-f]{64}$", configuration.Fingerprint); + Assert.AreEqual(configuration.Fingerprint, CollectionConfiguration.Describe("prova", ReaderVocabulary.LoadTestSite(), SiteMap.LoadTestSite()).Fingerprint); + } + + [TestMethod] + public void ACopyInTheDataFolderIsNamedAndOneThatHidesABetterEmbeddedFileIsAWarning() + { + using var folder = new TempFolder("configurazione"); + var vocabularyText = SiteMap.ReadEmbeddedText("lettori.prova.json"); + var mapText = SiteMap.ReadEmbeddedText("bersagli.prova.json"); + var embedded = CollectionConfiguration.Describe("prova", ReaderVocabulary.LoadTestSite(), SiteMap.LoadTestSite()); + + // The same map with other line endings is the same configuration. + var mapPath = folder.Combine("bersagli.prova.json"); + File.WriteAllText(mapPath, mapText.Contains("\r\n", StringComparison.Ordinal) ? mapText.Replace("\r\n", "\n", StringComparison.Ordinal) : mapText.Replace("\n", "\r\n", StringComparison.Ordinal)); + var sameMap = Loaded(folder, "prova"); + Assert.IsTrue(sameMap.MapFile.IsOverride); + Assert.AreEqual(mapPath, sameMap.MapFile.OverridePath); + Assert.AreEqual(embedded.Fingerprint, sameMap.Fingerprint); + Assert.IsEmpty(sameMap.Warnings); + StringAssert.Contains(sameMap.Lines[1], $"la copia nella cartella dei dati ({mapPath})"); + + // A stale vocabulary, still a hypothesis, hides the confirmed embedded one: every recipe would be refused. + var vocabularyPath = folder.Combine("lettori.prova.json"); + File.WriteAllText(vocabularyPath, vocabularyText.Replace("\"confermato\"", "\"ipotesi\"", StringComparison.Ordinal)); + var stale = Loaded(folder, "prova"); + Assert.AreNotEqual(embedded.Fingerprint, stale.Fingerprint); + CollectionAssert.AreEqual(Enum.GetValues(), stale.Blocked.ToArray()); + Assert.HasCount(1, stale.Warnings); + StringAssert.Contains(stale.Warnings[0], vocabularyPath); + StringAssert.Contains(stale.Warnings[0], "è ancora un'ipotesi, mentre quello incorporato in Febe è confermato"); + StringAssert.EndsWith(stale.Lines[0], ", ipotesi."); + StringAssert.StartsWith(stale.Lines[2], "Con questa configurazione non possono girare 9 ricette su 9: Giro dei seguiti, "); + + // A map that lacks what the embedded one has leaves recipes still that could run. + File.Delete(vocabularyPath); + File.WriteAllText(mapPath, """{ "site": "prova", "pages": { "home": "/" } }"""); + var poor = Loaded(folder, "prova"); + CollectionAssert.Contains(poor.Blocked.ToArray(), RecipeKind.ProfileCheck); + CollectionAssert.DoesNotContain(poor.Blocked.ToArray(), RecipeKind.FollowingSweep); + Assert.HasCount(1, poor.Warnings); + StringAssert.Contains(poor.Warnings[0], $"La mappa dei bersagli in {mapPath} lascia ferme ricette che con quella incorporata in Febe potrebbero girare ("); + StringAssert.Contains(poor.Warnings[0], "Controllo del profilo"); + + // Never what is in the files. + var note = ReaderVocabulary.LoadTestSite().Note!; + foreach (var text in stale.Lines.Concat(stale.Warnings).Concat(poor.Lines).Concat(poor.Warnings)) + { + Assert.IsFalse(text.Contains(note, StringComparison.Ordinal), text); + Assert.IsFalse(text.Contains("/profilo/", StringComparison.Ordinal), text); + } + } + + /// The files loaded as the collection pipeline loads them: the Data-folder copy when it exists. + private static CollectionConfiguration Loaded(TempFolder folder, string site) + { + var vocabulary = ReaderVocabulary.LoadOrEmbedded(folder.Combine($"lettori.{site}.json"), $"lettori.{site}.json"); + var map = SiteMap.LoadOrEmbedded(folder.Combine($"bersagli.{site}.json"), $"bersagli.{site}.json"); + return CollectionConfiguration.Describe(site, vocabulary, map); + } +} diff --git a/tests/Febe.Tests/Engine/EngineHostTests.cs b/tests/Febe.Tests/Engine/EngineHostTests.cs index 79a9e70..f15c7f2 100644 --- a/tests/Febe.Tests/Engine/EngineHostTests.cs +++ b/tests/Febe.Tests/Engine/EngineHostTests.cs @@ -607,4 +607,28 @@ public sealed class EngineHostTests Assert.HasCount(foodLooks, Looks("17900000002")); Assert.IsTrue(Looks("17900000001").Count > travelLooks); } + + [TestMethod] + public async Task ASinglePostQueuedByTheCollectionRunsInsteadOfBeingCancelledByTheQueue() + { + await using var bed = await EngineTestBed.CreateAsync(Morning); + var account = await bed.AddAccountAsync("uno.demo", followed: true); + var paused = await bed.AddAccountAsync("due.demo", followed: true, state: AccountState.Paused); + + // As CollectionWriter.QueueSinglePostAsync queues it for an address that expired (spec §6.5 point 5). + EngineTask SinglePost(Account a, string entryId) => + new() { Kind = EngineTaskKind.SinglePost, AccountId = a.Id, Payload = entryId, DueAt = Morning, CreatedAt = Morning }; + var refresh = await bed.Db.Tasks.EnqueueAsync(SinglePost(account, "41")); + var held = await bed.Db.Tasks.EnqueueAsync(SinglePost(paused, "42")); + var runner = new ScriptedRunner(bed.Governor, bed.Clock); + bed.Start(runner); + await bed.RunUntilAsync(Morning.AddDays(1)); + + var runs = runner.Runs.Where(r => r.Request.Kind == RecipeKind.SinglePost).ToList(); + Assert.HasCount(1, runs, "The expired address is refreshed once, on the account that may be contacted."); + Assert.AreEqual(41L, runs[0].Request.EntryId); + Assert.AreEqual(account.Id, runs[0].Request.AccountId); + Assert.AreEqual(EngineTaskState.Done, (await bed.Db.Tasks.GetAsync(refresh.Id))!.State); + Assert.AreEqual(EngineTaskState.Cancelled, (await bed.Db.Tasks.GetAsync(held.Id))!.State, "«In pausa»: not contacted."); + } } diff --git a/tests/Febe.Tests/Engine/NotConfiguredRecipeTests.cs b/tests/Febe.Tests/Engine/NotConfiguredRecipeTests.cs new file mode 100644 index 0000000..0d61444 --- /dev/null +++ b/tests/Febe.Tests/Engine/NotConfiguredRecipeTests.cs @@ -0,0 +1,253 @@ +using Febe.Core.Abstractions; +using Febe.Core.Collection; +using Febe.Core.Collection.Readers; +using Febe.Core.Collection.Recipes; +using Febe.Core.Domain; +using Febe.Core.Engine; +using Febe.Core.Storage; +using Febe.Data; +using Febe.Tests.Browser.TestSupport; +using Febe.Tests.Collection.Support; +using Febe.Tests.Engine.Support; +using Febe.Tests.Support; + +namespace Febe.Tests.Engine; + +/// +/// A recipe the files of the site do not let run (target map or reader vocabulary incomplete) is a state of the +/// configuration, not a failure (spec §6.4): never counted towards suspension, not planned, said once per process. +/// +[TestClass] +public sealed class NotConfiguredRecipeTests +{ + private const string ProfileReason = "«Controllo del profilo» non può girare su instagram: la mappa dei bersagli non è ancora compilata (mancano pagina «profile»)."; + private const string SweepReason = "«Giro dei seguiti» non può girare su instagram: la mappa dei bersagli non è ancora compilata (mancano pagina «home»)."; + private const string ListReason = "«Elenco dei seguiti» non può girare su instagram: la mappa dei bersagli non è ancora compilata (mancano pagina «following»)."; + private const string StoriesReason = "«Storie di un account» non può girare su instagram: la mappa dei bersagli non è ancora compilata (mancano bersaglio «profile-story-ring»)."; + + private static readonly DateTimeOffset Morning = EngineTestBed.Local(2026, 10, 14, 6, 0); + + [TestMethod] + public async Task ARecipeTheConfigurationDoesNotLetRunIsNotPlannedNotCountedAndSaidOnce() + { + await using var bed = await EngineTestBed.CreateAsync(Morning); + var account = await bed.AddAccountAsync("lontano.demo", followed: false, Frequency.High); + var runner = new ScriptedRunner(bed.Governor, bed.Clock) { NotConfigured = k => k == RecipeKind.ProfileCheck ? ProfileReason : null }; + var host = bed.Start(runner); + await bed.RunUntilAsync(Morning.AddDays(2)); + + Assert.IsFalse(runner.Runs.Any(r => r.Request.Kind == RecipeKind.ProfileCheck), "Never run: it would only be refused."); + Assert.IsFalse((await bed.Db.Tasks.ListPendingAsync(1000)).Any(t => t.Kind == EngineTaskKind.ProfileCheck), "Nor planned."); + Assert.IsEmpty(host.SuspendedRecipes); + Assert.IsNull(await bed.Db.Settings.GetAsync(EngineSettingKeys.RecipeFailures), "No failure counted."); + + var events = await bed.Db.Events.ListAsync(new EventQuery()); + var said = events.Where(e => e.Code == EngineEventCodes.RecipeNotConfigured).ToList(); + Assert.HasCount(1, said, "Once per recipe and process, not at every session."); + Assert.AreEqual(ProfileReason + SessionComposer.NotConfiguredTail, said[0].Message); + Assert.AreEqual(EventSeverity.Warning, said[0].Severity); + Assert.IsFalse(events.Any(e => e.Code is EngineEventCodes.RecipeSuspended or EngineEventCodes.TargetNotFound or EngineEventCodes.FormatUnrecognized)); + Assert.IsGreaterThan(1, events.Count(e => e.Code == EngineEventCodes.SessionEnded), "Several sessions went by."); + + // «Controlla ora» says why at once instead of queueing a check that cannot run. + var check = await host.CheckNowAsync(account.Id); + Assert.AreEqual(CheckNowStatus.Refused, check.Status); + Assert.AreEqual(ProfileReason + " Il controllo non parte.", check.Message); + } + + [TestMethod] + public async Task WithoutTheSweepFollowedStoriesAreCheckedOneByOneAndACommandThatCannotRunIsDropped() + { + await using var bed = await EngineTestBed.CreateAsync(Morning); + await bed.AddAccountAsync("vicina.demo", followed: true); + var runner = new ScriptedRunner(bed.Governor, bed.Clock) + { + NotConfigured = k => k switch + { + RecipeKind.FollowingSweep => SweepReason, + RecipeKind.FollowingList => ListReason, + _ => null, + }, + }; + var host = bed.Start(runner); + await bed.RunUntilAsync(Morning.AddDays(1)); + + Assert.IsFalse(runner.Runs.Any(r => r.Request.Kind == RecipeKind.FollowingSweep)); + Assert.IsFalse((await bed.Db.Tasks.ListPendingAsync(1000)).Any(t => t.Kind == EngineTaskKind.FollowingSweep), "The sweep is not shown in the queue."); + Assert.IsTrue(runner.Runs.Any(r => r.Request.Kind == RecipeKind.AccountStories), "No sweep covers the stories bar: they are checked explicitly."); + + await host.RequestFollowingListAsync(); + await bed.RunForAsync(TimeSpan.FromHours(8)); + Assert.IsFalse(runner.Runs.Any(r => r.Request.Kind == RecipeKind.FollowingList)); + Assert.IsFalse((await bed.Db.Tasks.ListPendingAsync(1000)).Any(t => t.Kind == EngineTaskKind.FollowingList), "Alberto's command is dropped, not left waiting for ever."); + + var said = (await bed.Db.Events.ListAsync(new EventQuery())).Where(e => e.Code == EngineEventCodes.RecipeNotConfigured).Select(e => e.Message).ToList(); + Assert.AreEqual(1, said.Count(m => m.StartsWith(SweepReason, StringComparison.Ordinal))); + Assert.AreEqual(1, said.Count(m => m.StartsWith(ListReason, StringComparison.Ordinal))); + Assert.AreEqual(1, said.Count(m => m == $"La tua richiesta (l'elenco dei profili che segui) è annullata: {ListReason}")); + Assert.IsEmpty(host.SuspendedRecipes); + } + + [TestMethod] + public async Task WhileTheStoriesCannotRunAProfileNotFollowedIsVisitedOnlyForItsPosts() + { + await using var bed = await EngineTestBed.CreateAsync(Morning); + var account = await bed.AddAccountAsync("lontana.demo", followed: false, Frequency.Low); + var runner = new ScriptedRunner(bed.Governor, bed.Clock) { NotConfigured = k => k == RecipeKind.AccountStories ? StoriesReason : null }; + bed.Start(runner); + await bed.RunUntilAsync(Morning.AddDays(4)); + + // «Bassa»: the profile every 12 hours or so, never sooner than 0.6 × 12 h. A visit that also served the stories + // would come at the story interval instead (a third of the window, about 5 hours), and collect nothing more. + var visits = runner.Runs.Where(r => r.Request.Kind == RecipeKind.ProfileCheck && r.Status == RecipeStatus.Completed).Select(r => r.At).ToList(); + Assert.IsGreaterThan(2, visits.Count, "The profile is still checked for its posts."); + for (var i = 1; i < visits.Count; i++) + { + Assert.IsTrue(visits[i] - visits[i - 1] >= TimeSpan.FromHours(7), $"Visit after {visits[i] - visits[i - 1]}."); + } + + Assert.IsFalse(runner.Runs.Any(r => r.Request.Kind == RecipeKind.AccountStories)); + Assert.IsNull((await bed.Db.Accounts.GetAsync(account.Id))!.NextStoriesCheckAt, "Story times stay as they are, for when the stories can run."); + var said = (await bed.Db.Events.ListAsync(new EventQuery())).Where(e => e.Code == EngineEventCodes.RecipeNotConfigured).ToList(); + Assert.HasCount(1, said); + Assert.AreEqual(StoriesReason + SessionComposer.NotConfiguredTail, said[0].Message); + } + + [TestMethod] + public async Task TheStoriesBarQueuesNoStoryCheckTheConfigurationDoesNotLetRun() + { + await using var bed = await EngineTestBed.CreateAsync(Morning); + var account = await bed.AddAccountAsync("vicina.demo", followed: true); + var runner = new ScriptedRunner(bed.Governor, bed.Clock) + { + FlaggedStories = [account.Id], + NotConfigured = k => k == RecipeKind.AccountStories ? StoriesReason : null, + }; + bed.Start(runner); + await bed.RunUntilAsync(Morning.AddDays(1)); + + Assert.IsGreaterThan(1, runner.Runs.Count(r => r.Request.Kind == RecipeKind.FollowingSweep && r.Status == RecipeStatus.Completed), "Several sweeps flagged the account."); + Assert.IsFalse(runner.Runs.Any(r => r.Request.Kind == RecipeKind.AccountStories)); + Assert.AreEqual(0L, await TasksAsync(bed, EngineTaskKind.AccountStories), "No story check queued: none waits in the Coda, none is cancelled at the next session."); + var said = (await bed.Db.Events.ListAsync(new EventQuery())).Where(e => e.Code == EngineEventCodes.RecipeNotConfigured).ToList(); + Assert.HasCount(1, said, "Said once, not at every sweep."); + Assert.AreEqual(StoriesReason + SessionComposer.NotConfiguredTail, said[0].Message); + } + + [TestMethod] + public async Task ARefusalOfTheRunnerIsNotAFailureAndIsNotTriedAgainInTheProcess() + { + await using var bed = await EngineTestBed.CreateAsync(Morning); + await bed.AddAccountAsync("strano.demo", followed: false, Frequency.High); + var runner = new ScriptedRunner(bed.Governor, bed.Clock) + { + Script = r => r.Kind == RecipeKind.ProfileCheck ? new RecipeOutcome(RecipeStatus.NotConfigured, 0, 0, ProfileReason) : null, + }; + var host = bed.Start(runner); + await bed.RunUntilAsync(Morning.AddDays(3)); + + // Three unrecognized formats suspend the recipe in two days (EngineHostTests); a refusal never does. + Assert.AreEqual(1, runner.Runs.Count(r => r.Request.Kind == RecipeKind.ProfileCheck)); + Assert.IsEmpty(host.SuspendedRecipes); + Assert.IsNull(await bed.Db.Settings.GetAsync(EngineSettingKeys.RecipeFailures)); + Assert.IsFalse((await bed.Db.Tasks.ListPendingAsync(1000)).Any(t => t.Kind == EngineTaskKind.ProfileCheck)); + + var events = await bed.Db.Events.ListAsync(new EventQuery()); + Assert.IsFalse(events.Any(e => e.Code is EngineEventCodes.RecipeSuspended or EngineEventCodes.FormatUnrecognized or EngineEventCodes.TargetNotFound or EngineEventCodes.RecipeFailed)); + Assert.AreEqual(0, events.Count(e => e.Code == EngineEventCodes.RecipeNotConfigured), "The runner said it; the engine does not say it again."); + var line = events.Single(e => e.Code == EngineEventCodes.RecipePrefix + RecipeKind.ProfileCheck); + StringAssert.EndsWith(line.Message, "Configurazione della raccolta incompleta"); + var snapshot = await host.Monitor.GetSnapshotAsync(); + Assert.IsTrue(snapshot.RecentActions.Any(a => a.Badge == "Da configurare")); + } + + [TestMethod] + public async Task TheRunnerRefusesBeforeDoingAnythingAndSaysItOncePerRecipe() + { + using var temp = new TempFolder("non-configurata"); + await using var db = await TestDatabase.OpenAsync(temp); + var clock = new VirtualClock(); + var governor = new PermissiveGovernor(); + var session = new TestSession((await db.Sessions.StartAsync(clock.Now)).Id); + RecipeEnvironment Environment(SiteMap map, ReaderVocabulary vocabulary) => new() + { + Driver = new UntouchedDriver(), + Capture = new CaptureCollector(new ShapeReader(vocabulary), clock), + Governor = governor, + Signals = new SignalDetector(SignalRules.LoadDefault(), new RecordingBreaker(), clock), + Storage = db, + SiteMap = map, + Clock = clock, + Random = new SeededRandom(1), + }; + + var empty = SiteMap.Parse("""{ "site": "vuoto", "pages": { "home": "" } }""", "bersagli.vuoto.json"); + var runner = new RecipeRunner(Environment(empty, ReaderVocabulary.LoadTestSite())); + StringAssert.Contains(runner.NotConfiguredReason(RecipeKind.FollowingSweep), "pagina «home»"); + for (var i = 0; i < 3; i++) + { + var sweep = await runner.RunAsync(new RecipeRequest(RecipeKind.FollowingSweep), session, CancellationToken.None); + Assert.AreEqual(RecipeStatus.NotConfigured, sweep.Status); + Assert.AreEqual(runner.NotConfiguredReason(RecipeKind.FollowingSweep), sweep.Message); + Assert.AreEqual(0, sweep.CountedActions); + } + + var profile = await runner.RunAsync(new RecipeRequest(RecipeKind.ProfileCheck, 1), session, CancellationToken.None); + Assert.AreEqual(RecipeStatus.NotConfigured, profile.Status); + StringAssert.Contains(profile.Message, "la mappa dei bersagli non è ancora compilata"); + + var lines = (await db.Events.ListAsync(new EventQuery())).Where(e => e.Code == "mappa-incompleta").ToList(); + Assert.HasCount(2, lines, "One line per recipe, not one per run."); + Assert.IsTrue(lines.All(e => e.Severity == EventSeverity.Warning && e.Message.EndsWith(SessionComposer.NotConfiguredTail, StringComparison.Ordinal))); + + // A vocabulary that is only a hypothesis refuses every recipe the same way. + var hypothesis = new RecipeRunner(Environment(SiteMap.LoadTestSite(), ReaderVocabulary.LoadTestSite() with { Status = VocabularyStatus.Hypothesis })); + var readers = await hypothesis.RunAsync(new RecipeRequest(RecipeKind.FollowingSweep), session, CancellationToken.None); + Assert.AreEqual(RecipeStatus.NotConfigured, readers.Status); + Assert.IsTrue((await db.Events.ListAsync(new EventQuery())).Any(e => e.Code == "lettori-incompleti")); + Assert.AreEqual(0, governor.Requests.Count, "No permit asked, no gesture, no page."); + + // The test site's own files let every recipe run. + var full = new RecipeRunner(Environment(SiteMap.LoadTestSite(), ReaderVocabulary.LoadTestSite())); + foreach (var kind in Enum.GetValues()) + { + Assert.IsNull(full.NotConfiguredReason(kind), kind.ToString()); + } + } + + /// Tasks of a kind in the queue, whatever their state (cancelled ones included). + private static Task TasksAsync(EngineTestBed bed, EngineTaskKind kind) => + bed.Db.ReadAsync(c => c.Command("SELECT COUNT(*) FROM task WHERE kind = @k").With("@k", kind.ToString()).ScalarInt64(), default); + + /// A driver that fails the test if a refused recipe touches it. + private sealed class UntouchedDriver : IPageDriver + { + public double WaitMultiplier => 1; + + public void BeginSession(double mood) => throw Touched(); + + public Task OpenAsync(string path, CancellationToken ct) => throw Touched(); + + public Task CurrentPathAsync(CancellationToken ct) => throw Touched(); + + public Task IsOnSiteAsync(CancellationToken ct) => throw Touched(); + + public Task FindAsync(string target, IReadOnlyDictionary? parameters, CancellationToken ct) => throw Touched(); + + public Task ClickAsync(string target, IReadOnlyDictionary? parameters, CancellationToken ct) => throw Touched(); + + public Task ScrollBurstAsync(CancellationToken ct) => throw Touched(); + + public Task WaitAfterLoadAsync(CancellationToken ct) => throw Touched(); + + public Task WaitAsync(TimeSpan duration, CancellationToken ct) => throw Touched(); + + public Task MaybeDistractionAsync(CancellationToken ct) => throw Touched(); + + public Task HasSessionCookieAsync(CancellationToken ct) => throw Touched(); + + public Task RestAsync(CancellationToken ct) => throw Touched(); + + private static AssertFailedException Touched() => new("Una ricetta rifiutata ha toccato la pagina."); + } +} diff --git a/tests/Febe.Tests/Engine/Support/EngineTestBed.cs b/tests/Febe.Tests/Engine/Support/EngineTestBed.cs index e3236a5..5e2a8e8 100644 --- a/tests/Febe.Tests/Engine/Support/EngineTestBed.cs +++ b/tests/Febe.Tests/Engine/Support/EngineTestBed.cs @@ -130,6 +130,19 @@ internal sealed class EngineTestBed : IAsyncDisposable return _host; } + /// + /// Like , with run on the host before its loop, as the composition + /// does at start-up (). + /// + public async Task StartAsync(IRecipeRunner runner, Func beforeLoop) + { + _host = new EngineHost(Services, runner); + await beforeLoop(_host); + _loopCts = new CancellationTokenSource(); + _loop = _host.RunAsync(_loopCts.Token); + return _host; + } + public EngineHost Host => _host ?? throw new InvalidOperationException("Engine not started."); /// Advances virtual time to , letting the engine run. diff --git a/tests/Febe.Tests/Engine/Support/ScriptedRunner.cs b/tests/Febe.Tests/Engine/Support/ScriptedRunner.cs index 2fba9e4..4d1df63 100644 --- a/tests/Febe.Tests/Engine/Support/ScriptedRunner.cs +++ b/tests/Febe.Tests/Engine/Support/ScriptedRunner.cs @@ -31,6 +31,9 @@ internal sealed class ScriptedRunner(IGovernor governor, IClock clock) : IRecipe /// Accounts the stories bar flags in every sweep. public IReadOnlyList FlaggedStories { get; set; } = []; + /// What the runner says of the configuration of the site (null: every recipe can run). + public Func? NotConfigured { get; set; } + public int Rests { get; private set; } public IReadOnlyList Runs @@ -74,6 +77,8 @@ internal sealed class ScriptedRunner(IGovernor governor, IClock clock) : IRecipe return outcome; } + public string? NotConfiguredReason(RecipeKind kind) => NotConfigured?.Invoke(kind); + public Task RestAsync(CancellationToken ct) { Rests++; diff --git a/tests/Febe.Tests/Web/EngineConnectionStateTests.cs b/tests/Febe.Tests/Web/EngineConnectionStateTests.cs new file mode 100644 index 0000000..46a1500 --- /dev/null +++ b/tests/Febe.Tests/Web/EngineConnectionStateTests.cs @@ -0,0 +1,88 @@ +using System.Runtime.CompilerServices; +using System.Text.Json; +using Febe.Core.Abstractions; +using Febe.Core.Domain; +using Febe.Core.Engine; +using Febe.Tests.Support; +using Febe.Tests.Web.Part2Support; +using Febe.Tests.Web.Support; +using Febe.Web.Connection; +using Febe.Web.Engine; +using Microsoft.Extensions.DependencyInjection; + +namespace Febe.Tests.Web; + +/// +/// The link to Instagram in the sidebar (/api/engine, «connection»): it comes from the session cookie, as the +/// engine's mode or the connection says, never from whether the account «Tu» is already known (H10: its name may come +/// much later, and meanwhile the sidebar says «Collegato» with «Nome non ancora noto»). +/// +[TestClass] +public sealed class EngineConnectionStateTests +{ + [TestMethod] + public async Task TheSidebarSaysConnectedFromTheSessionCookieEvenBeforeTuIsKnown() + { + var connection = new RecordingConnection { Status = new ConnectionStatus(ConnectionState.Connected, null, null, false, null) }; + await using var server = await Part2.StartAsync(services: s => + { + s.AddSingleton(sp => new FixedModeMonitor(sp.GetRequiredService())); + s.AddSingleton(connection); + }); + var monitor = (FixedModeMonitor)server.App.Services.GetRequiredService(); + async Task LinkAsync(EngineMode mode) + { + monitor.Mode = mode; + return (await server.GetJsonAsync("/api/engine")).GetProperty("connection"); + } + + // Collecting (or about to), with the cookie and without «Tu»: connected, no name yet. + foreach (var mode in new[] { EngineMode.Starting, EngineMode.InSession, EngineMode.Resting, EngineMode.OutsideWindow, EngineMode.Paused, EngineMode.Throttled, EngineMode.UserDriving }) + { + var link = await LinkAsync(mode); + Assert.AreEqual("connected", link.Str("state"), mode.ToString()); + Assert.AreEqual(JsonValueKind.Null, link.GetProperty("username").ValueKind, mode.ToString()); + } + + Assert.AreEqual("notConnected", (await LinkAsync(EngineMode.NotConnected)).Str("state")); + Assert.AreEqual("disconnected", (await LinkAsync(EngineMode.Disconnected)).Str("state")); + Assert.AreEqual("verification", (await LinkAsync(EngineMode.StoppedForVerification)).Str("state")); + + // The engine loop does not run: the connection itself is asked. + Assert.AreEqual("connected", (await LinkAsync(EngineMode.Off)).Str("state")); + connection.Status = new ConnectionStatus(ConnectionState.NotConnected, null, null, false, null); + Assert.AreEqual("notConnected", (await LinkAsync(EngineMode.Off)).Str("state")); + + // Once «Tu» is known, its name comes along. + await server.Db.Accounts.AddAsync(Make.Account("tuo.profilo", mine: true)); + var named = await LinkAsync(EngineMode.Resting); + Assert.AreEqual("connected", named.Str("state")); + Assert.AreEqual("tuo.profilo", named.Str("username")); + Assert.AreEqual(JsonValueKind.Null, (await LinkAsync(EngineMode.NotConnected)).GetProperty("username").ValueKind, "Not connected: no name."); + } + + [TestMethod] + public async Task WithoutEngineAndBrowserTheSidebarSaysNotConnectedEvenIfTuIsKnown() + { + await using var server = await Part2.StartAsync(); + await server.Db.Accounts.AddAsync(Make.Account("tuo.profilo", mine: true)); + var engine = await server.GetJsonAsync("/api/engine"); + Assert.AreEqual("Off", engine.GetProperty("snapshot").Str("mode")); + Assert.AreEqual("notConnected", engine.GetProperty("connection").Str("state"), "No engine has looked at the cookie and the browser is not there."); + } + + /// An engine that reports the mode the test sets. + private sealed class FixedModeMonitor(IClock clock) : IEngineMonitor + { + public EngineMode Mode { get; set; } = EngineMode.Resting; + + public Task GetSnapshotAsync(CancellationToken ct = default) => + Task.FromResult(SnapshotParts.Build(clock, Mode, "Prova", [], "Prova", CautionProfile.Prudent)); + + public async IAsyncEnumerable SubscribeAsync([EnumeratorCancellation] CancellationToken ct = default) + { + await Task.Delay(Timeout.Infinite, ct); + yield break; + } + } +} diff --git a/tests/Febe.Tests/Web/InterfaceTests.cs b/tests/Febe.Tests/Web/InterfaceTests.cs index ec0db2d..d5538c3 100644 --- a/tests/Febe.Tests/Web/InterfaceTests.cs +++ b/tests/Febe.Tests/Web/InterfaceTests.cs @@ -467,7 +467,9 @@ public sealed class InterfaceTests [TestMethod] public async Task TheEmptyLibraryFollowsTheConnectionAlsoWhenTheEngineAnswersLate() { - await using var server = await WebTestServer.StartAsync(); + // No engine loop here (mode Off): the link in /api/engine is the connection's, from the session cookie. + var connection = new RecordingConnection { Status = new ConnectionStatus(ConnectionState.NotConnected, null, null, false, null) }; + await using var server = await WebTestServer.StartAsync(services: s => s.AddSingleton(connection)); await using var ui = await UiBrowser.StartAsync(); await ui.AddInitScriptAsync(HoldEngine); await ui.OpenAsync(new Uri(server.Address, "/libreria")); @@ -479,12 +481,12 @@ public sealed class InterfaceTests Assert.IsTrue((await ui.EvalAsync("document.querySelector('main .vuoto-pagina, main .benvenuto, main .mosaico') === null")).GetBoolean(), "no empty state is guessed " + ui.Report()); StringAssert.StartsWith((await ui.EvalAsync("document.querySelector('.testa .quanti').textContent")).GetString(), "0 "); - // Not connected (no own account): the first start with its two ways to begin (spec §10.3). + // Not connected (no session cookie): the first start with its two ways to begin (spec §10.3). await ui.EvalAsync("window.__releaseEngine()"); await ui.WaitAsync("document.querySelector('main .benvenuto') !== null && document.querySelector('main [aria-busy=true]') === null", "primo avvio dopo la risposta del motore"); - // Connected now (the own account is known): the welcome gives way to the empty library. - await server.Db.Accounts.AddAsync(Make.Account("tuo.profilo", mine: true)); + // Connected now (the session cookie is there; «Tu» is not known yet, H10): the welcome gives way to the empty library. + connection.Status = new ConnectionStatus(ConnectionState.Connected, null, null, false, null); await ui.EvalAsync("import('/js/core/engine.js').then((m) => m.refreshEngine()).then(() => true)"); await ui.WaitAsync("document.querySelector('main .benvenuto') === null && document.querySelector('main .vuoto-pagina h2') !== null", "libreria vuota da collegato"); Assert.AreEqual("La libreria è ancora vuota", (await ui.EvalAsync("document.querySelector('main .vuoto-pagina h2').textContent")).GetString()); diff --git a/tests/Febe.Tests/campioni/instagram/000001-promozioni.json b/tests/Febe.Tests/campioni/instagram/000001-promozioni.json new file mode 100644 index 0000000..88f4c0e --- /dev/null +++ b/tests/Febe.Tests/campioni/instagram/000001-promozioni.json @@ -0,0 +1,41 @@ +{ + "descrittore": { + "indirizzo": "https://sito.esempio/vgw3tpjgl1868811", + "host": "sito", + "stato": 200, + "tipo": "text/javascript", + "risorsa": "XHR", + "quando": "2026-10-21T17:35:04Z" + }, + "corpo": { + "data": { + "ig_quick_promotion_batch_fetch_root": [ + { + "surface_nux_id": "TRZWJXPWP_SCR_STFPZDBBB", + "eligible_promotions": { + "edges": [] + } + }, + { + "surface_nux_id": "FZGHXFCSS_KHW_RJF_RWSQVJQZKMRP_ND", + "eligible_promotions": { + "edges": [] + } + }, + { + "surface_nux_id": "QQJKWMDPD_MGG_LDB_PRRTGPN_JR", + "eligible_promotions": { + "edges": [] + } + } + ] + }, + "extensions": { + "server_metadata": { + "request_start_time_ms": 6491170198676, + "time_at_flush_ms": 6962160759946 + }, + "is_final": true + } + } +} \ No newline at end of file diff --git a/tests/Febe.Tests/campioni/instagram/000002-ricerca-profili.json b/tests/Febe.Tests/campioni/instagram/000002-ricerca-profili.json new file mode 100644 index 0000000..a5a9ad3 --- /dev/null +++ b/tests/Febe.Tests/campioni/instagram/000002-ricerca-profili.json @@ -0,0 +1,155 @@ +{ + "descrittore": { + "indirizzo": "https://sito.esempio/vgw3tpjgl1868811", + "host": "sito", + "stato": 200, + "tipo": "text/javascript", + "risorsa": "XHR", + "quando": "2026-10-21T17:35:57Z" + }, + "corpo": { + "data": { + "xdt_api__v1__fbsearch__topsearch_connection": { + "see_more": null, + "inform_module": null, + "hashtags": [], + "places": [], + "users": [ + { + "position": 0, + "user": { + "username": "dwvqbrgcjf", + "is_verified": false, + "ai_agent_owner_username": null, + "aigm_account_label_info": { + "attribution_label_text": null, + "is_enabled": false + }, + "full_name": "Gqqdcr Vkrmp", + "search_social_context": "Dddfhhp fp mgfkpgntpndkm \u00B7 hvsfq 5", + "search_social_context_snippet_type": "typeahead_mutual_followers", + "unseen_count": 0, + "pk": "215081405", + "live_broadcast_visibility": null, + "live_broadcast_id": null, + "profile_pic_url": "https://cdn.esempio/07030bdh2v0xr6k5.jpg", + "hd_profile_pic_url_info": { + "url": "https://cdn.esempio/647n30r26f451997.jpg" + }, + "is_unpublished": false, + "id": "215081405" + } + }, + { + "position": 1, + "user": { + "username": "_knkrcbq", + "is_verified": false, + "ai_agent_owner_username": null, + "aigm_account_label_info": { + "attribution_label_text": null, + "is_enabled": false + }, + "full_name": "\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7", + "search_social_context": null, + "search_social_context_snippet_type": null, + "unseen_count": 0, + "pk": "51077241323", + "live_broadcast_visibility": null, + "live_broadcast_id": null, + "profile_pic_url": "https://cdn.esempio/52323983k4g85lf2.jpg", + "hd_profile_pic_url_info": { + "url": "https://cdn.esempio/0r67762f9b08cs29.jpg" + }, + "is_unpublished": false, + "id": "51077241323" + } + }, + { + "position": 2, + "user": { + "username": "tpmzvqmgq", + "is_verified": false, + "ai_agent_owner_username": null, + "aigm_account_label_info": { + "attribution_label_text": null, + "is_enabled": false + }, + "full_name": "Gfvfds Cvwlsxb\u00B7\u00B7\u00B7\u00B7\u00B7\u00B7", + "search_social_context": null, + "search_social_context_snippet_type": null, + "unseen_count": 0, + "pk": "1878810562", + "live_broadcast_visibility": null, + "live_broadcast_id": null, + "profile_pic_url": "https://cdn.esempio/50q0271sh117xmkh.jpg", + "hd_profile_pic_url_info": { + "url": "https://cdn.esempio/95424rmcv4b31999.jpg" + }, + "is_unpublished": false, + "id": "1878810562" + } + }, + { + "position": 3, + "user": { + "username": "ldrcdvnhrhzz", + "is_verified": false, + "ai_agent_owner_username": null, + "aigm_account_label_info": { + "attribution_label_text": null, + "is_enabled": false + }, + "full_name": "Xpdcsvzwfqvm Qkvnk-gftsqrqmpk", + "search_social_context": null, + "search_social_context_snippet_type": null, + "unseen_count": 0, + "pk": "3162721231", + "live_broadcast_visibility": null, + "live_broadcast_id": null, + "profile_pic_url": "https://cdn.esempio/305401nc89mc40qs.jpg", + "hd_profile_pic_url_info": { + "url": "https://cdn.esempio/5256037mb91hp50k.jpg" + }, + "is_unpublished": false, + "id": "3162721231" + } + }, + { + "position": 4, + "user": { + "username": "hkngtchnglsv", + "is_verified": false, + "ai_agent_owner_username": null, + "aigm_account_label_info": { + "attribution_label_text": null, + "is_enabled": false + }, + "full_name": "Wmjqb", + "search_social_context": null, + "search_social_context_snippet_type": null, + "unseen_count": 0, + "pk": "0388923287", + "live_broadcast_visibility": null, + "live_broadcast_id": null, + "profile_pic_url": "https://cdn.esempio/514p2980v17438q8.jpg", + "hd_profile_pic_url_info": { + "url": "https://cdn.esempio/72zh4k37vr72lr9f.jpg" + }, + "is_unpublished": false, + "id": "0388923287" + } + } + ], + "rank_token": "7777777777777\u00B7xx77777xxx7x7x7x7x777xx7777x77777777777x7x777xx7x7x77777xxxx7x77" + } + }, + "extensions": { + "server_metadata": { + "request_start_time_ms": 5319299593604, + "time_at_flush_ms": 7904759334510 + }, + "is_final": true + } + } +} \ No newline at end of file diff --git a/tests/Febe.Tests/campioni/instagram/000003-profili-suggeriti.json b/tests/Febe.Tests/campioni/instagram/000003-profili-suggeriti.json new file mode 100644 index 0000000..3a450a7 --- /dev/null +++ b/tests/Febe.Tests/campioni/instagram/000003-profili-suggeriti.json @@ -0,0 +1,106 @@ +{ + "descrittore": { + "indirizzo": "https://sito.esempio/vgw3tpjgl1868811", + "host": "sito", + "stato": 200, + "tipo": "text/javascript", + "risorsa": "XHR", + "quando": "2026-10-21T17:36:00Z" + }, + "corpo": { + "data": { + "xdt_api__v1__discover__chaining": { + "users": [ + { + "friendship_status": { + "following": false, + "blocking": false, + "is_feed_favorite": false, + "outgoing_request": false, + "followed_by": false, + "incoming_request": false, + "is_restricted": false, + "is_bestie": false + }, + "full_name": "sgdcmwkjqgwmhg", + "is_verified": false, + "pk": "1575951745", + "profile_pic_url": "https://cdn.esempio/1981r1hc98hsp8b6.jpg", + "username": "vxpclbv_bkvgmvq", + "is_private": false, + "supervision_info": null, + "social_context": null, + "live_broadcast_visibility": null, + "live_broadcast_id": null, + "hd_profile_pic_url_info": { + "url": "https://cdn.esempio/2v973665034n8123.jpg" + }, + "is_unpublished": false, + "id": "1575951745" + }, + { + "friendship_status": { + "following": false, + "blocking": false, + "is_feed_favorite": false, + "outgoing_request": false, + "followed_by": false, + "incoming_request": false, + "is_restricted": false, + "is_bestie": false + }, + "full_name": "KZ6Q - Tpkqftnb Dlhlc 3Qjwm", + "is_verified": false, + "pk": "6092958043", + "profile_pic_url": "https://cdn.esempio/s62m19s6181q16rm.jpg", + "username": "hndphqqhdvktn6dnpj", + "is_private": false, + "supervision_info": null, + "social_context": null, + "live_broadcast_visibility": null, + "live_broadcast_id": null, + "hd_profile_pic_url_info": { + "url": "https://cdn.esempio/9zh0q9f43861n513.jpg" + }, + "is_unpublished": false, + "id": "6092958043" + }, + { + "friendship_status": { + "following": false, + "blocking": false, + "is_feed_favorite": false, + "outgoing_request": false, + "followed_by": false, + "incoming_request": false, + "is_restricted": false, + "is_bestie": false + }, + "full_name": "PNQHC HXGBF VTMHJTV", + "is_verified": false, + "pk": "24973134344", + "profile_pic_url": "https://cdn.esempio/f092k9mj8664rdc9.jpg", + "username": "hwjfbsgqhdqhmkcgs_", + "is_private": false, + "supervision_info": null, + "social_context": null, + "live_broadcast_visibility": null, + "live_broadcast_id": null, + "hd_profile_pic_url_info": { + "url": "https://cdn.esempio/j7c0c9m17ztg64xg.jpg" + }, + "is_unpublished": false, + "id": "24973134344" + } + ] + } + }, + "extensions": { + "server_metadata": { + "request_start_time_ms": 4070744587334, + "time_at_flush_ms": 7911613436243 + }, + "is_final": true + } + } +} \ No newline at end of file diff --git a/tests/Febe.Tests/campioni/instagram/000004-commenti.json b/tests/Febe.Tests/campioni/instagram/000004-commenti.json new file mode 100644 index 0000000..f1b5993 --- /dev/null +++ b/tests/Febe.Tests/campioni/instagram/000004-commenti.json @@ -0,0 +1,96 @@ +{ + "descrittore": { + "indirizzo": "https://sito.esempio/tb3199751p061262", + "host": "sito", + "stato": 200, + "tipo": "application/json", + "risorsa": "XHR", + "quando": "2026-10-21T17:38:56Z" + }, + "corpo": { + "can_view_more_preview_comments": false, + "caption": { + "bit_flags": 0, + "content_type": "comment", + "created_at": 1788817267, + "created_at_for_fb_app": 7133613899, + "created_at_utc": 7133613899, + "did_report_as_spam": false, + "is_covered": false, + "is_created_by_media_owner": true, + "is_ranked_comment": false, + "media_id": "9222129690324603277", + "pk": "40021847552872166", + "private_reply_status": 0, + "share_enabled": true, + "status": "Active", + "strong_id__": "40021847552872166", + "text": "Qwqwpb \u00B7\u00B7", + "type": 1, + "user": { + "fbid_v2": "55370645405178029", + "full_name": "Gqqdcr Vkrmp", + "id": "215081405", + "is_private": false, + "is_unpublished": false, + "is_verified": false, + "pk": 681057818, + "pk_id": "215081405", + "profile_pic_id": "6460827721051748069_181896617", + "profile_pic_url": "https://cdn.esempio/07030bdh2v0xr6k5.jpg", + "strong_id__": "215081405", + "username": "dwvqbrgcjf" + }, + "user_id": 681057818 + }, + "caption_is_edited": false, + "comment_count": 2, + "comment_cover_pos": "nrfkbf", + "comment_filter_param": "pv_mbxxnt", + "comment_likes_enabled": true, + "comments": [], + "has_more_comments": false, + "has_more_headload_comments": false, + "initiate_at_top": true, + "insert_new_comment_to_top": true, + "liked_by_media_owner_badge_enabled": true, + "media_header_display": "lwrc", + "quick_response_emojis": [ + { + "unicode": "\u00B7\uFE0F" + }, + { + "unicode": "\u00B7\u00B7" + }, + { + "unicode": "\u00B7\u00B7" + }, + { + "unicode": "\u00B7\u00B7" + }, + { + "unicode": "\u00B7\u00B7" + }, + { + "unicode": "\u00B7\u00B7" + }, + { + "unicode": "\u00B7\u00B7" + }, + { + "unicode": "\u00B7\u00B7" + } + ], + "scroll_behavior": 1, + "threading_enabled": true, + "filter_options": [], + "sort_options": [], + "should_render_upsell": false, + "foundation_improvements_enabled": true, + "geoblocked_comment_notices": [], + "has_more_headload_fb_comments": false, + "fb_comments": [], + "ai_topic_filters": [], + "status": "ok" + } +} \ No newline at end of file diff --git a/tests/Febe.Tests/campioni/instagram/000005-post-video.json b/tests/Febe.Tests/campioni/instagram/000005-post-video.json new file mode 100644 index 0000000..7daf54d --- /dev/null +++ b/tests/Febe.Tests/campioni/instagram/000005-post-video.json @@ -0,0 +1,699 @@ +{ + "descrittore": { + "indirizzo": "https://sito.esempio/81jg128fq9rkr95q", + "host": "sito", + "stato": 200, + "tipo": "application/json", + "risorsa": "XHR", + "quando": "2026-10-21T17:38:56Z" + }, + "corpo": { + "num_results": 1, + "more_available": false, + "items": [ + { + "strong_id__": "7909533858063387797_250912751", + "id": "7909533858063387797_250912751", + "disable_caption_and_comment": false, + "fbid": "16246906758569910", + "deleted_reason": 0, + "client_cache_key": "xxx7xxxxxxx7xxx7xxxxxxx7xx\u00B7\u00B7.7", + "integrity_review_decision": "xnmfgvb", + "is_awaiting_distribution": false, + "has_delayed_metadata": false, + "mezql_token": "", + "should_request_ads": false, + "has_privately_liked": false, + "share_count_disabled": false, + "is_reshare_of_text_post_app_media_in_ig": false, + "is_visual_reply_commenter_notice_enabled": true, + "subtype_name_for_REST__": "RZJRtmmpMsqnt", + "is_quiet_post": false, + "is_third_party_downloads_eligible": true, + "is_short_drama": false, + "media_type": 2, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxxxxxx7xxx7xxx7xxxxxxx7xxxxxxx7xxx7xxxxxxxxxxxxxxx7xxx7xxxxxxx7xxxxxxxxx7xxxxxxx7xxx7xxxxxxxxx7xxxxxxxxxxxxxxxxxxxxxxx7xxx7xxxxxxx7xxxxxxx7xxx7xxx7xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx7xxxxxxx7xxxxxxxxxxxxxxxxxxx7xxx7xxx7xxxxxxxxxxxxxx7xxxxxx77xxxxxxxx7xxx7", + "music_metadata": null, + "clips_tab_pinned_user_ids": [], + "is_open_to_public_submission": false, + "is_social_ufi_disabled": false, + "timeline_pinned_user_ids": [], + "taken_at": 1788817278, + "pk": "9222129690324603277", + "can_see_insights_as_brand": false, + "is_affiliate_commission_eligible": false, + "is_in_profile_grid": false, + "profile_grid_control_enabled": false, + "product_type": "clips", + "subscribe_cta_visible": false, + "is_cutout_sticker_allowed": true, + "cutout_sticker_info": [], + "should_show_author_pog_for_tagged_media_shared_to_profile_grid": false, + "is_eligible_content_for_post_roll_ad": false, + "related_ads_pivots_media_info": "LRNPHZQ_DT_GZRCR_LCH_LQSPKFSMNZM", + "eligible_insights_entrypoints": "XJMH", + "basel_encoding_timeout": 60, + "media_attributions_data": [], + "media_ui_attributions_data": [], + "media_ui_attributions_data_v2": [], + "is_eligible_for_poe": false, + "is_eligible_for_organic_eager_refresh": true, + "commerce_integrity_review_decision": "", + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "boost_unavailable_reason_v2": null, + "coauthor_producers": [], + "coauthor_producer_can_see_organic_insights": false, + "invited_coauthor_producers": [], + "is_paid_partnership": false, + "ig_media_sharing_disabled": false, + "comment_inform_treatment": { + "action_type": null, + "should_have_inform_treatment": false, + "text": "", + "url": null + }, + "is_photo_comments_composer_enabled_for_author": true, + "fb_comment_count": 2, + "hide_view_all_comment_entrypoint": true, + "locations": [], + "are_remixes_crosspostable": true, + "crosspost_metadata": { + "is_feedback_aggregated": true, + "unified_feedback_enabled": true, + "fb_downstream_use_xpost_metadata": { + "downstream_use_xpost_deny_reason": "XJMH" + } + }, + "is_eligible_for_autodub": false, + "is_eligible_for_autodub_upsell": false, + "video_sticker_locales": [], + "has_audio": true, + "video_versions": [ + { + "bandwidth": 7488206, + "height": 1280, + "id": "6329013574175521c", + "progressive_identifier": "FL\u00B7\u00B7", + "type": 101, + "url": "https://cdn.esempio/09m2z2jjrhj04846.mp4", + "url_expiration_timestamp_us": null, + "width": 720, + "fallback": null + }, + { + "bandwidth": 7488206, + "height": 1280, + "id": "6329013574175521c", + "progressive_identifier": "FL\u00B7\u00B7", + "type": 102, + "url": "https://cdn.esempio/09m2z2jjrhj04846.mp4", + "url_expiration_timestamp_us": null, + "width": 720, + "fallback": null + }, + { + "bandwidth": 7488206, + "height": 1280, + "id": "6329013574175521c", + "progressive_identifier": "FL\u00B7\u00B7", + "type": 103, + "url": "https://cdn.esempio/09m2z2jjrhj04846.mp4", + "url_expiration_timestamp_us": null, + "width": 720, + "fallback": null + } + ], + "number_of_qualities": 5, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null, + "sharing_friction_payload": null + }, + "gen_ai_detection_method": { + "detection_method": "XJMH" + }, + "tappable_elements": [], + "premium_reaction_count": 0, + "viewer_premium_reaction_asset_id": null, + "creator_is_in_premium_reactions_alpha": false, + "image_versions2": { + "additional_candidates": { + "first_frame": { + "estimated_scans_sizes": [], + "height": 1136, + "scans_profile": null, + "url": "https://cdn.esempio/34217235931q327b.jpg", + "width": 640, + "is_spatial_image": false + }, + "igtv_first_frame": { + "estimated_scans_sizes": [], + "height": 1136, + "scans_profile": null, + "url": "https://cdn.esempio/34217235931q327b.jpg", + "width": 640, + "is_spatial_image": false + }, + "smart_frame": null + }, + "candidates": [ + { + "estimated_scans_sizes": [], + "height": 1280, + "scans_profile": null, + "url": "https://cdn.esempio/kx13rmfs3p38w278.jpg", + "width": 720, + "is_spatial_image": false + }, + { + "estimated_scans_sizes": [], + "height": 1138, + "scans_profile": null, + "url": "https://cdn.esempio/33m7013129286664.jpg", + "width": 640, + "is_spatial_image": false + }, + { + "estimated_scans_sizes": [], + "height": 853, + "scans_profile": null, + "url": "https://cdn.esempio/vkzpk03019d4p6l9.jpg", + "width": 480, + "is_spatial_image": false + }, + { + "estimated_scans_sizes": [], + "height": 569, + "scans_profile": null, + "url": "https://cdn.esempio/h459gzh05hqwdp7q.jpg", + "width": 320, + "is_spatial_image": false + }, + { + "estimated_scans_sizes": [], + "height": 427, + "scans_profile": null, + "url": "https://cdn.esempio/4p4s1v897755d261.jpg", + "width": 240, + "is_spatial_image": false + }, + { + "estimated_scans_sizes": [], + "height": 720, + "scans_profile": null, + "url": "https://cdn.esempio/w2sq4q2jmczmk8rv.jpg", + "width": 720, + "is_spatial_image": false + }, + { + "estimated_scans_sizes": [], + "height": 720, + "scans_profile": null, + "url": "https://cdn.esempio/w2sq4q2jmczmk8rv.jpg", + "width": 720, + "is_spatial_image": false + }, + { + "estimated_scans_sizes": [], + "height": 640, + "scans_profile": null, + "url": "https://cdn.esempio/7794f286mv847mpk.jpg", + "width": 640, + "is_spatial_image": false + }, + { + "estimated_scans_sizes": [], + "height": 480, + "scans_profile": null, + "url": "https://cdn.esempio/6cbl44591025c4gt.jpg", + "width": 480, + "is_spatial_image": false + }, + { + "estimated_scans_sizes": [], + "height": 320, + "scans_profile": null, + "url": "https://cdn.esempio/20zvr63s211lt69k.jpg", + "width": 320, + "is_spatial_image": false + }, + { + "estimated_scans_sizes": [], + "height": 240, + "scans_profile": null, + "url": "https://cdn.esempio/l4xq85tt02lk907c.jpg", + "width": 240, + "is_spatial_image": false + }, + { + "estimated_scans_sizes": [], + "height": 150, + "scans_profile": null, + "url": "https://cdn.esempio/9fpxtl37s22c73v1.jpg", + "width": 150, + "is_spatial_image": false + } + ], + "scrubber_spritesheet_info_candidates": { + "default": { + "file_size_kb": 681, + "max_thumbnails_per_sprite": 105, + "rendered_width": 96, + "sprite_height": 1232, + "sprite_urls": [ + "https://cdn.esempio/b9h31456q6z1k694.jpg" + ], + "sprite_width": 1500, + "thumbnail_duration": 0.05619047619047619, + "thumbnail_height": 176, + "thumbnail_width": 100, + "thumbnails_per_row": 15, + "total_thumbnail_num_per_sprite": 105, + "video_length": 5.9 + } + } + }, + "original_width": 1440, + "original_height": 2560, + "has_tagged_users": false, + "fb_user_tags": { + "in": [] + }, + "media_overlay_info": null, + "media_notes": { + "items": [] + }, + "social_context": [], + "creative_config": { + "capture_type": "clips_v2", + "face_effect_id": null, + "failure_reason": null, + "attribution_user": null, + "creation_tool_info": [ + { + "camera_tool": 434, + "duration_selector_seconds": 0.0, + "speed_selector": 0.0, + "color_filters": "", + "appearance_effect": 0, + "timer_selector_seconds": 0.0, + "magic_cut_start_time": 0.0, + "magic_cut_end_time": 0.0, + "effect_filter_name": "" + } + ], + "effect_configs": null, + "effect_preview": null, + "gen_ai_tool_info": null + }, + "floating_context_items": [], + "is_reuse_allowed": true, + "igbio_product": null, + "clips_metadata": { + "clips_creation_entry_point": "gmzkv", + "featured_label": null, + "is_public_chat_welcome_video": false, + "professional_clips_upsell_type": 0, + "show_tips": null, + "achievements_info": { + "num_earned_achievements": null, + "show_achievements": false + }, + "additional_audio_info": { + "additional_audio_username": null, + "audio_reattribution_info": { + "should_allow_restore": false + } + }, + "asset_recommendation_info": null, + "audio_ranking_info": { + "best_audio_cluster_id": "887740111386887" + }, + "audio_type": "original_sounds", + "branded_content_tag_info": { + "can_add_tag": false + }, + "breaking_content_info": null, + "breaking_creator_info": null, + "challenge_info": null, + "content_appreciation_info": { + "enabled": false, + "entry_point_container": null + }, + "contextual_highlight_info": null, + "cutout_sticker_info": [], + "disable_use_in_clips_client_cache": false, + "external_media_info": null, + "is_fan_club_promo_video": false, + "is_shared_to_fb": false, + "mashup_info": { + "can_toggle_mashups_allowed": false, + "formatted_mashups_count": null, + "has_been_mashed_up": false, + "has_nonmimicable_additional_audio": false, + "is_creator_requesting_mashup": false, + "is_light_weight_check": true, + "is_light_weight_reuse_allowed_check": false, + "is_pivot_page_available": false, + "is_reuse_allowed": true, + "mashup_type": null, + "mashups_allowed": true, + "mashups_allowed_for_carousel": false, + "non_privacy_filtered_mashups_media_count": 0, + "privacy_filtered_mashups_media_count": null, + "original_media": null + }, + "merchandising_pill_info": null, + "music_canonical_id": "91113504822483696", + "music_info": null, + "nux_info": null, + "original_sound_info": { + "allow_creator_to_rename": true, + "audio_asset_id": "12471162636763090", + "attributed_custom_audio_asset_id": null, + "can_remix_be_shared_to_fb": true, + "can_remix_be_shared_to_fb_expansion": true, + "dash_manifest": "\u00B7?fgw hcmrvts\u00B7\u00227.5\u0022 czvtdjch\u00B7\u0022JWZ-0\u0022?\u00B7\n\u00B7KKJ dsqwq\u00B7\u0022rsh:hrqr:dfxm:sndnsc:ctw:3176\u0022 sgggq:mkf\u00B7\u0022dbgs://dmh.q5.gvj/0496/QXXJhftxf-mfjjjlmb\u0022 lck:dznkzgWmtbzbdc\u00B7\u0022pxb:rttk:pptt:ksrnzr:twz:1853 CLQN-MJT.mhg\u0022 hdpgpbvz\u00B7\u0022qkh:ppvf:ncwf:kdspllk:qmfbk-jn-kdxszp:3300\u0022 llvNzcbcdCnrg\u00B7\u0022TR0F\u0022 vxpv\u00B7\u0022xjvrrh\u0022 klmhnDhkggrvgzmjrKwkknxlg\u00B7\u0022ZM2.541945N\u0022 RXNnkhcsrmLbwlwcmmk\u00B7\u00222221857858\u0022 JWWhsmmtksVvtfdvvgbr\u00B7\u0022DtVcj16XPDtZ//LtsdWsGzPCFKM2TDlxZ3KbK19rbz66TpTdNPLR\u0022\u00B7\u00B7Zmqtcs zv\u00B7\u00220\u0022 xrxlkzmg\u00B7\u0022PS7.526638D\u0022\u00B7\u00B7SmhvzlzspnHpr gl\u00B7\u00221\u0022 qzllhrxTzfb\u00B7\u0022bdqdh\u0022 dhzccrszrlNqptxbHbvgZPR\u00B7\u00221\u0022 qqhgzppzjdLlqlrjlqk\u00B7\u0022mvcp\u0022\u00B7\u00B7Gsppwhdkqwzfwg gd\u00B7\u00223454055608463982k\u0022 rtqfglzdz\u00B7\u002214114\u0022 rcvhdj\u00B7\u0022pn8d.44.9\u0022 pcfkPdmb\u00B7\u0022gzjgv/xg2\u0022 MCQgcLfqqmnp\u00B7\u002256757\u0022 cpthjDkfxrxndZqjs\u00B7\u002293511\u0022\u00B7\u00B7RbvvvBlvwvwkPtqfsgvsvwwzx krtcgmFhQjz\u00B7\u0022zsb:gtwm:crjv:19112:3:swpbc_sdnlcnw_spzcltkfmkvzp:5596\u0022 lnmgs\u00B7\u00221\u0022/\u00B7\u00B7JlwjHRG\u00B7pqqqk://zhphpxdp-zdw7-1.whkmjdjxmdsh.vcd/b6/w/m6/s0/c96/ZKVd5xnMnvrpG8sJGFCH486Z1ljbM1N2gCmhgFNS8pHTbSSHTG95C7KhKsLMrxQLz7nzVCB441PWTHqjzgLdCKsDt7FWkCWChScQPkx.lb0?_hj_wzg\u00B75\u0026thc;_rr_sbm\u00B78qr563\u0026jnh;_vb_dv\u00B7sxjnwqrf-rsf1-2.wdqwxrwjxlpp.zjx\u0026rzg;_np_dfm\u00B7FBcvc9cBtPMM1wHdqHnjqlf\u0026gwk;kwc\u00B7jzR6DX4bl0VcK9PgJpK6LrMhz6tlwJ9ljCGwNLXnlhLtR99qhQTdxdBpNrDmBBGhM2hhCgdstFmsCDGppRzgvNMsJ7FvK3XbkD0cNLF1ZfW9XxlrXPHgNHQ0QZHmxDgkczFnlqZvLQK0VzPxj21hm42hCPW2hLFnJPSrJVBkdKFcGcDsSGt8JMLbLkS5JDf1WHGnZmJpr6V5T8GzRN7zLMpdVxzmVSCxJzShQ2ZbXGPwd9TxbCGrGgPkZCz3FKMbpVLxnZkvzt6nQgh0CDWclWDfRHLkSbk4WkN9PPzzvXFhL4GgM8CczLLcDFB8Bgh6wbL5\u0026mcw;hwt\u00B746-2\u0026mnq;_bd_wgc\u00B7xNZ-cG63JpqFxw2L3j3ZxN\u0026wqj;_jk_rz\u00B75k86f\u0026fvx;_mv_sf\u00B745\u0026rqg;nr\u00B790_VNFj_ZnbnTk9sL-MsGWng01vWhN_pkB6KvDhmbTrVfWKgQ\u0026dvd;fr\u00B79CSWT4Z9\u00B7/QdqlGTS\u00B7\u00B7CzqgsvzRmpm hdddqKknjd\u00B7\u0022700-263\u0022 bpqxltqtq\u00B7\u002255460\u0022\u00B7\u00B7Vgmznbtxjpxskh xrmhv\u00B7\u00221-933\u0022/\u00B7\u00B7/LpvglhtZzsn\u00B7\u00B7/Lfbjfktxgrbgdf\u00B7\u00B7/VbgtkkljtpVxx\u00B7\u00B7/Tbdrnw\u00B7\u00B7/RPJ\u00B7\n", + "duration_in_ms": 5900, + "formatted_clips_media_count": null, + "hide_remixing": false, + "is_audio_automatically_attributed": false, + "is_eligible_for_audio_effects": false, + "is_eligible_for_vinyl_sticker": true, + "is_explicit": false, + "is_original_audio_download_eligible": false, + "is_reuse_disabled": false, + "is_xpost_from_fb": false, + "music_canonical_id": null, + "oa_owner_is_music_artist": false, + "original_audio_subtype": "spvmmvm", + "original_audio_title": "Nvskk dtcpxknbk", + "original_media_id": "7211154431180240139", + "progressive_download_url": "https://cdn.esempio/kk33cnh1t9rwwd57.mp4", + "should_mute_audio": false, + "time_created": 2618720927, + "trend_rank": null, + "previous_trend_rank": null, + "overlap_duration_in_ms": 5900, + "audio_asset_start_time_in_ms": 0, + "derived_content_start_time_in_composition_in_ms": 0, + "should_allow_audio_editing": false, + "ig_artist": { + "strong_id__": "3615921134", + "pk": "3615921134", + "pk_id": "3615921134", + "id": "3615921134", + "username": "zhlnznghsvglgmmh", + "full_name": "Xrrwgthgj Gpfprwb", + "is_private": false, + "is_verified": true, + "profile_pic_id": "4387790421367093288_3487371757", + "profile_pic_url": "https://cdn.esempio/f728qmjp637n0647.jpg" + }, + "audio_filter_infos": null, + "audio_parts": [], + "audio_parts_by_filter": [], + "consumption_info": { + "display_media_id": null, + "is_bookmarked": false, + "is_trending_in_clips": false, + "should_mute_audio_reason": "", + "should_mute_audio_reason_type": null, + "inline_audio_label": null, + "display_labels": null, + "display_labels_with_translations": null, + "user_notes": null + }, + "xpost_fb_creator_info": null, + "fb_downstream_use_xpost_metadata": { + "downstream_use_xpost_deny_reason": "XJMH" + } + }, + "originality_info": null, + "reels_on_the_rise_info": null, + "reusable_text_attribute_string": null, + "reusable_text_info": null, + "show_achievements": false, + "may_have_template_info": null, + "viewer_interaction_settings": null, + "shopping_info": null, + "template_info": null + }, + "hide_stickers_for_original_language": false, + "like_count": 64, + "fb_like_count": 13, + "has_liked": false, + "top_likers": [ + "dvtgnfcmcjq" + ], + "facepile_top_likers": [ + { + "strong_id__": "3851043056", + "pk": "3851043056", + "pk_id": "3851043056", + "id": "3851043056", + "username": "dvtgnfcmcjq", + "full_name": "Jtfgfd Bkkmw", + "is_private": false, + "is_verified": false, + "profile_pic_id": "6174566419957196250_8710701751", + "profile_pic_url": "https://cdn.esempio/57n1d16w4k1j353f.jpg" + } + ], + "hidden_likes_string_variant": -1, + "caption": { + "strong_id__": "40021847552872166", + "bit_flags": 0, + "created_at": 1788817267, + "created_at_utc": 7133613899, + "did_report_as_spam": false, + "is_ranked_comment": false, + "pk": "40021847552872166", + "share_enabled": false, + "content_type": "comment", + "media_id": "9222129690324603277", + "status": "Active", + "type": 1, + "user_id": "215081405", + "text": "Qwqwpb \u00B7\u00B7", + "user": { + "strong_id__": "215081405", + "pk": "215081405", + "pk_id": "215081405", + "id": "215081405", + "is_unpublished": false, + "fbid_v2": "55370645405178029", + "username": "dwvqbrgcjf", + "full_name": "Gqqdcr Vkrmp", + "is_private": false, + "is_verified": false, + "profile_pic_id": "6460827721051748069_181896617", + "profile_pic_url": "https://cdn.esempio/l77dd7l0fd384l17.jpg" + }, + "is_covered": false, + "private_reply_status": 0 + }, + "comment_count": 2, + "can_view_more_preview_comments": false, + "preview_comments": [], + "comment_likes_enabled": true, + "play_count": 1547, + "ig_play_count": 929, + "fb_play_count": 618, + "shop_routing_user_id": null, + "featured_products": [], + "video_duration": 5.919000148773193, + "is_dash_eligible": 1, + "video_dash_manifest": "\u00B7?bxp fgdhnhx\u00B7\u00223.2\u0022 nqvdpphx\u00B7\u0022RCW-4\u0022?\u00B7\n\u00B7JRP kcldb\u00B7\u0022mnl:tkbn:slxv:dzzklk:xsp:5071\u0022 xhjbh:mrc\u00B7\u0022pfgz://gbl.w1.nbs/9401/DRCHjbsnh-rljkspqs\u0022 hnc:fcsswcVctjvxbk\u00B7\u0022qgc:zhwc:vggr:wbxfkx:srh:0506 BNZH-KFR.rvb\u0022 tzthfssh\u00B7\u0022mpx:chqr:zrfv:nwrbzpp:znrtp-mv-bhnngp:4898\u0022 jkbLhwxjkDsdz\u00B7\u0022QC7Q\u0022 mwqj\u00B7\u0022wrtpmp\u0022 zlcntXtlvfwkrfjwvHnchpssp\u00B7\u0022PR2.066339S\u0022 PWGdmhbgbsVkgjkqnks\u00B7\u00222790501876\u0022 PTXtlphwmvGgbjsjmffb\u00B7\u0022TlSvf25KMHFvV02kPXTmK1Bps0khP3QlJGrm2p2M9hzb1bV3t3xVxX7qB\u00B7ZN2KbzgbRWmGbZcXkg1xXw5PHFlZ3jM2vXb3lrqrWZVfnSFGMjmH5pjq4qJMWqF068ZfJvJ1Z9VQmwXhpSQZnnmFVmDW8hzDqmqGBBBmQJRsRVFT\u00B7\u00B7\u0022\u00B7\u00B7Kxnftp dd\u00B7\u00225\u0022 fpkcvxsb\u00B7\u0022XT6.568319G\u0022\u00B7\u00B7FfwzgmjljtQrd nw\u00B7\u00226\u0022 xdvwwqjVjsc\u00B7\u0022cznms\u0022 jcqgwgflhmNxgzgrnmx\u00B7\u0022rqrb\u0022 mfh\u00B7\u00223:32\u0022 QFCwccmvpGljvcpDplrjnmbzwHqn\u00B7\u0022391:23.1\u0022\u00B7\u00B7Lgmxfmdblgtsxz mg\u00B7\u00222072495724225125w\u0022 wwbqvpfbf\u00B7\u0022068578\u0022 dcddzm\u00B7\u0022sr39.23.94.78.63.68.85.94.54\u0022 rgffJclm\u00B7\u0022jxxdr/ws3\u0022 qgr\u00B7\u00228:7\u0022 RJGlfjwmfcFfs\u00B7\u0022qgtd_lm4-tndjk-vxl2_338j\u0022 QDBbpkdjzPnfjtw\u00B7\u0022388834\u0022 HFRbprjjznNppvhwtgzdVvc\u00B7\u00227:899,087:77.8,698:08.6,509:11.8,0173:52.3,2389:62.2\u0022 XTNnnpbcgvRpbdnrflmlWlrFkdrlmpqgkPwrrq\u00B7\u0022dfjd\u0022 FHBzwwbdtgQzmsqghhtxQjzrm\u00B7\u00227:037,999:82.3,127:93.1,733:56.5,4575:00.3,6844:12.9\u0022 RKLfnTjrsqsHlbn\u00B7\u0022\u0022 vkzcw\u00B7\u0022116\u0022 rjbjmg\u00B7\u0022378\u0022 xrnbxLwtl\u00B7\u002200691/004\u0022 BZQrpvgwcHjlms\u00B7\u0022rk\u0022 QCBvjljlsHwlzm\u00B7\u0022105p\u0022\u00B7\u00B7LqfhTHL\u00B7wmkjc://nxnfbkvk-xfr1-6.bfrgzgmjcfms.fhz/h8/j/x7/m2/q467/QNFSlPCwVmr3t5q_NjwjGLFzkwcKNC6CBz2X6b-gfc1dmzVdcLL17N8Qz0MfP2wGqscPNBMVmst5XDzV6QGxGm1QkPtMwMbJzXMJjzdfpH7D7s.xb9?_xl_wqh\u00B7579\u0026vlt;_ln_jqm\u00B75ld419\u0026wcr;_cj_wn\u00B7hbtqmtbb-fbz5-0.cgsglvthksxb.xpz\u0026fbt;_pd_zvs\u00B7TldglJzWhxNF8lTtnMXgJ4v\u0026bwr;lgl\u00B7cgT5MH3wh9HjT9SxNrG0FvjnTWrdvtKnBdPbrRJfGdNtFPGcKqBtw0zsjdR4QKSlk1klVRfmrqPzKgGltLQxJpBvBBZlL1kfTzvldShsSVCkrBkghGZdJ6NnS9TmxV8gSWP8LCQ7HqS6SrLrLgqsSKZ8NLXlhTqqxhNcbtFqPZD9ZzvpFvgprLJ6N2Pqx8H4S5zdFgxwTJr8DmHfDVp0DSP6JpS7VLVvx0KkfP4pM3TsCNK8tlV5XSVbCbKmD3BdNWBqw0QlhHGfJgQsBWM8LFWgmXMrxZnwhf8bRzw4DLFbzPDqGJMhWzs3TvQ5HLKsXnRshSmzmv7ht3QqR4PsQsQ7n4ndpH%3W%5D\u0026fpv;knf\u00B719-5\u0026qlt;_pk_vjf\u00B7vRZ-xW72WhlFrx7N9c3LxH\u0026ppg;_fx_jj\u00B71b38z\u0026nzd;_mz_qs\u00B735\u0026vmg;hs\u00B770_GKXfPFBBzvNRBKkhVn2-wbGF0wnQ8fwdQVBtqlVsNHDVDN\u0026fch;hj\u00B72KBMHS36\u00B7/ZcxpXGN\u00B7\u00B7ZjcrvsjRvjr xqptjPtttr\u00B7\u0022579-154\u0022 gfjzjbkvj\u00B7\u002296708\u0022 ZHBdqstjlZbxpnbsdZtxjj\u00B7\u0022712-44180\u0022 LVPrzlrxnKbvzcgdqFghclhfn\u00B7\u00220076\u0022 ZKCfwmmdbHrsnqnkfNgsxx\u00B7\u0022317-065318\u0022 QTJrjkpDsnlnmgThcmd\u00B7\u0022553-680009\u0022 TPGxgnxHgjzswxSppwfpmn\u00B7\u00223152\u0022 SFZnnhqbLzccqxlFqqzn\u00B7\u0022303182-344504\u0022 GKTljbfxhgDgqjpwfGlqnk\u00B7\u0022118-472377\u0022 ZPVtsbhdzxGcfbwjbNvjbvnpk\u00B7\u00227004\u0022\u00B7\u00B7Nxvkfqvhjmqwzw mcxsl\u00B7\u00227-580\u0022/\u00B7\u00B7/DxzggthWvpr\u00B7\u00B7/Cwkgtrwwtwfrrx\u00B7\u00B7Djzcbnsxxpbscf wp\u00B7\u00224559668956075875r\u0022 lfkdlrspk\u00B7\u00224840764\u0022 cqbhnv\u00B7\u0022rc95.04.95.89.72.91.09.82.99\u0022 pztxTvjz\u00B7\u0022dtstp/jp3\u0022 nqq\u00B7\u00227:9\u0022 MHWstfgbxrZcr\u00B7\u0022qxpp_qv6-zgzmj-gtq6_932c\u0022 VHSzcsrgfNpgqwm\u00B7\u00221305635\u0022 ZLNczfntftJwpxzflrdxPmk\u00B7\u00225:496,146:11,187:35.5,716:49.8,5177:64.4,6062:57.6\u0022 WFHcmqqdqkBxrpnhbkrtLjbKwhqvdqmcfZbktf\u00B7\u0022jcjj\u0022 GTStrpmxbkKxlcwsmccnSnzfz\u00B7\u00222:328,067:94,839:60.4,071:34.8,7745:31.1,6322:63.8\u0022 WZQzcQgsxwqSplx\u00B7\u0022\u0022 xxlws\u00B7\u0022783\u0022 fwfkvh\u00B7\u0022380\u0022 hdvkwTsmh\u00B7\u002245054/163\u0022 XHCxzjwxkQnxzf\u00B7\u0022mf\u0022 PKNtcgnndBhzxd\u00B7\u0022471j\u0022\u00B7\u00B7XctbPMS\u00B7psskz://snjmzxxw-fkm7-7.drtbrbzrfrxs.hjh/q2/x/b9/d6/b419/RGC5Zbt9NPsrz9Gt2FggsDmPdw78stTMzkRTNkb6V4mNGkhmG53Zd2JPfhg8vlvB5RVwLTSdSSHhBlCVwNP3840vTzp8ZkZHDNTncrHBSddrSf.vp3?_xs_kmd\u00B7672\u0026pfj;_dk_nws\u00B72qm860\u0026wsp;_vx_cr\u00B7bwsjvsvv-bjj8-2.zgvpmlwzmxqk.cgb\u0026jdq;_gk_ngh\u00B7BS5zmjwbmcRM3cBbhWddGlr\u0026ngj;klj\u00B7snB5FB9dz4BvM1WtCnK8NmjmWLdvsjHcPtRssSJzPjFwTZBfKtXns5bfshF9KMGmq2gdQPhcvgTtFWVnvHRmFzFlQKRwW7kmVfmdpDxpMFPsrKgnvRLbK2WmK7PttK2xVKR3XTW0HrW1ZnPpFnfpZBN4SCGbfQgdnrLvmpQjMDH0QvfnJxpcwWX6N5Lht0R1K6tzGjxrKBc7NrSqCFr5HVJ4SqQ3TZGfk0BhrB2fK4LbTVS0dsG9MBHnZvHdJ9PsHFGnn9NzbGQjFbJvBSL7FJHnrMMckQlnmp3zPnx5XGNmtGZjHJBnWmbzDDZ9HMn1STD2scrjGN4hz095pmFnJgkgx8c7Nt7%1F\u0026pxs;qsp\u00B773-0\u0026bfh;_cd_nkl\u00B7fQV-rK63GtpRsm6S1l2BcR\u0026wgr;_mh_bw\u00B78h40c\u0026dbr;_jr_tf\u00B740\u0026gbt;sd\u00B784_FTDcl1ZTzZXgpWFhSHhb_drClZNQrHRx_PrMZdj5WXPx-r\u0026jnk;qq\u00B77PGPG98D\u00B7/CrthHLZ\u00B7\u00B7GgghqqrCswt jxjrdQxbvl\u00B7\u0022068-309\u0022 rvtfsntbb\u00B7\u002222493\u0022 BDMvzfxwpMpkngrcwJlmvb\u00B7\u0022118-21637\u0022 BXGtgvmfwSblclpzrQxsbmghg\u00B7\u00222050\u0022 RPMkxpbgdFxstpzjrDnmkj\u00B7\u0022383-728387\u0022 PTMsgsgNsnjdzgGrzss\u00B7\u0022009-5656966\u0022 RSJxvrhZkbgxwfNqmdhbct\u00B7\u00222462\u0022 BLLrdgbrKldfkzqHtqsh\u00B7\u00229956845-1203370\u0022 QBCcntctgvZbvpkgjVkbrc\u00B7\u0022693-5100460\u0022 ZXHlrpdgdxBzgdhrpRjgtbqgf\u00B7\u00224436\u0022\u00B7\u00B7Jpcvrbppljrdpf jkfxd\u00B7\u00221-480\u0022/\u00B7\u00B7/CcwgkmlLscg\u00B7\u00B7/Zhlhdcphbppqkw\u00B7\u00B7Kfstgnktdhhczj zt\u00B7\u00227832577356276254z\u0022 lpdfcvrjh\u00B7\u00224878102\u0022 mrhmcg\u00B7\u0022mb52.76.88.56.48.96.79.35.71\u0022 fsfdCvgh\u00B7\u0022gzvdl/fv2\u0022 bwq\u00B7\u00227:4\u0022 VJLpsvgqlrStx\u00B7\u0022tsnq_xq8-cqqfv-tvc9_636z\u0022 LKVptcwljHqncgr\u00B7\u00223810180\u0022 FKVpcntjlsFvgtrdwjmvZrb\u00B7\u00224:862,404:68.8,327:61.7,705:38.9,9208:65.8,7409:57.5\u0022 PHRzhllgdhLzqzpdqkxsWdsTdwjsktknmWtcqc\u00B7\u0022mdlg\u0022 TDZcrcjhwjXkffpvfhrvQdmwd\u00B7\u00220:203,428:20,894:56.02,745:51.6,8567:15.1,2265:87.4\u0022 WBFxxVqpqmqMcqv\u00B7\u0022rnknn_gp_gscbxsvj,hxqrq_cf_zwmxfgjv_ltxnpflsnjm\u0022 rcqwp\u00B7\u0022713\u0022 vrfzvz\u00B7\u00220488\u0022 fkjtkZvtg\u00B7\u002283819/410\u0022 WRHshlfftCvvtk\u00B7\u0022mg\u0022 HNTxlgxpdHcsgd\u00B7\u0022606v\u0022\u00B7\u00B7PxmvCPJ\u00B7bkjrj://bmqdbktg-vnt7-0.swvrcfbtlhfn.gfb/w3/q/t0/b9/k034/RVK_Qg7HhfVjKbgh1PBSr0bK6X70FQB23RKXwrsSfj35bCfdkkgq80PW5PwWF9rsxLMHDFFbWc-MWlhpcLtFxnvPVNj5x8VMtLP6mthtHrHLcT.db3?_vm_tfn\u00B7205\u0026dvd;_zk_jxv\u00B76zh083\u0026jxw;_jh_xj\u00B7qmkmwscx-wfk2-7.zwppvxmzbztd.psj\u0026txx;_hv_zdf\u00B7zTc6ZH5rljGH2hTjcDCzV1g\u0026lbd;dlt\u00B7qjH8BZ9gk1SmN3KjPpN6XgdsCSglccNqMnXndCKwNxLbRZBhNbLmn5dnmnK8BQTgg3rcTJpxfqXpMqKdjSZbNnCqGJSlL6fvXhhkcBdpHVJwdSsnvGDrP1HdT5FdqW0zWXH9HSG4LpT6CrCvQwcjWSM3PCTmsMhhvmWgblQxGGQ4TrtfPhvdxZC4L4Kmc2N4N1whMgtxDRc8NtRnSPm5VHC5RkL3JPVzj3VqdR5tZ8VbGDM7dhS2KSWtPnJqR6RzPNPkz6VflTStMnKxHCZ5GQHhpNNxsZlvrr3sXhv6CZBgcGKfZSFjWgh9WLWhLLS4JNG9vgggNV8cx395xfSfQlxns1p1Qk2%7F\u0026fmn;jsr\u00B718-3\u0026vhb;_lj_fhd\u00B7vQJ-dB29LpnPcj2T7h6LbB\u0026mnm;_tk_bx\u00B76v06k\u0026jtf;_gn_pj\u00B765\u0026tkl;gj\u00B730_ZCT1Rn4w6fZwkVBh3FxGVRKLvZbT5NqN6lz2mqX32K69zk\u0026ptx;rg\u00B75BVMT6XG\u00B7/VsxmDDW\u00B7\u00B7PlzlnhtCcxl nnpbxCfbjw\u00B7\u0022107-778\u0022 hvwqksplc\u00B7\u002252055\u0022 XKXgwbtftVchkhlssWqdqt\u00B7\u0022341-127010\u0022 SRRcpwwzxVwlqmrpvSccjlrsq\u00B7\u00224203\u0022 JPXmlrhkwRdtgrwslMszkd\u00B7\u0022873-5825656\u0022 JLQtpssCzzhmdjWctlc\u00B7\u0022737-9356477\u0022 KVHmnhmDxxtctmBrxjwrmk\u00B7\u00227128\u0022 LQNjrccgZbcfwtmGnsth\u00B7\u00228939991-3593857\u0022 ZXKbxtpwpbDfjbjjzXzjfl\u00B7\u0022485-7251590\u0022 QTVkfchjnbNllflmfSvmljgpw\u00B7\u00221577\u0022\u00B7\u00B7Dcvbhqvvshddbh fshhh\u00B7\u00229-928\u0022/\u00B7\u00B7/JpzmfkkCdpg\u00B7\u00B7/Vbhnbqczrqtnlq\u00B7\u00B7Mnmdnkqswcnttj vb\u00B7\u00227380825249658594l\u0022 nscwmpvhz\u00B7\u00224387638\u0022 sffvkb\u00B7\u0022ps22.15.86.96.41.21.31.34.40\u0022 lmhhJdqn\u00B7\u0022cbtpr/jm0\u0022 xmp\u00B7\u00224:4\u0022 NGSllcpcnxCrc\u00B7\u0022bvcb_lk3-sfpmb-kkf3_2033h\u0022 PHWtvcbtcNdtqqx\u00B7\u00223147409\u0022 ZMPtxwqgqkFngstqwnhfMjj\u00B7\u00221:062,010:45.0,992:28.0,022:73,2467:96.1,2335:87.2\u0022 KHWnhvnqhkNdbjndhpmgLsnXvjgjgnzqxLzdvj\u00B7\u0022nkbb\u0022 NJQkpknrtrJhflsbtqzvSpdqf\u00B7\u00227:656,920:58.554,575:59.660,443:47.14,8896:83.0,4732:78.5\u0022 GRDtjCgzmwmQmcz\u00B7\u0022pgvnq_cs_vbtmtxch,vtqml_bz_qnwrpspj_qbqvzlstddn\u0022 lfvtz\u00B7\u00222693\u0022 zqdgvc\u00B7\u00227452\u0022 qqhzxRggh\u00B7\u002264372/309\u0022 FWGdrvwgzPcxdk\u00B7\u0022wr\u0022 FWWhlxtkxHscxh\u00B7\u00229842l\u0022\u00B7\u00B7VmpfNZP\u00B7qhlql://pcftmlvg-fwk6-3.zrrqtljnxvxf.njc/j7/t/z0/f4/z849/LGKdMR1Xwv0lcPS-B9WPZlsTq_FtRm5Vxds9PgPsSmsbcMfVgcm_sGhvbrkWX_DhhkNKjVcRgq5T4q1LC9rxpQ1l6_FxPcrqNtkxHGdm2RLwfm.ff9?_vz_nfz\u00B7410\u0026qhr;_gw_prl\u00B72rj965\u0026ldv;_hs_kw\u00B7lkrdsgvg-zsf6-3.gqqwvprtqcst.gvk\u0026hgr;_xz_zpx\u00B769tjRlZVp2ZF4sZhhN4knzN\u0026hmm;tkj\u00B7xfH7QZ1jp3JqC0LdZlH2DszdWFpqsfLwTcWpdJGbQvQrZRZbNxHzd4qwbqF0CSBbn3mfHBldlqXgJFL2QLCkFTC7dCVpf45pWCV0cgSgvQjrg3lmZ3SgjDgbls7ztFQwsWGfNwlrGzLzXVc2VzZ5RcZ7ZPfnQ5wxBQ27V89tcPQdQxBjHzGvLqsjfn1qt8FpzD3gDHB0BPV6DJWlJpQ4DZJ7FhNlCPfqRJFqLHHqSBxrQ1WrbDBlKqPqVSD6zR54v5SfMXSnF6rpVqmqBGblTbmdRJWtWMTcq65lsvF1DPddZbk4mkW6LTZ1ZMR6JBk5ZDxnbHNrX5FlM6QddVRsKVK1Cfh4wrM7\u0026vsm;kpv\u00B722-9\u0026ttw;_jj_hlw\u00B7qGV-hZ17WlbKxr8Q3b2PxF\u0026dbw;_mv_fg\u00B74f01z\u0026gkh;_kw_ml\u00B748\u0026vvb;xb\u00B727_BBMkFM5xqPGJZ0Vwjzc5W9pdjvNsv2XX4Z_0S9qwFvC-mZ\u0026fqc;nr\u00B76DZRDTBM\u00B7/SrdbGFK\u00B7\u00B7WqblcrsRhqt hsmvtRxsmk\u00B7\u0022471-266\u0022 cnkrbbxqv\u00B7\u002203224\u0022 JZJsmlhxlCnpgzckmGnjjd\u00B7\u0022106-717154\u0022 WVRrqpzbkMzzthclkGqqjldlc\u00B7\u00222083\u0022 GVNfmjsqhPcdjzgjcPrjjl\u00B7\u0022577-8780386\u0022 VDJmmmjRrpqhtpJfhml\u00B7\u0022890-5400507\u0022 PXMgpdkKvhbfprRbwxtbbz\u00B7\u00227607\u0022 KNVvlsfmJsqxxzrHnrlj\u00B7\u00229415355-8513018\u0022 GWSdpcgpgfMzjtqmbLbfjr\u00B7\u0022314-8806899\u0022 MMTtcmfwpcFjgrkwqHmrpsnnb\u00B7\u00223766\u0022\u00B7\u00B7Rjfbwfmnfcttxj kgkds\u00B7\u00222-507\u0022/\u00B7\u00B7/PfjpvdzJhpk\u00B7\u00B7/Qmnhxmvfpdznrb\u00B7\u00B7Nmsdcksvhclcmn fj\u00B7\u00221228827244386697z\u0022 kxlpzcptr\u00B7\u00228273167\u0022 snfbhf\u00B7\u0022mv35.75.93.10.52.62.92.88.57\u0022 mndhLmrh\u00B7\u0022tnzcm/qp1\u0022 cgk\u00B7\u00220:6\u0022 MCDzphvnfpTtm\u00B7\u0022rgkf_tf2-vnxrr-xjw0_6232r\u0022 FBVjscxxpBhwlmt\u00B7\u00223907003\u0022 GPWqwtjlfpLflqnkrtggKbr\u00B7\u00223:658,854:65.3,545:97.4,647:68.0,7312:21,6574:40.7\u0022 TZWjgpqjxpQddvcjfvnnVsnQxnpgnsmmfRmgxw\u00B7\u0022qvrr\u0022 CQXjnmldjlPbqnbzlkhgBfshd\u00B7\u00227:566,658:50.960,812:90.559,190:03.15,5712:61.8,0838:27.1\u0022 JZDdsDnlpxxBxgr\u00B7\u0022hxqpq_xj_xbrtvtpd,pckrz_nb_klrxxnkc_srzwzdvpnkd\u0022 hnvjc\u00B7\u00224979\u0022 dddgpl\u00B7\u00224151\u0022 ffkbqWnvf\u00B7\u002238731/262\u0022 MLKphsmtgRjgnd\u00B7\u0022sq\u0022 LNBcqqxdpNpdrx\u00B7\u00224761b\u0022\u00B7\u00B7ZnwcSKZ\u00B7vrbfd://gptnjqwk-wgs7-0.lfnztpdhprpr.cxq/k9/n/s3/b4/w552/KWZSLjwZsSxHPrQtFCm33ZvHx2dLdnT_qt_mqpPmC1bGpHWP2pm0FP0xLwZV40hHnlFDgRVh2FlnnDb-LWfmZMbVsSDPNMGfgpHhCdD5hQ1_SN.jn3?_wr_jht\u00B7368\u0026wpp;_vt_gkc\u00B71rh389\u0026csb;_bh_fx\u00B7hvzpgdpb-lht3-9.fhhgtjfzvdzx.msz\u0026snf;_ls_lfr\u00B7hZ_WjMT06FKK2gMcvXhdBn7\u0026chd;zpb\u00B7hvJ0CZ2zq9BfJ9LgXbK3WpjcDQnbjbXbNrQkvDPsBkRlHGDhNjBsn0ldmjX1SVFbl7mgKXcfjgKtGWS1RHCbJHX2lJKrv09pJPF9jtGwtVhfg9fdZ4KqnZbskc1tgWJnjXJjZwbbPfZlTNj4LpJ6RfP9RTdzT4zrDJ94Q35ddQHqHqGpLnRbJtqxfd0qr1GvfM1nMGL0DZT7BNFdDdK5LMN0LxSwDGzkCJXdFFDsSTnvG7ZqqFHxPcBcLRL8zJ56q0CcWGTnG4vvVrchZBkzVgftLKZwHSVnx81qcxN8GQdgFbg7xnJ5NQZ4PNS6XMHqRflfrFQzL0KrG5MbhLLlJML8Vxc9ddZ4\u0026hvp;ntk\u00B768-5\u0026qsf;_vd_vvx\u00B7sBT-zV39WdvPvq5G7c1ZcH\u0026stw;_gc_jm\u00B73v37s\u0026swv;_hb_cw\u00B723\u0026fgc;xs\u00B758_LSXBVnM96HQShx10GDlK4vHNTF1PvqfLrPqvcFrh2Zw_lL\u0026zpm;kn\u00B79DSFX6K8\u00B7/MlcvTFR\u00B7\u00B7PdnptggJjdx cvhbtHmfhw\u00B7\u0022668-046\u0022 kpzpnbbzk\u00B7\u002226454\u0022 WKXgvlqfjGnjfkzljJgbjs\u00B7\u0022267-343694\u0022 DKMvkdvhjKwrrlfbvNzrtvlxw\u00B7\u00229873\u0022 MBFtjvktkJvgwphlsDpvsj\u00B7\u0022882-1579221\u0022 KTJvwbvGkgpjsmVtgcl\u00B7\u0022239-3584626\u0022 QVRvbtpCqfnknvZsvmhvrv\u00B7\u00225658\u0022 ZWJfwkdsFmknfdfCtddz\u00B7\u00221363861-5033582\u0022 PDKpmfvgpcKdfhrrvPptwv\u00B7\u0022846-2762674\u0022 VRXlvjplvtXnjmnlrRpssjssn\u00B7\u00223293\u0022\u00B7\u00B7Zndpffjkhklhcp zddrz\u00B7\u00227-747\u0022/\u00B7\u00B7/RgsjsxhThfl\u00B7\u00B7/Cpzmzvrzszgfqk\u00B7\u00B7/PczvjcjcccPrb\u00B7\u00B7MkclzjgxskKxd pb\u00B7\u00225\u0022 xjtdfxfZbgb\u00B7\u0022dxcpn\u0022 sfwgrwjcrzZfxzbdWhsgRXF\u00B7\u00224\u0022 vbdcqzxvgtBmbcqlkmm\u00B7\u0022hbwd\u0022\u00B7\u00B7Ltmjwkvbdgqtsf ss\u00B7\u00225388237869121886j\u0022 kdqdnwvqg\u00B7\u002227183\u0022 rrpffj\u00B7\u0022jl9k.81.6\u0022 hjgxFccz\u00B7\u0022pjmfq/qw8\u0022 MPDchDfvbsrc\u00B7\u002260419\u0022 mjxkzJwnnfkwjZvft\u00B7\u002285070\u0022 JTHhrgxjszSgv\u00B7\u0022hwjx_cb_gsnsn_lpx0_qccnp\u0022 GCQmjrqstRjqtwz\u00B7\u002227592\u0022 QBMrgXjhlxtXddn\u00B7\u0022\u0022\u00B7\u00B7LcnchVrbpchsChpsdbbznqrlw ljhhhwXbVbt\u00B7\u0022lwb:gfxb:gcjz:52431:4:xlfwm_rvchwwg_qlzzmjgnrlngt:7995\u0022 rlvrl\u00B7\u00227\u0022/\u00B7\u00B7VkrxRLW\u00B7fhbsr://ckkttbzv-gkz4-7.rrlzgxscglsq.vtd/w1/d/r6/d2/g49/MBCRw5CSM09s7SfdxZH6T4pCV0s02qC7BFSlMsTJMzH_FddZ9CW-b8Mc3B0mLPZjQWxDkC7xFT6WSLDVSfcc0GRdBTF0NDnKn6-xbcL.sk7?_hq_xjt\u00B7638\u0026zrm;_tk_xcb\u00B77mg291\u0026lgx;_zn_fd\u00B7vcphcqsn-wlm0-4.xvcwhlflxxpc.wjj\u0026gkt;_wn_ccj\u00B7QLvMRPgNJTHW2lLqqPWs9CM\u0026ngw;hrx\u00B7hmM3MQ4qr6CbT8XnDdJ5MpwvZDhxtjPzWrBvfSPzBxBsQDKsSfGms8ptqH8zlTLcSXCvkwQzF78xwBKvqrHvLpKkMQJzQ5jvQjpzjJwqVDPwdRdzfPRvS2JcL4ShdJ2jPRT7PMS3FxK9DwMlKkngTBP0TCHcnBghwcTpzrJhHGK4SnbwKstrxNB3X6Whg0M2P2jlTxtdTSs6TxHhKFb4BNQ0LjV4HFLvr5BsgM0hW8VzCSL5zpM0RKFfZbRrT8VqJTZbg9HcsWNrDbJdQBH5GBLwnGXqjSrgfp7fTpb9NXBzsMDdFXGmKpk6ZWZ3ZZshlCPfK3DzV1TlrDNvLNH9Lmq2gfT9\u0026bcc;jds\u00B771-6\u0026kjv;_bs_vhn\u00B7qFB-dN42DtpKnp4S3s5GkJ\u0026mlt;_wk_jb\u00B79v07x\u0026ndt;_mx_ps\u00B783\u0026mpj;jb\u00B707_GVQv0P5S0Lxd4wQKF-lNz_J1GlQJdc8Glr7d1JqnGg-nJT\u0026xcn;sx\u00B70JVWQ9F6\u00B7/SdqqHVC\u00B7\u00B7RcwwfdvJkrf grnljQbhwc\u00B7\u0022296-855\u0022 bxzzdzkzx\u00B7\u002252301\u0022 CBSzqncfpPxdfnjhzVcjkz\u00B7\u0022314-2863\u0022 MWSwwcptbXdfsxdjtKkzclhhd\u00B7\u00229386\u0022 SPDmhtmlhVdlvpntlGdpwg\u00B7\u0022347-33291\u0022 LFTjldfRfntqpdHprqj\u00B7\u0022212-20288\u0022 TTGxngzTkmvvkcXqvqjwfh\u00B7\u00223327\u0022 HKNbxcrsRnplhvjPgqhk\u00B7\u002229869-56940\u0022 GFJkwjjcfrZcbgdwjKbnpj\u00B7\u0022817-58201\u0022 LKKjnkglnmBvjbhwrTqrkwxkj\u00B7\u00223444\u0022\u00B7\u00B7Krqgzcxckqdlgm bpdwz\u00B7\u00229-332\u0022/\u00B7\u00B7/DhlcdsxHdhb\u00B7\u00B7/Tnhtzwsjflwwvq\u00B7\u00B7/BfvdcnvfswPjx\u00B7\u00B7/Ltssxg\u00B7\u00B7/QTV\u00B7\n", + "user": { + "strong_id__": "215081405", + "fbid_v2": "55370645405178029", + "feed_post_reshare_disabled": false, + "id": "215081405", + "is_unpublished": false, + "pk": "215081405", + "pk_id": "215081405", + "third_party_downloads_enabled": 1, + "account_type": 2, + "can_see_quiet_post_attribution": true, + "account_badges": [], + "full_name": "Gqqdcr Vkrmp", + "has_anonymous_profile_picture": false, + "is_favorite": false, + "is_private": false, + "is_ring_creator": false, + "show_ring_award": false, + "aigm_account_label_info": { + "is_enabled": false, + "is_auto_detected": false, + "is_manually_enabled": false + }, + "is_verified": false, + "show_account_transparency_details": true, + "transparency_product_enabled": false, + "username": "dwvqbrgcjf", + "eligible_for_text_app_activation_badge": false, + "user_activation_info": {}, + "fan_club_info": { + "autosave_to_exclusive_highlight": null, + "connected_member_count": null, + "fan_club_id": null, + "fan_club_name": null, + "has_created_ssc": null, + "has_enough_subscribers_for_ssc": null, + "is_fan_club_gifting_eligible": null, + "is_fan_club_referral_eligible": null, + "is_free_trial_eligible": null, + "largest_public_bc_id": null, + "subscriber_count": null, + "should_show_playlists_in_profile_tab": null, + "fan_consideration_page_revamp_eligiblity": null + }, + "friendship_status": { + "following": false, + "is_bestie": false, + "is_feed_favorite": false, + "is_private": false, + "is_restricted": false, + "followed_by": false, + "is_muting_reel": false + }, + "hd_profile_pic_url_info": { + "height": 960, + "url": "https://cdn.esempio/4c74479rv6zw0pp5.jpg", + "width": 960 + }, + "hd_profile_pic_versions": [ + { + "height": 320, + "url": "https://cdn.esempio/q5pz0293nmsd9nz9.jpg", + "width": 320 + }, + { + "height": 640, + "url": "https://cdn.esempio/2b806015288zl984.jpg", + "width": 640 + } + ], + "profile_pic_id": "6460827721051748069_181896617", + "profile_pic_url": "https://cdn.esempio/l77dd7l0fd384l17.jpg", + "is_embeds_disabled": false, + "text_post_app_is_private": false, + "is_active_on_text_post_app": true, + "latest_reel_media": 1792602930 + }, + "owner": { + "strong_id__": "215081405", + "fbid_v2": "55370645405178029", + "feed_post_reshare_disabled": false, + "id": "215081405", + "is_unpublished": false, + "pk": "215081405", + "pk_id": "215081405", + "third_party_downloads_enabled": 1, + "account_type": 2, + "can_see_quiet_post_attribution": true, + "account_badges": [], + "full_name": "Gqqdcr Vkrmp", + "has_anonymous_profile_picture": false, + "is_favorite": false, + "is_private": false, + "is_ring_creator": false, + "show_ring_award": false, + "aigm_account_label_info": { + "is_enabled": false, + "is_auto_detected": false, + "is_manually_enabled": false + }, + "is_verified": false, + "show_account_transparency_details": true, + "transparency_product_enabled": false, + "username": "dwvqbrgcjf", + "eligible_for_text_app_activation_badge": false, + "user_activation_info": {}, + "fan_club_info": { + "autosave_to_exclusive_highlight": null, + "connected_member_count": null, + "fan_club_id": null, + "fan_club_name": null, + "has_created_ssc": null, + "has_enough_subscribers_for_ssc": null, + "is_fan_club_gifting_eligible": null, + "is_fan_club_referral_eligible": null, + "is_free_trial_eligible": null, + "largest_public_bc_id": null, + "subscriber_count": null, + "should_show_playlists_in_profile_tab": null, + "fan_consideration_page_revamp_eligiblity": null + }, + "friendship_status": { + "following": false, + "is_bestie": false, + "is_feed_favorite": false, + "is_private": false, + "is_restricted": false, + "followed_by": false, + "is_muting_reel": false + }, + "hd_profile_pic_url_info": { + "height": 960, + "url": "https://cdn.esempio/4c74479rv6zw0pp5.jpg", + "width": 960 + }, + "hd_profile_pic_versions": [ + { + "height": 320, + "url": "https://cdn.esempio/q5pz0293nmsd9nz9.jpg", + "width": 320 + }, + { + "height": 640, + "url": "https://cdn.esempio/2b806015288zl984.jpg", + "width": 640 + } + ], + "profile_pic_id": "6460827721051748069_181896617", + "profile_pic_url": "https://cdn.esempio/l77dd7l0fd384l17.jpg", + "is_embeds_disabled": false, + "text_post_app_is_private": false, + "is_active_on_text_post_app": true, + "latest_reel_media": 1792602930 + }, + "community_notes_info": { + "has_viewer_submitted_note": false, + "note_submission_disabled": false, + "enable_submission_friction": false, + "is_eligible_for_request_a_note": true + }, + "has_high_risk_gen_ai_inform_treatment": false, + "caption_is_edited": false, + "code": "NkNCTkwnbp8", + "device_timestamp": 1868754255900570, + "enable_media_notes_production": true, + "filter_type": 0, + "has_views_fetching": true, + "is_post_live_clips_media": false, + "is_eligible_for_rta": false, + "like_and_view_counts_disabled": false, + "is_meta_ai_invocation_blocked_by_author": false, + "tya_media_related_topics": [], + "teen_project_info": null, + "is_educational": null, + "meta_ai_suggested_prompts": [], + "is_eligible_for_poe_premium": false, + "is_longform_player_eligible": false, + "collaborator_edit_eligibility": false, + "is_organic_product_tagging_eligible": true, + "can_viewer_reshare": true, + "has_shared_to_fb": 0, + "media_reposter_bottomsheet_enabled": false, + "can_viewer_save": true, + "is_comments_gif_composer_enabled": true, + "translated_langs_for_autodub": [] + } + ], + "auto_load_more_enabled": false, + "status": "ok" + } +} \ No newline at end of file diff --git a/tests/Febe.Tests/campioni/instagram/000006-raccolta-in-evidenza.json b/tests/Febe.Tests/campioni/instagram/000006-raccolta-in-evidenza.json new file mode 100644 index 0000000..ca1e720 --- /dev/null +++ b/tests/Febe.Tests/campioni/instagram/000006-raccolta-in-evidenza.json @@ -0,0 +1,1494 @@ +{ + "descrittore": { + "indirizzo": "https://sito.esempio/34m6543g18c0k202", + "host": "sito", + "stato": 200, + "tipo": "text/javascript", + "risorsa": "XHR", + "quando": "2026-10-21T17:38:59Z" + }, + "corpo": { + "data": { + "xdt_api__v1__feed__reels_media__connection": { + "edges": [ + { + "node": { + "id": "wbrdsqcfh:40873216433815628", + "items": [ + { + "pk": "7009798309448767101", + "id": "6641387786073220117_745191339", + "has_audio": true, + "story_music_stickers": [ + { + "music_asset_info": { + "should_mute_audio": false, + "should_mute_audio_reason": "", + "title": "fkmcs ts d ncxgqg", + "display_artist": "Nnrh Pmpdf" + }, + "id": "02483360842195866" + } + ], + "ai_label_info": null, + "carousel_media": null, + "code": "HWjdK2Cbm3-", + "image_versions2": { + "candidates": [ + { + "height": 2144, + "url": "https://cdn.esempio/g8125r7c0gl938p0.jpg", + "width": 1206 + }, + { + "height": 1920, + "url": "https://cdn.esempio/5r425g6s26106h75.jpg", + "width": 1080 + }, + { + "height": 1280, + "url": "https://cdn.esempio/v7647076s4r37787.jpg", + "width": 720 + }, + { + "height": 1138, + "url": "https://cdn.esempio/18815d2xnmk3kbjt.jpg", + "width": 640 + }, + { + "height": 853, + "url": "https://cdn.esempio/r17nh1x77pc4sgwg.jpg", + "width": 480 + }, + { + "height": 569, + "url": "https://cdn.esempio/84391117x32ld1r6.jpg", + "width": 320 + }, + { + "height": 427, + "url": "https://cdn.esempio/3721101394g48mmd.jpg", + "width": 240 + }, + { + "height": 1080, + "url": "https://cdn.esempio/9n83kl25s34474cn.jpg", + "width": 1080 + }, + { + "height": 750, + "url": "https://cdn.esempio/658w1h30s48r1335.jpg", + "width": 750 + }, + { + "height": 640, + "url": "https://cdn.esempio/0426w52313613l74.jpg", + "width": 640 + }, + { + "height": 480, + "url": "https://cdn.esempio/6407324b83s50c8n.jpg", + "width": 480 + }, + { + "height": 320, + "url": "https://cdn.esempio/h65d196043670qn3.jpg", + "width": 320 + }, + { + "height": 240, + "url": "https://cdn.esempio/231v80bmn675kg15.jpg", + "width": 240 + }, + { + "height": 150, + "url": "https://cdn.esempio/x33034p5759gg48b.jpg", + "width": 150 + } + ] + }, + "original_width": 720, + "original_height": 1280, + "taken_at": 1777663535, + "is_dash_eligible": 1, + "number_of_qualities": 2, + "video_dash_manifest": "\u00B7?qqr cjcqstl\u00B7\u00220.7\u0022 pjkcdznm\u00B7\u0022XRM-6\u0022?\u00B7\n\u00B7VCG dbcgn\u00B7\u0022dbf:dqrk:jnzd:fqrwbp:lfw:5104\u0022 xlzgs:tbz\u00B7\u0022zhxt://lsj.m4.fsf/3146/SXTZlvrsc-pnfwzrtc\u0022 jfc:xrfkslWhfsmqws\u00B7\u0022src:gqbs:gmxw:tlzgzq:nww:9627 CSPM-KRZ.xtm\u0022 xgdktprl\u00B7\u0022rpf:mtpz:cngz:ptxvlwm:jjdqq-xk-tsldjx:8294\u0022 mpzZthwsnZjbg\u00B7\u0022BK9N\u0022 mblc\u00B7\u0022jwtcrf\u0022 zjmvkFnkltsgmjnpcRkftdckw\u00B7\u0022CH51.1010V\u0022 NSXdbqjdjgPcffsxbmv\u00B7\u00224881830093\u0022 PJLrfjqmqcCvsjpxmzvq\u00B7\u0022Vqmhx25TDSCqJ93nSKFlW9Tth2KbgP5tGKmnkgF3\u00B7TGzRCdFhwhfv4gL4dNd0Qzs0bKpNMhjPGHsW0cnL5nwGWDqG8FqjpCzDKMvjT9rHBlJM7N3hWWjC7mcX5n1ZRbMJhSKNmTQST2RL2KxX5bJR8VZGpjPDXJ\u00B7\u0022\u00B7\u00B7Nbqjlc wp\u00B7\u00223\u0022 mplvzhcb\u00B7\u0022CV92.0171D\u0022\u00B7\u00B7KcwrqhpchxRrj rj\u00B7\u00223\u0022 cztxvpqSxmd\u00B7\u0022jwdws\u0022 jbrmwtzxjtMgrtdbxdp\u00B7\u0022qlfw\u0022 thz\u00B7\u00226:78\u0022 HXJpmzbtgFczrqnMqkdxztrxmSsv\u00B7\u0022010:43.0\u0022\u00B7\u00B7WqvxwxpmcbzzDdrwldlk skxdkpHqBrn\u00B7\u0022mbf:dmxl:sccwG:bwgx:FlfkgkggBhsppdfvvwzljbv\u0022 dkftn\u00B7\u00221\u0022/\u00B7\u00B7Tkgdknchqktpfh tt\u00B7\u00221651665530529485x\u0022 tbnxshtjt\u00B7\u0022605558\u0022 sfdnrr\u00B7\u0022lvj2.25768h\u0022 mpjlLvpf\u00B7\u0022tqrjz/fq5\u0022 fqr\u00B7\u00223:4\u0022 VJGnfwklzvFdm\u00B7\u0022bpvg_cgrkdttx_9_r9\u0022 XBHmcfsbrNllgpp\u00B7\u0022962353\u0022 TSTxmnbfvtNxndfcsccbCrq\u00B7\u00227:199,508:34.3,030:22.3,088:69.1,4509:30.9,3322:22\u0022 ZTDxbkhkqvRmtnmmfgjlQmvLhtjvhssfdHdlph\u00B7\u0022sbtf\u0022 HZZkkkhpksHhmrrdrjtbKtgtm\u00B7\u00227:578,977:52.58,930:61.23,081:81.5,3205:28.7,6748:63.2\u0022 rxnzn\u00B7\u0022472\u0022 bshwzw\u00B7\u00228545\u0022 ztplcCmlj\u00B7\u002262917/91720\u0022 RSCjsgdsnVtlvw\u00B7\u0022hm\u0022 QJGjkfcmdBblfw\u00B7\u0022261f\u0022\u00B7\u00B7NppqZJB\u00B7pgzwl://fplpsdtt-lvf3-9.zzqklrxwkllv.rpp/g0/d/c0/k5/c66/JZGhS1mD-KrQ0FX7F_bCXVDJzQVBH8PjntCPt6HdmNMvFQcp9nMVS6DSgzxVgWj8lw7ZWLNMM7GZ6cq95DsBjRx-zl1xRgHd8X0QpgX.lg7?_zt_mrj\u00B7535\u0026ztf;_qx_ttm\u00B71wq161\u0026wcf;_jt_qx\u00B7dcnldbjq-dpp9-7.vbzbsqrwdnmq.ncc\u0026rhq;_dx_tlw\u00B7cNT7mm1XFlCV8cZjtVrcHGD\u0026vbj;pgg\u00B7dzG8LF2fn7JhP2PfTxC1ZcdjGGjkwlBlJbF7s9G1Qsvpj6n9TMPrFtWqr9kbSqRpXXsstsWhTG41GFQsSbPjDQVdS7qfMhmmkFbqPMQjkRwsxHJxV6LnW7NcjX0lXPP5LZD0DrQ6RvLlCsxtNPP1XVNhgRzzsxKfcbXdFXN6JwqhDtspfGL1J1Szm5K1G5scRjsnRQH0HKf3DBHlSTVwSBDnKXqxFHRhZTCnLLfkQ7VmqHVjWzC2XwdqcjbjsVPmC2BxDH9dXNT8PNX4ZnVkVbS9tzF6sX0vW4HlXjFzLDMwcCVvVWLwVhdkScG2JKqkNgJpvLbwmg6wz7CrJ1TmNwK9q4nbbL%7L%9B\u0026khp;kkq\u00B717-5\u0026mxw;_qc_qqz\u00B7rc3stb7b8WglTssgVPNjWN\u0026rnc;_xg_tz\u00B71mnpx\u0026vhw;_bh_qr\u00B788\u0026fqz;tz\u00B709_ZSKVnSsp_8JZJMq1jlr2XBgqbtB-xzqC8st866WDMDWhJt\u0026gsc;ss\u00B70VJRH251\u00B7/NqsqWPQ\u00B7\u00B7QvfcxkfBpfs vdbphXrgdj\u00B7\u0022801-181\u0022 vhbpqkwtd\u00B7\u002258165\u0022 XRMhtsdzfVccgzgvlHtqzt\u00B7\u0022004-027770\u0022 VCLqblhvxQwmpjqgzJcfvbqmm\u00B7\u00225637\u0022 VKBkjcbllMnzgzgbgWwrhz\u00B7\u0022544-834977\u0022 WMLhgkxJwprkmkNljbc\u00B7\u0022079-252853\u0022 ZVWzpfvQkwxnfvCtbdszkk\u00B7\u002297727\u0022 QLZmrnpvsmQqqqwtdKhtmx\u00B7\u0022519-919400\u0022 FPGcfnjzfgNzwqkrdQmtrsfqn\u00B7\u002204778\u0022\u00B7\u00B7Cwsntdwmcjprqc lwzcm\u00B7\u00223-805\u0022/\u00B7\u00B7/LhtggcpFzvh\u00B7\u00B7/Rqrzmtlkhtzmxv\u00B7\u00B7Dhqvfcfwmnzmnf ms\u00B7\u00221457112254452056b\u0022 flbrltjcm\u00B7\u002236126\u0022 mkdrrs\u00B7\u0022rvk0.5h4306\u0022 mgqtJlsn\u00B7\u0022wjdcx/ks4\u0022 pwd\u00B7\u00228:9\u0022 ZFFwmmmdckCzh\u00B7\u0022nkvs_lpzzscvt_6_q4\u0022 JCWzvxffsGtmqjw\u00B7\u002279569\u0022 PMWqzmscnqNlsmlrnxwlDst\u00B7\u00222:374,544:38.3,945:53.1,506:04.5,3480:11.2,7572:45.8\u0022 RRDtgbnbbkHmxgljvwcsGhrLtlbhsptkmNhsxc\u00B7\u0022rtbf\u0022 GGZkkncghcRlnpgztphdBlcbs\u00B7\u00227:492,736:95.0,314:21.1,373:20.6,0583:37.3,7530:26.5\u0022 crwwz\u00B7\u0022731\u0022 jgtsfj\u00B7\u0022704\u0022 lqlmrPbwc\u00B7\u002292148/39609\u0022 NCFzwwpnhFxzvm\u00B7\u0022vm\u0022 QNSxzdfzhCmnmg\u00B7\u0022383v\u0022\u00B7\u00B7GtdkGCR\u00B7wwwbs://xnfwlsxw-zgc3-5.jqxrmrnzffmq.vnw/f8/x/d6/m9/g87/CBLjsG90nLJ_SqjM5hx8Mh0dVrHLknPdrtZ3TsTZfxgrtk4_8RPT9bbDTSgHSJVGxFRZJQkS_T7t9R6zPFxC_6NbPgbfN3rkrDnPQdx.rr7?_kl_njn\u00B7713\u0026tkz;_sw_ghv\u00B78sb393\u0026rgd;_fq_gk\u00B7tmxskrnl-gtm4-1.zbxdpzrmrftg.zlx\u0026jwc;_hx_bcd\u00B7gg7mRntFfLXJ8gRqgRc_DZd\u0026vsb;cst\u00B7bcX4HZ4qs2PfM8JrQsH0XnscVWjspzNkGnQ0p4S9Xmgsv1f9HMWvLnHql5hfHwJjPTjrpcTpQ161MJNgQhVcQWSmQ7bfFmgppGgbDFLgwCnmnZJrV0VhF5MkdV7dHVQ8NCR2FgX2XbNlRsfjNXQ2RLVnfJrhlfLdntVpQKV0HzhlZjgjtWV3R8Ndj5N1G7pcXxqtWQN4MLr6ZNVcDHFbSDZmNCmkMNQhTDSpVKpfM1NlvQQrSwG4CwmvssbfgLXcP4PbWS3tJKF9JNX7SwCjMpT3gzJ7bF1qR8MnHmLsLMLjvCLkMLCtDpvhTfp5TdmgwKNgJ8TlH0GqkCLpGBQ9Sxz4kdK7\u0026rkv;jjp\u00B722-1\u0026dnh;_nd_drj\u00B7ll0zsv2b2VrjPnwdKNMwFS\u0026blt;_zr_cl\u00B77jwpf\u0026nft;_tb_px\u00B703\u0026rbs;rn\u00B790_JCW6llmxTT3l3xtWwqSfm-RWQ9lFbn84kQTxqQBH6sQJdh\u0026hnr;dv\u00B74VDQX0M9\u00B7/ZldrGQR\u00B7\u00B7FfjlwbgGvht tvxwtQsjkr\u00B7\u0022930-889\u0022 vgnlvlzcj\u00B7\u002259894\u0022 VJWvsflzdFrxsznknKhjtc\u00B7\u0022972-67991\u0022 JWWhxrcpxHjqlfxndVslpzmjb\u00B7\u00221235\u0022 SFPkcfgnhJbfqhdpwPrhbj\u00B7\u0022492-34422\u0022 NTDltfdShgrhxtRnftx\u00B7\u0022049-90330\u0022 DLFprqxFgcbzbtJmbcvrph\u00B7\u002289200\u0022 WQDmxglrvfVpqnpshCtttv\u00B7\u0022034-50742\u0022 XMTtpsqqdgPwcwkrcNzsvwbpg\u00B7\u002233736\u0022\u00B7\u00B7Hszcsgkjsbtkjn wsjgd\u00B7\u00228-490\u0022/\u00B7\u00B7/LpjzrnfNdtt\u00B7\u00B7/Szlkpvrvdhcfcv\u00B7\u00B7/XsknqsllxkHds\u00B7\u00B7WjdvvmkczlChq mt\u00B7\u00228\u0022 gttshqcMbxw\u00B7\u0022qzbqx\u0022 zbqkdrzgwbKkbrfxFqcjMXP\u00B7\u00228\u0022 wvxsvlwdlpZskcnhfmk\u00B7\u0022pdmx\u0022\u00B7\u00B7Tkllxbxsxzxmww gz\u00B7\u00227726696627831749p\u0022 jljpgmchn\u00B7\u002231278\u0022 xsjrqf\u00B7\u0022pv1p.11.9\u0022 vjcpKkmj\u00B7\u0022cmzzm/xf7\u0022 LPNkzKgqvztd\u00B7\u002275877\u0022 hvddgFtvthtdsHqhz\u00B7\u002233668\u0022 FWRqdwxsjxBch\u00B7\u0022tvfh_jf_vbmvf_hkr1_qdvhd\u0022 TWGxtxbldLrktbz\u00B7\u0022041518\u0022\u00B7\u00B7XmvsjNfprgwsBcphqgxsgkbmb mpdgqtGtGkf\u00B7\u0022jdj:gsrt:zjxb:66521:5:gbrjr_jscnwtz_bhxwktgstshdr:4960\u0022 dcpcv\u00B7\u00221\u0022/\u00B7\u00B7NrlnRKN\u00B7cmhcx://ldhtxrrg-fbw3-0.whcxjhnpmhpb.dsz/c3/l/d9/c5/r87/SPJRKtsqQr0T9qPWxS8ZfDPFgfDGwTQ4FmRGgDJqN3l5Ll8R7tL1M2sdWnfn2JfgmMRSK0KfR8tHrKzt2rC7wKqZQSGHcTswVhhQK7S.vq7?_ll_nhw\u00B7117\u0026fqn;_cq_djr\u00B79ds703\u0026sml;_qk_zm\u00B7krmskkmn-bcw9-9.jmczbkzsjchx.czm\u0026lqp;_tq_vrj\u00B7_mFZM6bdGwTR0rLwgFpRjj1\u0026bhz;vqf\u00B7xsF7TC4dx8PdR3JvRlT4FmlgRXlngbPlTsS3s5K9Dzhtj4x6JCRbMxKck9hwpH7qjTDgZNRjxlNkR65gkFNgmbQmDzJtQGGvR2ggCmrrxNdmTJWkqKtsvJPtF7KpL9JrrQ5xRDZ4SWK6QcN9DjXrKbvtPBJ0RSLthNcjqlDtpqHlFXS2JkdpCgjgxNR5P2Srt3F7F3ghNkwbDWK2FNw8QVKnHFCtPHFtSDgjWRCxWFWxZBckC9KhhVTrSfD0QfpkgdwwvGMcZ3HrVB4bNNQ0QHT1HwGvWcZ9nnB0sD8vN9KqVlGkXPVrkGBzNZLcXzl5XjBpCBpngXSfX5ZdT0NpnHQnBQT0Zmt4kzT6\u0026mdn;spb\u00B720-2\u0026tvt;_br_bnc\u00B7tw0ncf8b0RfxRngjWNWxVT\u0026nhc;_tz_nk\u00B79wqdn\u0026tfc;_pt_rg\u00B786\u0026cvq;mb\u00B753_MZDqlrrjZK921BG6xXNSVg-hMXZ8S6S6lzKxqhcVwBvfbz\u0026gjf;xf\u00B71BNMK3X4\u00B7/QjhrPKF\u00B7\u00B7HfjtcffJprz djqrnQrpfx\u00B7\u0022519-015\u0022 rfrmlswtf\u00B7\u002242171\u0022 LCVqwllhxRdrztglvJhnbd\u00B7\u0022393-7382\u0022 NTQrgmsbfJnxxvdbmCqwhhdtw\u00B7\u00226020\u0022 VMFbkzxhhWmjcplzfWwknh\u00B7\u0022471-95973\u0022 PBRphmxJjgqtqmCxmdt\u00B7\u0022284-56717\u0022 HDSsjdtVvxtssbNkcfjhzq\u00B7\u00227448\u0022 FNQjwrjgMjzqjgkHdbxf\u00B7\u002228334-03301\u0022 SDXrnvmwzkHjvqjpbHkbjh\u00B7\u0022484-09752\u0022 KKLtlnchgxWjhltbcJrskmpgj\u00B7\u00224076\u0022\u00B7\u00B7Ngrmpkcgdkmjxz vhllx\u00B7\u00229-331\u0022/\u00B7\u00B7/DmjhpcwKvnq\u00B7\u00B7/Npglzrmqqkqgwj\u00B7\u00B7/BzjpncgbshZfd\u00B7\u00B7/Ngqhtt\u00B7\u00B7/QZL\u00B7\n", + "video_versions": [ + { + "type": 101, + "url": "https://cdn.esempio/rf9t7b0337218n32.mp4" + }, + { + "type": 102, + "url": "https://cdn.esempio/rf9t7b0337218n32.mp4" + }, + { + "type": 103, + "url": "https://cdn.esempio/rf9t7b0337218n32.mp4" + } + ], + "media_type": 2, + "visual_comment_reply_sticker_info": null, + "story_bloks_stickers": null, + "story_hashtags": null, + "story_locations": [ + { + "x": 0.5, + "y": 4.96829460113056, + "width": 0.20128842018205, + "height": 0.020610808639996, + "rotation": 0, + "location": { + "pk": 359053550 + }, + "id": "43757617547144097" + } + ], + "text_post_share_to_ig_story_stickers": null, + "story_countdowns": null, + "story_questions": null, + "story_sliders": null, + "link": null, + "reel_media_background": null, + "video_duration": 20.015, + "custom_list_info": null, + "is_story_edited": false, + "product_type": "story", + "reshared_story_media_author": null, + "story_app_attribution": null, + "audience": null, + "has_liked": false, + "viewer_count": null, + "viewers": [], + "can_reshare": true, + "user": { + "pk": "215081405", + "id": "215081405", + "is_ai_user": null, + "aigm_account_label_info": { + "is_enabled": false + }, + "instagram_pk": "215081405", + "interop_messaging_user_fbid": "068866421413642" + }, + "inventory_source": null, + "carousel_media_count": null, + "media_overlay_info": null, + "caption": null, + "accessibility_caption": null, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxxxxxx7xxxxxxx7xx77xxxxxxxxx7xxxxxxxxxxxxxxxxx7xxx7xxx7xxx7xxxxxxx7xxxxxxxxxxxxxxxxxx77x7xxxxx7xxx7xxx7xxxxxxx7xxx7xxx7xxx7xxx7xxxxxxx7xxxxxxx7xxxxxxxxxxx7xxx7xxxxxxx7xxxxxxxxxxxxxxxxxxxxxxx7x7xxxxx7xxx7xxx7xxxxxxxxxxxxxxxxxxxxxxx7xxxxxxx7xxx7xxxxxxxxxxx7xxxxxxxxxx\u00B7\u00B7", + "story_link_stickers": null, + "story_bloks_tappables": null, + "story_feed_media": null, + "story_cta": null, + "preview": null, + "is_paid_partnership": false, + "sponsor_tags": null, + "wearable_attribution_info": null, + "has_translation": false, + "boosted_status": null, + "can_see_insights_as_brand": false, + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "can_viewer_reshare": null, + "expiring_at": 1777749921, + "ig_media_sharing_disabled": false, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null + }, + "can_reply": true, + "__typename": "JGPZxtzzMglf" + }, + { + "pk": "8680712041167990905", + "id": "7357011502989071034_312762257", + "has_audio": null, + "story_music_stickers": null, + "ai_label_info": null, + "carousel_media": null, + "code": "TX6X3m4JXps", + "image_versions2": { + "candidates": [ + { + "height": 2144, + "url": "https://cdn.esempio/jp963t2953588727.jpg", + "width": 1206 + }, + { + "height": 1920, + "url": "https://cdn.esempio/429l728802tn63p3.jpg", + "width": 1080 + }, + { + "height": 1280, + "url": "https://cdn.esempio/rv900hl623415108.jpg", + "width": 720 + }, + { + "height": 1138, + "url": "https://cdn.esempio/w4811785m7z87081.jpg", + "width": 640 + }, + { + "height": 853, + "url": "https://cdn.esempio/s9nwp230v35h3745.jpg", + "width": 480 + }, + { + "height": 569, + "url": "https://cdn.esempio/9745g1786psj7420.jpg", + "width": 320 + }, + { + "height": 427, + "url": "https://cdn.esempio/5966sgxt82l6077n.jpg", + "width": 240 + }, + { + "height": 1080, + "url": "https://cdn.esempio/6p67h8j50zlhg2c0.jpg", + "width": 1080 + }, + { + "height": 750, + "url": "https://cdn.esempio/fr1p5c9830p12j07.jpg", + "width": 750 + }, + { + "height": 640, + "url": "https://cdn.esempio/7902s0050c48x972.jpg", + "width": 640 + }, + { + "height": 480, + "url": "https://cdn.esempio/295k69782l835337.jpg", + "width": 480 + }, + { + "height": 320, + "url": "https://cdn.esempio/r0c4n7174v6r23h1.jpg", + "width": 320 + }, + { + "height": 240, + "url": "https://cdn.esempio/wd35x2341nr7021v.jpg", + "width": 240 + }, + { + "height": 150, + "url": "https://cdn.esempio/36f700sr575nb932.jpg", + "width": 150 + } + ] + }, + "original_width": 1206, + "original_height": 2144, + "taken_at": 1777720453, + "is_dash_eligible": null, + "number_of_qualities": null, + "video_dash_manifest": null, + "video_versions": null, + "media_type": 1, + "visual_comment_reply_sticker_info": null, + "story_bloks_stickers": null, + "story_hashtags": null, + "story_locations": [ + { + "x": 0.5, + "y": 3.75222322496911, + "width": 0.17087516392426, + "height": 0.024337515589957, + "rotation": 0, + "location": { + "pk": 79630 + }, + "id": "84556012924785082" + } + ], + "text_post_share_to_ig_story_stickers": null, + "story_countdowns": null, + "story_questions": null, + "story_sliders": null, + "link": null, + "reel_media_background": null, + "video_duration": null, + "custom_list_info": null, + "is_story_edited": false, + "product_type": "story", + "reshared_story_media_author": null, + "story_app_attribution": null, + "audience": null, + "has_liked": false, + "viewer_count": null, + "viewers": [], + "can_reshare": true, + "user": { + "pk": "215081405", + "id": "215081405", + "is_ai_user": null, + "aigm_account_label_info": { + "is_enabled": false + }, + "instagram_pk": "215081405", + "interop_messaging_user_fbid": "068866421413642" + }, + "inventory_source": null, + "carousel_media_count": null, + "media_overlay_info": null, + "caption": null, + "accessibility_caption": null, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxxxxxx7xxxxxxx7xx77xxxxxxxxx7xxxxxxxxxxxxxxxxx7xxx7xxxxxxxxxxx7xxx7xxx7xxxxxxxxxxxxxx77x7xxxxx7xxx7xxx7xxxxxxx7xxx7xxx7xxxxxxxxxxx7xxx7xxx7xxx7xxxxxxxxxxx7x7xxxxxxxxx7xxxxxxx7x7xxxxx7xxxxxxxxx7xxxxx7xxxxxxxxxxxxxxxxxxxxxxxxxxx7xxxxxxxxxxx7xxx7xxxxxxxxxxx7xxxxxxxxxx\u00B7\u00B7", + "story_link_stickers": null, + "story_bloks_tappables": null, + "story_feed_media": null, + "story_cta": null, + "preview": null, + "is_paid_partnership": false, + "sponsor_tags": null, + "wearable_attribution_info": null, + "has_translation": false, + "boosted_status": null, + "can_see_insights_as_brand": false, + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "can_viewer_reshare": null, + "expiring_at": 1777806853, + "ig_media_sharing_disabled": false, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null + }, + "can_reply": true, + "__typename": "JGPZxtzzMglf" + }, + { + "pk": "0601917284455457329", + "id": "8127690542629881613_128243295", + "has_audio": true, + "story_music_stickers": [ + { + "music_asset_info": { + "should_mute_audio": false, + "should_mute_audio_reason": "", + "title": "Wfjtzvrtr - (Wlndjcdbmkqf)", + "display_artist": "Nckj" + }, + "id": "52274422668205583" + } + ], + "ai_label_info": null, + "carousel_media": null, + "code": "KX3z1LJDPld", + "image_versions2": { + "candidates": [ + { + "height": 1136, + "url": "https://cdn.esempio/949590l6k3r58819.jpg", + "width": 640 + }, + { + "height": 852, + "url": "https://cdn.esempio/5n8dn7982z66vd4h.jpg", + "width": 480 + }, + { + "height": 568, + "url": "https://cdn.esempio/8bc469mg0wdm0509.jpg", + "width": 320 + }, + { + "height": 426, + "url": "https://cdn.esempio/4r321vv23q0jdg63.jpg", + "width": 240 + }, + { + "height": 640, + "url": "https://cdn.esempio/b91632q1r941kgv0.jpg", + "width": 640 + }, + { + "height": 640, + "url": "https://cdn.esempio/b91632q1r941kgv0.jpg", + "width": 640 + }, + { + "height": 640, + "url": "https://cdn.esempio/b91632q1r941kgv0.jpg", + "width": 640 + }, + { + "height": 480, + "url": "https://cdn.esempio/947s8hh2mr6n9935.jpg", + "width": 480 + }, + { + "height": 320, + "url": "https://cdn.esempio/j1n9xl3v69dz2db0.jpg", + "width": 320 + }, + { + "height": 240, + "url": "https://cdn.esempio/225533177c53w571.jpg", + "width": 240 + }, + { + "height": 150, + "url": "https://cdn.esempio/7ms8122p6zm00jn9.jpg", + "width": 150 + } + ] + }, + "original_width": 720, + "original_height": 1280, + "taken_at": 1777727252, + "is_dash_eligible": 1, + "number_of_qualities": 2, + "video_dash_manifest": "\u00B7?rxr zwgxzfp\u00B7\u00228.6\u0022 thsmcgnw\u00B7\u0022RFS-3\u0022?\u00B7\n\u00B7JRQ jnwbt\u00B7\u0022plg:pxbq:fffn:cqzwwq:dss:7031\u0022 kktvb:lgd\u00B7\u0022pmdz://gwb.r1.bgn/8027/PTGJlhkvj-knqwsgtl\u0022 njj:qnstbqVlzhttzx\u00B7\u0022tvs:blnq:dpxq:jxvbzr:rjp:4636 HSLJ-MFR.qdw\u0022 vbcgxlqg\u00B7\u0022bfk:jrcp:wncn:fkjzxhp:jrxnd-gx-ghpwxt:6246\u0022 vlbJlszjpCrtg\u00B7\u0022HN6S\u0022 clrq\u00B7\u0022srtjcj\u0022 chfkpFshvjjvrwqxjDdplvhkm\u00B7\u0022ZK18.0104M\u0022 WJPxmnbshbVvnbkstlq\u00B7\u00226704634531\u0022 ZPSstcmvcgVxttrzdlsz\u00B7\u0022Wwcjs38LSJPnC22jRGVsZ0Qgn8MzdS8rCDbmtpnChz/NJTfm3NXFb7CMpXJhmQzBswMbXGbcLNXmX0vcG3szLCChX7DldqZxJSMmdV7mCFnRN7J1gSDtL7brD6r0QHvZGpXWXqXCSJ4NB0FkH4cQP9LLWtpKLTM\u00B7\u0022\u00B7\u00B7Fczjnh kq\u00B7\u00220\u0022 rfzrfgbm\u00B7\u0022QX20.9118G\u0022\u00B7\u00B7SdsgcttxxfNrf bk\u00B7\u00222\u0022 kszjngmVgnb\u00B7\u0022fqftb\u0022 mdkpsnfqwxNgrjprrln\u00B7\u0022fstp\u0022 bxq\u00B7\u00224:84\u0022 NNGkvcvktNkkdczKgvhgnbtrfGzl\u00B7\u0022756:65.9\u0022\u00B7\u00B7FnfmhrjpmrctFxqklqsq vvwlfrQqVwh\u00B7\u0022rgg:fklj:nlzvB:bcpx:PcjqwxbgNrkdbhrqnbpbjgp\u0022 lsrmm\u00B7\u00222\u0022/\u00B7\u00B7Ddvxmrglscgfvz jc\u00B7\u00227331408650828190s\u0022 gndhxszxm\u00B7\u0022000814\u0022 klkpqs\u00B7\u0022xxk8.07544d\u0022 jsjcRcsd\u00B7\u0022fvshd/mg8\u0022 kbk\u00B7\u00226:5\u0022 HQRnrcvprpNlp\u00B7\u0022hzkp_hfrckfwd_9_k7\u0022 BWBczzbvvLdtttt\u00B7\u0022291987\u0022 CWPsbgjdkgQclzgwqldnRsh\u00B7\u00223:901,727:41.8,791:70.6,144:40.3,8048:18.0\u0022 KSPtqzwjtmQhrgcnmvxpFqtXhpxmmldvfBdxgq\u00B7\u0022dngv\u0022 GSScxtppmtQlcnsmnwwrVswdm\u00B7\u00227:313,970:57.46,398:02.4,500:64,2509:31.6\u0022 lfvxn\u00B7\u0022287\u0022 sfskgr\u00B7\u00220845\u0022 xgttlDtrf\u00B7\u002223797/214\u0022 GBMlrlnjcHknlx\u00B7\u0022qc\u0022 RQNjbqqczXcqqg\u00B7\u0022071l\u0022\u00B7\u00B7GckgFTJ\u00B7rwwlx://jpbwzgrw-jbs8-8.rjvmnzfzmljj.mfh/r3/t/w0/n4/g61/BKDRnssLM0rmDcbxCB7z1KGDZMFBjKkqtpVfTspH-QM7TwS5dfVWZmRXnkhTjGGxZQrG7FDZJl4Zw-vfZGZPH5pRfl3T2JwSpF3DRt2.qx5?_wq_pfw\u00B7038\u0026sjz;_vk_hgq\u00B71wq823\u0026dfn;_hp_wr\u00B7rtdwsgzx-whv9-0.lsgtrsdmktnb.msm\u0026znx;_wg_nmc\u00B7mhgRCR5prr1Z7lZlfHGsLS6\u0026dpj;bcc\u00B7wpL7ZR1qr2BzT6JgRfQ0QtgtTKzcxhLpXqG4z6L1Knkzs8s1WNNgJpQfw9kzCsZbCPlsmmTvTZ59GLZxNvNrNGLpB3mlSdgndNtdCBQhzXfpvMKtT1HtQ2KwfP6rNQW1TCJ3VnL4VlPdShnsPZW0QZScmXqkkwFrpzVwQVL7QhtnSgjvkBW2K4Cmv3H9R2mhTxmlNFS9MKd4DpplTsPjRXWmFVmlWNKcVWPwFFnsX4RtnLGtBtJ4MvqzzcgstCBtT7TpCD0kPPC7KZV6SxTnRdD4kcD4gG1sD9FxFpTcBCXlnKDdSSKgJprpMXcdSCQsLbZdvTjvgb5lg1VfF8CtSlW9f7ddxK%6D%2P\u0026mrd;hvr\u00B782-3\u0026mwr;_br_wpc\u00B7vw0fws8h5GpbJpzdWHJtSP\u0026xls;_lt_jn\u00B74hhdp\u0026qfm;_vf_mg\u00B754\u0026qvg;qf\u00B708_QXFMcD2mcRhqMqVGZ0x-WcKnCLNvq1_2x57fPDkGZ6PQkz\u0026dhg;fx\u00B71ZDST3C3\u00B7/FfkcXNB\u00B7\u00B7XmmfgcbGtbx psnktRptcv\u00B7\u0022530-181\u0022 jllsggwcw\u00B7\u002221439\u0022 TXCplnjpcTdgddcdrVkdmd\u00B7\u0022388-884019\u0022 PSPmxntsjTvvlqvgzFbprxqcl\u00B7\u00223674\u0022 JFTgtccrzBgbmchktQwqnt\u00B7\u0022164-123657\u0022 VHLkjtzKztrzhdTntjp\u00B7\u0022243-420060\u0022 FMFdthxGzbqnxkWtgjwhrh\u00B7\u00229390\u0022 VQTdkbwvGnlccwhFhzkz\u00B7\u0022011432-117703\u0022 WJCpzptpbnVdfgmbdNlmfw\u00B7\u0022545-611307\u0022 JQMklgrlqbWvzdhtmXjbrnqwv\u00B7\u00225549\u0022\u00B7\u00B7Zkcqsvhdbtxmpd txhqk\u00B7\u00220-328\u0022/\u00B7\u00B7/HqssgmqBjpr\u00B7\u00B7/Wlnxsmpkqgxkjr\u00B7\u00B7Tjstqhkdqvmstz jr\u00B7\u00222012332223703485k\u0022 zkwznsxwp\u00B7\u002280302\u0022 crbxmb\u00B7\u0022xgm8.7h255l\u0022 njmmDhjq\u00B7\u0022stcth/bj9\u0022 kkx\u00B7\u00220:7\u0022 CNKlxktbmgBrz\u00B7\u0022dfff_fpxcknnk_4_q4\u0022 MJHgmngpgBjwgww\u00B7\u0022946598\u0022 TCMlvfmlwfJrzqknprglRcl\u00B7\u00227:504,150:75.7,134:49.4,069:32.6,6737:38.2\u0022 CFHmcqfkcvNpfnhprjckHpxZtfmrnfwfdCvzjs\u00B7\u0022gndp\u0022 GMCtmgcsngBpntllczkvSknbd\u00B7\u00223:091,433:57.4,024:76.0,012:60.2,0255:94.4\u0022 qqsdm\u00B7\u0022766\u0022 zxzpxg\u00B7\u0022575\u0022 msgwzNnnf\u00B7\u002277886/938\u0022 HCDthwtnwRjbxx\u00B7\u0022gn\u0022 MMNbjpvjnPqgsc\u00B7\u0022495x\u0022\u00B7\u00B7VfqxFPJ\u00B7scbsp://cfxvqwtg-qgh2-8.qmbgdbhpltft.vxz/g0/w/l2/k9/l07/NZSWpXQtr0CLsc9fXFjLSCfF5MBwGmLsMBFmRjjwfrZ6CBDmSRjv1QK_--DhTpKjltFF6-tCjxZWbqrnqRnTXlV3BPnDgq0hx_ChrnX.kr2?_pk_hcg\u00B7877\u0026tnl;_rw_cxk\u00B71fw728\u0026ghm;_hd_tb\u00B7xrdtlpvt-jbj2-7.fmksnzrdqsgb.dpt\u0026gwx;_lc_dqq\u00B7z_9JhqS0jFpW6lDdlDRHMJp\u0026zsr;slz\u00B7ktH6MJ0xw0BqK2MdZkJ9ZcckDKzlgpJjMtL1f1V0Swnvl7k4MVLqPbPsh5gsMpJnZTcvpvScK455TWWxTlCdVPCzC1pjFfqlrHtbCQGdfLvdsRClX9MkJ6SwpM1hDHP1CHF0VbL7DmGwTtcrGMD5RQVgbKrbwzCkrgPrVLQ7FftlLblgnDS7T0Gjl5W5P9rkFrkhVGW2XGp6MwwdQlFmWCZjLHkwSBGbCWSnHWhwR7LktJPmDnC6XpmbzmgzqNGwV0RcCX3xRTJ6CRC2BqTtKzG7kmZ7gX3gS2NlCdXtLCTppGClFGPzLpw3QtXbFNkbjPNpX2RbS1LnsHNqQCV0Plw9mmP8\u0026pzl;gkg\u00B735-5\u0026xfn;_wd_gmc\u00B7rx5sjq1f1HbzDfddDDZvGG\u0026dgc;_kd_wm\u00B78rkjw\u0026frl;_mh_cd\u00B783\u0026qnz;qw\u00B796_DWBNBRhFMtd-KGcK7MTDj6gH_ZW2Nm8b9FkBtNQC8z9McQ\u0026wmb;ld\u00B79QMHS287\u00B7/LjnhTJZ\u00B7\u00B7QxbmgltVmrb gzbsqSbhhb\u00B7\u0022742-558\u0022 brdbqhhmc\u00B7\u002245798\u0022 DNHrltnqkBvfckcwcPtxmc\u00B7\u0022451-00611\u0022 RQQnbqcjcDjnwhnfhCgksvkkt\u00B7\u00220703\u0022 MLRjmjnwzJnkwtfnxBhktl\u00B7\u0022804-26419\u0022 VLZjhltFhwjnklRmjht\u00B7\u0022553-97243\u0022 WZWvkgtGcnbrhtMpdsdhqd\u00B7\u00226241\u0022 FCQjvtjbHjjqvwfHnflp\u00B7\u002296520-419170\u0022 WBPqhqfrrgZxhlhbrBffmd\u00B7\u0022201-52479\u0022 XSFnrktjbkRkmcmgsXnnppcps\u00B7\u00225593\u0022\u00B7\u00B7Ppkjwcvpppmhnw dcmnb\u00B7\u00227-395\u0022/\u00B7\u00B7/GqlgppdZmnf\u00B7\u00B7/Scqlsmfqxbkqhm\u00B7\u00B7/XbmwsdkmrgHhh\u00B7\u00B7CnfxkthmxcNdv xm\u00B7\u00227\u0022 jppsqfsWlxl\u00B7\u0022wdpzk\u0022 dmsmghtgqnTmccbvTpntJDV\u00B7\u00223\u0022 zmxrkkqcgsRfqpfdchs\u00B7\u0022bqwc\u0022\u00B7\u00B7Wmflrqvqjgrrxb gs\u00B7\u00226053633880005085s\u0022 ppcbhmwlm\u00B7\u002235822\u0022 rxwnrw\u00B7\u0022xn4b.16.4\u0022 mlbsPhrm\u00B7\u0022bjphx/wg8\u0022 DQCtzGgfmjsf\u00B7\u002207995\u0022 xsdgzLqbwgqwfNtdq\u00B7\u002231542\u0022 FDZltzmcmcTvt\u00B7\u0022mggh_kb_pndtj_ztl8_bmbsr\u0022 BBHthcgzcFsfrgk\u00B7\u0022431373\u0022\u00B7\u00B7CrgdbCmwdhmjLvfllbnzfjhfd vdsrvdPmWvv\u00B7\u0022qlc:jncw:lppp:54977:1:psbtq_rqvzkss_qvjnkrtjxzqnp:1460\u0022 tvhxr\u00B7\u00221\u0022/\u00B7\u00B7DtnlMNP\u00B7vmknn://gmgffprv-rhw3-1.kgwkmcmccmps.hfr/r5/d/j6/b7/j61/GZRmz689zKKpnWrdv6KWH9r1cvgsVvJpwrmxWqGJHsnVN0mwTDWPkvrlKpM_rTWCbHhCxjw-S8CLV_fnztpGktNXwxNM1BVNcnQNmpD.db5?_wf_khp\u00B7069\u0026fjd;_qv_vhb\u00B75fr418\u0026qzb;_qc_qp\u00B7kbwpfskd-hrh0-9.bfmhbgrmqpqm.mfw\u0026hrt;_tz_hqr\u00B79GrSSHsmS-BG5tSpkNRMQbF\u0026mcd;qhr\u00B7mmC4JD1lt7ZvZ1SkDbB8MwgfZCnprhGrVrL8z9Z3Dhvnv6r9PGWjHnCpf8xbwC2vnJDvCHPbcmFrZ67djSNbscLgRjDjGTJlS0rzZpdfjJtjJHNmhVlhgLSxK8LlL6MtpD2sWXQ2MDW1DqZ0JmCbBsqjHDL8KDPknNgmhgLmrnDfQTF0SbqxNxpfwDD3S5Zdp5V8X5mvClqzBBT0CDt4XkfpVdZgDRQxJJqcTBRvJWCpSRctL7ZkbZBnBkW0HnrfpxkfjHHrG9JgCQ6jSPX8DBD9MmWbDkZ4srD3mW1sH3KqZvCfRLVqrTShFJHlLsx2KZJ6NnvjwPPkP3RfR4JcmBHcLJL9Cdf4chS7\u0026qxn;vqb\u00B751-7\u0026djv;_jg_hkr\u00B7kc7vfl3z0RnqDrfwNXVkBM\u0026jrx;_pf_fh\u00B74cnnw\u0026gmr;_jr_qb\u00B712\u0026rlf;qx\u00B746_LQFbxDDqtSZLZcF3MNHMdqg6hzHCdk_tpPR8PXwbGk11Dr\u0026cdl;hg\u00B75MZFB930\u00B7/CjjjXKG\u00B7\u00B7VxgvcrfZssg dpbszBtcxf\u00B7\u0022223-994\u0022 mbxspljvm\u00B7\u002272741\u0022 PDTgpfkprFqcnbfqvHpgmt\u00B7\u0022740-4368\u0022 RGQxdbqldKqkxqrbjFzmdzkkd\u00B7\u00224820\u0022 ZZRzknprhMfzwbxstKtffn\u00B7\u0022228-40041\u0022 SWXsmsmDgfhrfwFppmm\u00B7\u0022501-37658\u0022 MBXsqmsNpdjqmhDdvdzkzg\u00B7\u00222504\u0022 LCNlhzhsRgzmdzhVzhqm\u00B7\u002200185-83787\u0022 RPTrbpsbcbHlxhzbbLzxbr\u00B7\u0022566-45388\u0022 PKBvnzlcgdQkjndfsXzbxdjpb\u00B7\u00221886\u0022\u00B7\u00B7Dltwwzjdfxfrft hfkbm\u00B7\u00226-893\u0022/\u00B7\u00B7/FhzgzngKmzk\u00B7\u00B7/Hngzrmjjcgchkr\u00B7\u00B7/FprtjgmqdbQpb\u00B7\u00B7/Fcznwd\u00B7\u00B7/HFL\u00B7\n", + "video_versions": [ + { + "type": 101, + "url": "https://cdn.esempio/61k74sr9280q0821.mp4" + }, + { + "type": 102, + "url": "https://cdn.esempio/61k74sr9280q0821.mp4" + }, + { + "type": 103, + "url": "https://cdn.esempio/61k74sr9280q0821.mp4" + } + ], + "media_type": 2, + "visual_comment_reply_sticker_info": null, + "story_bloks_stickers": [ + { + "x": -1.76136962623624, + "y": 3.95440895572954, + "width": 0.24958129631056, + "height": 0.037667012772483, + "rotation": 0, + "bloks_sticker": { + "sticker_data": { + "ig_mention": { + "full_name": "Jtfgfd Bkkmw", + "username": "dvtgnfcmcjq" + } + }, + "id": "dxtrs_nzwbbld_pf" + }, + "id": "31375545956391092" + }, + { + "x": -1.76136962623624, + "y": 3.18146716957664, + "width": 0.30462524519275, + "height": 0.037667012772483, + "rotation": 0, + "bloks_sticker": { + "sticker_data": { + "ig_mention": { + "full_name": "Lqlvzps Hrtmmmpd", + "username": "tzfzxnttjqbrpzd" + } + }, + "id": "dxtrs_nzwbbld_pf" + }, + "id": "20865787376557470" + } + ], + "story_hashtags": null, + "story_locations": [ + { + "x": 0.5, + "y": 4.06850120129223, + "width": 0.17510736017043, + "height": 0.022560145486029, + "rotation": 0, + "location": { + "pk": 6991294 + }, + "id": "29674703633583339" + } + ], + "text_post_share_to_ig_story_stickers": null, + "story_countdowns": null, + "story_questions": null, + "story_sliders": null, + "link": null, + "reel_media_background": null, + "video_duration": 20.015, + "custom_list_info": null, + "is_story_edited": false, + "product_type": "story", + "reshared_story_media_author": null, + "story_app_attribution": null, + "audience": null, + "has_liked": false, + "viewer_count": null, + "viewers": [], + "can_reshare": true, + "user": { + "pk": "215081405", + "id": "215081405", + "is_ai_user": null, + "aigm_account_label_info": { + "is_enabled": false + }, + "instagram_pk": "215081405", + "interop_messaging_user_fbid": "068866421413642" + }, + "inventory_source": null, + "carousel_media_count": null, + "media_overlay_info": null, + "caption": null, + "accessibility_caption": null, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxxxxxx7xxxxxxx7xx77xxxxxxxxx7xxxxxxxxxxxxxxxxx7xxx7xxx7xxxxxxxxxxx7xxx7xxxxxxxxxxxxxx77x7xxxxx7xxx7xxx7xxxxxxx7xxx7xxx7xxx7xxxxxxxxxxx7xxx7x7x7xxxxxxxxxxx7x7x7xxxxxxxxxxxxxxxxxxx7x7xxxxxxxxxxxxxxxxxxx7x7xxxxxxx7xxxxxxxxxxxxxxx7x7xxxxxxxxx7xxx7xxxxxxxxxxx7xxxxxxxxxx\u00B7\u00B7", + "story_link_stickers": null, + "story_bloks_tappables": null, + "story_feed_media": null, + "story_cta": null, + "preview": null, + "is_paid_partnership": false, + "sponsor_tags": null, + "wearable_attribution_info": null, + "has_translation": false, + "boosted_status": null, + "can_see_insights_as_brand": false, + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "can_viewer_reshare": null, + "expiring_at": 1777813629, + "ig_media_sharing_disabled": false, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null + }, + "can_reply": true, + "__typename": "JGPZxtzzMglf" + }, + { + "pk": "8405212273335229088", + "id": "2306474124561026486_606625025", + "has_audio": false, + "story_music_stickers": null, + "ai_label_info": null, + "carousel_media": null, + "code": "KC2mvTpGbrr", + "image_versions2": { + "candidates": [ + { + "height": 1136, + "url": "https://cdn.esempio/6p474651zg568788.jpg", + "width": 640 + }, + { + "height": 852, + "url": "https://cdn.esempio/227315t360w87625.jpg", + "width": 480 + }, + { + "height": 568, + "url": "https://cdn.esempio/4qd4029v98q66h1w.jpg", + "width": 320 + }, + { + "height": 426, + "url": "https://cdn.esempio/f592831bddp4c45b.jpg", + "width": 240 + }, + { + "height": 640, + "url": "https://cdn.esempio/8sc0zw44gh71frjw.jpg", + "width": 640 + }, + { + "height": 640, + "url": "https://cdn.esempio/8sc0zw44gh71frjw.jpg", + "width": 640 + }, + { + "height": 640, + "url": "https://cdn.esempio/8sc0zw44gh71frjw.jpg", + "width": 640 + }, + { + "height": 480, + "url": "https://cdn.esempio/v02r0w479j831055.jpg", + "width": 480 + }, + { + "height": 320, + "url": "https://cdn.esempio/90v0991g37d32z80.jpg", + "width": 320 + }, + { + "height": 240, + "url": "https://cdn.esempio/57b644w3n0m65prw.jpg", + "width": 240 + }, + { + "height": 150, + "url": "https://cdn.esempio/7735m518684580bx.jpg", + "width": 150 + } + ] + }, + "original_width": 720, + "original_height": 1280, + "taken_at": 1777832933, + "is_dash_eligible": 1, + "number_of_qualities": 2, + "video_dash_manifest": "\u00B7?vjk ksmfjbz\u00B7\u00220.9\u0022 hbfmvmng\u00B7\u0022JTR-8\u0022?\u00B7\n\u00B7JXB ngntg\u00B7\u0022tzp:tbrf:pdpp:twnnkj:vft:2836\u0022 fdgbj:gqd\u00B7\u0022dqvj://rzn.g1.sgw/3905/DLLDtjgpr-gbbqghxw\u0022 vvp:qvfktnZnnwxvhl\u00B7\u0022trt:wqcd:fqhn:vkjnxg:dsm:0715 PGNK-HBD.fml\u0022 mdpqnwfr\u00B7\u0022nzs:bvzr:fsbd:zvhcmjg:nsddc-vc-xshqgw:2848\u0022 mpzRrlzjzFrjs\u00B7\u0022TJ8Z\u0022 gpjk\u00B7\u0022ltlhnq\u0022 vkxfzRkxgrjllbzzfVqjnwmbx\u00B7\u0022WF8N\u0022 XWGbffrhqqDndmqgxtp\u00B7\u00222124319121\u0022 HRQlwhrsjkBvcjdbxrfc\u00B7\u0022Bmzmb69DNSFbC85dFBNdC3Ctt1QgrL9mHFbwcq\u00B72jzz4DzbktS\u00B7Wg5WHPvhxSNKtmThsvWNhk4Q5P3Zqht9tCWrmKhKkn09zsRL5QnjDZFwfrQLmVP3jjTqbcHFG2DWLLMZDVVxLRg1QZ9ZLMCSCHXQVQVNZ\u0022\u00B7\u00B7Jfbgkq hx\u00B7\u00226\u0022 jqtscwzt\u00B7\u0022FK7L\u0022\u00B7\u00B7VwsmbfcxzdLwl hn\u00B7\u00224\u0022 zpprhhmQkvg\u00B7\u0022kbhbh\u0022 nnbhgkncnnKrxvjmsdl\u00B7\u0022tpfg\u0022 hbl\u00B7\u00223:52\u0022 BKLhrhdbfLflhgcHrfnkmqbthQbh\u00B7\u0022502:22.4\u0022\u00B7\u00B7NsfczsvxzlfkJbkvfzlq hxhghzSjQpf\u00B7\u0022rfp:ztnx:xvdzG:nrtl:WlhjhttkPbszgrghzhbfxbr\u0022 sbwsn\u00B7\u00223\u0022/\u00B7\u00B7Nsfgjmwgmvnbpb lc\u00B7\u00229004264477794512l\u0022 mrmftsczt\u00B7\u0022797985\u0022 shqxgr\u00B7\u0022kmg5.13191j\u0022 phhhSshj\u00B7\u0022mjbxm/tb3\u0022 xqs\u00B7\u00228:2\u0022 GKNmtkbshtBph\u00B7\u0022ggdn_dzghlprh_0_z4\u0022 MSSvjskskCgrwrh\u00B7\u002247495\u0022 VWZnhqmtdwPgcfqjbldcCcb\u00B7\u00224:327,242:60.8,213:79.4,066:09.2,8698:06.4\u0022 DPCmddhmwsSwrpmtrcfrCkvFkzzjxbjxjWtqcj\u00B7\u0022flvq\u0022 DRGstxcmqcJlncmqjvhzLbkrx\u00B7\u00226:124,329:50.4,747:32.5,424:62,3403:35.5\u0022 vqbxt\u00B7\u0022169\u0022 kjvspx\u00B7\u00221409\u0022 nvczcVbhw\u00B7\u002281990/282\u0022 HDLkjdsjbThncc\u00B7\u0022zb\u0022 DQXvggdxqTcddw\u00B7\u0022192j\u0022\u00B7\u00B7SmrkVGK\u00B7qhpnq://snzfgbxc-nmt8-4.hlkkqvwtwmfz.pwx/b5/k/h1/j5/d98/PGQV6ZGgX7qc6zSFxCjnLMc_MnZlvMpmFSrbfMVz_lMHkdzRJbkzStMwHBz5Hrfv2n_H0TDbsddgdFRXbFVk0MPZQvpXsZtMCJmqxLW.mm6?_tc_qkv\u00B7325\u0026gkn;_bd_gxt\u00B78kt509\u0026ksc;_cb_nw\u00B7qcdcwtvh-mtp1-7.nlrxjdmfkvff.zhr\u0026djk;_cj_bsb\u00B7hl4dRdcbSrwM1nMghP6hgnm\u0026rxq;tpq\u00B7qrB9XB9ll5GnC7GsPpB8StcgPBcnlqWsMrX7v4L2Bzbrw1v0DQXqXwXzn6nwLnSqKJplqlHdMC48LHRsSzZqPXXjF6vlKtxcbLntMHZgtXzxsMHxD7XqW6XnhS5wNXG1SVV4HhV3WvFjRpfgWVL8XGRjjVzblnTtjxRfZFM1DrplLvwhpFT7S2Jpt1G0G0dwSjskTCT4FHNvZHJ7SnQxHVLhCRfrHZXxWXXzRBwlZ2NwvBJdSrZ7JKtvwbmbdFSfS8GlNL1xWPJ4BPS2DxZcXqT3rqR4dM2nQ2PmCwNjVhTwsXMthWSjGpP0MPM6PjqcnZXcD4RvB9QxsCJzMRB0Xds2xkR9\u0026tgg;smv\u00B794-5\u0026ttx;_jt_wrt\u00B7tb6vbd3x8DjcChnxCSFcDL\u0026gdk;_qg_wd\u00B79vkgp\u0026zqb;_bh_dt\u00B738\u0026bdm;dz\u00B705_SRWw1BWTpncmS7H6b80_KK92GJR_ssWBd1Sh89ZMMfKcXl\u0026zrp;rn\u00B78GPHWGD7\u00B7/VmwlXRW\u00B7\u00B7HqzsdqgGsjn dtxqkPthwk\u00B7\u0022155-866\u0022 fzjmlqktf\u00B7\u002220138\u0022 MQZnvsfprGdxfhgpgLrfxl\u00B7\u0022217-59518\u0022 JGBswkdqtPlscbngsRgxlnkbl\u00B7\u00220515\u0022 JHXmdgnndQwvdcnhcLdlgn\u00B7\u0022542-93150\u0022 HMLxcvnHvwrfxjFwkmb\u00B7\u0022602-69466\u0022 RDShxjbNwgqxkbPxqgnngn\u00B7\u00226903\u0022 VKRvlmkjxsVjsqjpgBkbvr\u00B7\u0022547-95419\u0022 BHBcxbnftkFbwlbxdNwdkcxzx\u00B7\u00225637\u0022\u00B7\u00B7Zdpklprnpbvtlj lbtjj\u00B7\u00224-628\u0022/\u00B7\u00B7/NgtzbbzLrcg\u00B7\u00B7/Dtlnhdrllhmbwm\u00B7\u00B7Pcfndnphjwfbtf gl\u00B7\u0022494905350254729r\u0022 bsgtlmgwk\u00B7\u002202604\u0022 bhjpjq\u00B7\u0022xsx0.4x005q\u0022 cjnhMmcf\u00B7\u0022rgjkl/fd6\u0022 mzt\u00B7\u00225:3\u0022 ZGLwrfpdtvPmf\u00B7\u0022cbrr_nxbzrnpw_7_p2\u0022 LMFjzqgpdScwwkk\u00B7\u002220671\u0022 CFKcwxxvjrDnvhvgdktcBgj\u00B7\u00221:311,189:32.2,465:74,330:62,6992:11.4\u0022 CZLvxqzqjgBmcbdjmtspMmbKnmpqcwdvgSbqcn\u00B7\u0022xqfc\u0022 XWLxqkdqkwBfmbjnjtbgPkhnw\u00B7\u00229:576,623:59.3,399:60.8,697:05.0,1755:11.0\u0022 tvrvp\u00B7\u0022713\u0022 dmgjmx\u00B7\u0022268\u0022 ghhpmNnsb\u00B7\u002227000/489\u0022 FQRpcgsjnLnvgj\u00B7\u0022wv\u0022 PGKmxzdgdSlhqb\u00B7\u0022091c\u0022\u00B7\u00B7GvwnFZN\u00B7thpvz://sgrwpbfq-rvs2-8.jxqmptzqrkzz.rkd/t8/l/q0/d6/w45/ZWHjlTjSGZVp8dg5-B5Pz-z0jlT3S5xvf1KbZN8C771p2f3gCmLf7WqlBTJxwBj0GRhS_bcJ81T73KnZBDDRX6zjvxBm50M_pv3WslH.vh6?_tn_vqk\u00B7594\u0026rlr;_fl_lwb\u00B72ff782\u0026gdr;_gw_zm\u00B7fqtcdvdl-hll2-3.lcgttqrhzqmw.zdn\u0026zbf;_gr_xbt\u00B708csLnPCSB0G2xFlnJRDmlR\u0026nsj;qdt\u00B7cxF3VZ2tm0MgX4PgBpW3XcgsDBprjnXfKmX4h1D7Qqhmz3q2FMZrSkMwj4pzJqLkSGhvtsBzQ019FPNsQpQcXWPzJ3mrHmgbqKxtVCRkbXchhJPhF9WbD5FddB8pSKL6FHC0ZnJ2LmVtBsmrMXD1KLTxmSfkjgRkqxKwQVZ0FxrpWwcrcWR0L7Mrm0P6M0mfJfrbZHR5JFZxHRF7GdJxDFNrMFdpTQTpGTFdVZhhZ3VvfMZzRzD6MQwzcftxqSJpW9GcVM9lMFD6VGG4BrTpZdJ7fbK4qJ0cW5VsKmKfRgCxzLWvxXXbTfBzWFd8SCG8ptkdZG2hd115gzWgJpjmc1x7Zs6%1L\u0026kvv;xsl\u00B762-4\u0026jqd;_zc_vsx\u00B7sm0tmf9c6NjkKhsjDPQvMN\u0026fxq;_ll_fj\u00B71zssc\u0026zdk;_zp_mt\u00B702\u0026xlp;xq\u00B793_NPCKn93HnwKwFHs-bP9-nj2FT6DpmP5qsR4l6shKTsC1-k\u0026ddg;rr\u00B79KKZX447\u00B7/NmxmGNK\u00B7\u00B7KgzmjghZszc njlwzKgpgm\u00B7\u0022899-429\u0022 gtkpdtqtv\u00B7\u002214620\u0022 VGGtbllccXlgfwfjgQzktl\u00B7\u0022723-72030\u0022 DRXrqstmlTxhcvrpnRtflfcdn\u00B7\u00225712\u0022 DMKgdjcxkWfrcjsnqSgblq\u00B7\u0022348-70455\u0022 WXHjmpmMrztvwlWgdjn\u00B7\u0022007-35693\u0022 FMZrxsbFrqmfrtTnjsnqsk\u00B7\u00220977\u0022 FZRfqcjljgFqsvfdjHfgkc\u00B7\u0022517-33562\u0022 RZPtxphzpqQhlrbjfXdhlrxtq\u00B7\u00225835\u0022\u00B7\u00B7Dkwjpscscnknkn nfxpm\u00B7\u00227-107\u0022/\u00B7\u00B7/JfzkmxjXnck\u00B7\u00B7/Hqxckwrdnsxsgj\u00B7\u00B7/RbwmmnhfblDbb\u00B7\u00B7/Cnzfkf\u00B7\u00B7/BGV\u00B7\n", + "video_versions": [ + { + "type": 101, + "url": "https://cdn.esempio/635201z45xl033r0.mp4" + }, + { + "type": 102, + "url": "https://cdn.esempio/635201z45xl033r0.mp4" + }, + { + "type": 103, + "url": "https://cdn.esempio/635201z45xl033r0.mp4" + } + ], + "media_type": 2, + "visual_comment_reply_sticker_info": null, + "story_bloks_stickers": null, + "story_hashtags": null, + "story_locations": [ + { + "x": 5.04678967910250, + "y": 1.54279644099340, + "width": 0.093537180373352, + "height": 0.020037445142206, + "rotation": 4.32425787225068, + "location": { + "pk": 787351870638725 + }, + "id": "26002926124072140" + } + ], + "text_post_share_to_ig_story_stickers": null, + "story_countdowns": null, + "story_questions": null, + "story_sliders": null, + "link": null, + "reel_media_background": null, + "video_duration": 5, + "custom_list_info": null, + "is_story_edited": false, + "product_type": "story", + "reshared_story_media_author": null, + "story_app_attribution": null, + "audience": null, + "has_liked": false, + "viewer_count": null, + "viewers": [], + "can_reshare": true, + "user": { + "pk": "215081405", + "id": "215081405", + "is_ai_user": null, + "aigm_account_label_info": { + "is_enabled": false + }, + "instagram_pk": "215081405", + "interop_messaging_user_fbid": "068866421413642" + }, + "inventory_source": null, + "carousel_media_count": null, + "media_overlay_info": null, + "caption": null, + "accessibility_caption": null, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxxxxxx7xxxxxxx7xx77xxxxxxxxx7xxxxxxxxxxxxxxxxx7xxx7xxx7xxxxxxx7xxx7xxxxxxxxxxxxxxxxxx77x7xxxxx7xxx7xxx7xxxxxxx7xxx7xxx7xxx7xxxxxxx7xxx7xxxxxxx7xxxxxxxxxxx7xxxxxxx7xxxxxxxxxxxxxxxxxxxxxxxxxxx7xxxxxxx7x7xxxxxxxxxxxxx7xxxxxxxxxxxxx7x7xxxxxxxxxxx7xxxxxxxxxxx7xxxxxxxxxx\u00B7\u00B7", + "story_link_stickers": null, + "story_bloks_tappables": null, + "story_feed_media": null, + "story_cta": null, + "preview": null, + "is_paid_partnership": false, + "sponsor_tags": null, + "wearable_attribution_info": null, + "has_translation": false, + "boosted_status": null, + "can_see_insights_as_brand": false, + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "can_viewer_reshare": null, + "expiring_at": 1777919324, + "ig_media_sharing_disabled": false, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null + }, + "can_reply": true, + "__typename": "JGPZxtzzMglf" + } + ], + "unviewable_authors_infos": [], + "user": { + "__typename": "KGTWcdxBfxp", + "pk": "215081405", + "id": "215081405", + "interop_messaging_user_fbid": "068866421413642", + "username": "dwvqbrgcjf", + "profile_pic_url": "https://cdn.esempio/m28590xc92pz7q29.jpg", + "is_private": false, + "user_id": "215081405", + "is_verified": false, + "aigm_account_label_info": { + "attribution_label_text": null, + "is_auto_detected": false, + "is_enabled": false, + "is_manually_enabled": false + }, + "transparency_label": null, + "transparency_product": null, + "transparency_product_enabled": false + }, + "seen": null, + "reel_type": "highlight_reel", + "cover_media": { + "cropped_image_version": { + "url": "https://cdn.esempio/lrl10vs7f9188h3p.jpg" + }, + "full_image_version": null + }, + "title": "Crqhlw \u00B7\u00B7\u00B7\u00B7", + "can_reshare": true, + "latest_reel_media": 1778014626, + "muted": null, + "__typename": "DWVDlmdMnfr" + }, + "cursor": null + }, + { + "node": { + "id": "zfhkgmmll:25561253714622533", + "items": [ + { + "pk": "0510491485300721436", + "id": "2381768195564421932_522836696", + "has_audio": null, + "story_music_stickers": null, + "ai_label_info": null, + "carousel_media": null, + "code": "Qg8sZD1sMlx", + "image_versions2": { + "candidates": [ + { + "height": 2060, + "url": "https://cdn.esempio/327xkfhq2g07rt97.jpg", + "width": 1080 + }, + { + "height": 1373, + "url": "https://cdn.esempio/ktc20pn1294742x4.jpg", + "width": 720 + }, + { + "height": 1221, + "url": "https://cdn.esempio/656lj8c48v7434j5.jpg", + "width": 640 + }, + { + "height": 916, + "url": "https://cdn.esempio/c0v94782028kl029.jpg", + "width": 480 + }, + { + "height": 610, + "url": "https://cdn.esempio/3c35dz2541s84828.jpg", + "width": 320 + }, + { + "height": 458, + "url": "https://cdn.esempio/lv0519292n539m73.jpg", + "width": 240 + }, + { + "height": 1080, + "url": "https://cdn.esempio/h953cn987ntk8j8x.jpg", + "width": 1080 + }, + { + "height": 750, + "url": "https://cdn.esempio/033b3g8735c2488r.jpg", + "width": 750 + }, + { + "height": 640, + "url": "https://cdn.esempio/0l21449z24j41m6d.jpg", + "width": 640 + }, + { + "height": 480, + "url": "https://cdn.esempio/27b0x7fn4rpzvr1f.jpg", + "width": 480 + }, + { + "height": 320, + "url": "https://cdn.esempio/78kn6n48bz792318.jpg", + "width": 320 + }, + { + "height": 240, + "url": "https://cdn.esempio/2h6wl86r7248k290.jpg", + "width": 240 + }, + { + "height": 150, + "url": "https://cdn.esempio/01fxpq95w8z799vl.jpg", + "width": 150 + } + ] + }, + "original_width": 1080, + "original_height": 2060, + "taken_at": 1558779740, + "is_dash_eligible": null, + "number_of_qualities": null, + "video_dash_manifest": null, + "video_versions": null, + "media_type": 1, + "visual_comment_reply_sticker_info": null, + "story_bloks_stickers": null, + "story_hashtags": null, + "story_locations": null, + "text_post_share_to_ig_story_stickers": null, + "story_countdowns": null, + "story_questions": null, + "story_sliders": null, + "link": null, + "reel_media_background": null, + "video_duration": null, + "custom_list_info": null, + "is_story_edited": false, + "product_type": "story", + "reshared_story_media_author": null, + "story_app_attribution": null, + "audience": null, + "has_liked": false, + "viewer_count": null, + "viewers": [], + "can_reshare": true, + "user": { + "pk": "215081405", + "id": "215081405", + "is_ai_user": null, + "aigm_account_label_info": { + "is_enabled": false + }, + "instagram_pk": "215081405", + "interop_messaging_user_fbid": "068866421413642" + }, + "inventory_source": null, + "carousel_media_count": null, + "media_overlay_info": null, + "caption": null, + "accessibility_caption": null, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxxxxxx7xxxxxxx7xx77xxxxxxxxx7xxxxxxxxxxxxxxxxx7xxx7xxxxxxx7xxxxxxx7xxx7xxxxxxxxxxxxxx77x7xxxxx7xxx7xxx7xxxxxxx7xxx7xxx7xxxxxxx7xxxxxxx7xxx7xxx7xxxxxxxxxxx7xxxxxxxxxxx7xxx7xxx7xxxxxxx7x7xxxxx7xxxxxxx7xxxxxxx7xxx7xxx7xxx7xxx7xxx7xxxxxxx7xxx7xxx7xxxxxxxxxxx7xxxxxxxxxx\u00B7\u00B7", + "story_link_stickers": null, + "story_bloks_tappables": null, + "story_feed_media": null, + "story_cta": null, + "preview": null, + "is_paid_partnership": false, + "sponsor_tags": null, + "wearable_attribution_info": null, + "has_translation": false, + "boosted_status": null, + "can_see_insights_as_brand": false, + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "can_viewer_reshare": null, + "expiring_at": 1558866140, + "ig_media_sharing_disabled": false, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null + }, + "can_reply": true, + "__typename": "JGPZxtzzMglf" + }, + { + "pk": "4927132471035124995", + "id": "3871193972380171907_883842093", + "has_audio": null, + "story_music_stickers": null, + "ai_label_info": null, + "carousel_media": null, + "code": "G9PJ1fXTlJG", + "image_versions2": { + "candidates": [ + { + "height": 2060, + "url": "https://cdn.esempio/66n3sv1332w4b349.jpg", + "width": 1080 + }, + { + "height": 1373, + "url": "https://cdn.esempio/7459sdc5f1g80bgx.jpg", + "width": 720 + }, + { + "height": 1221, + "url": "https://cdn.esempio/828k82449416c6j8.jpg", + "width": 640 + }, + { + "height": 916, + "url": "https://cdn.esempio/1695t74544z84940.jpg", + "width": 480 + }, + { + "height": 610, + "url": "https://cdn.esempio/8nnv3f29d53f5x2b.jpg", + "width": 320 + }, + { + "height": 458, + "url": "https://cdn.esempio/5s0148279bq218n2.jpg", + "width": 240 + }, + { + "height": 1080, + "url": "https://cdn.esempio/1q4001839p4f869n.jpg", + "width": 1080 + }, + { + "height": 750, + "url": "https://cdn.esempio/zr3c50v7w693423m.jpg", + "width": 750 + }, + { + "height": 640, + "url": "https://cdn.esempio/52nnw4j1476244ch.jpg", + "width": 640 + }, + { + "height": 480, + "url": "https://cdn.esempio/z9b5w0w0c3p876rm.jpg", + "width": 480 + }, + { + "height": 320, + "url": "https://cdn.esempio/nx196z5pn54m152z.jpg", + "width": 320 + }, + { + "height": 240, + "url": "https://cdn.esempio/88887654536009t8.jpg", + "width": 240 + }, + { + "height": 150, + "url": "https://cdn.esempio/w45twdx39c32xk33.jpg", + "width": 150 + } + ] + }, + "original_width": 1080, + "original_height": 2060, + "taken_at": 1570039952, + "is_dash_eligible": null, + "number_of_qualities": null, + "video_dash_manifest": null, + "video_versions": null, + "media_type": 1, + "visual_comment_reply_sticker_info": null, + "story_bloks_stickers": [ + { + "x": 3.82353363, + "y": 1.34212714, + "width": 0.5, + "height": 0.5, + "rotation": 0, + "bloks_sticker": { + "sticker_data": { + "ig_mention": { + "full_name": "Cgr Hscwzz LVD", + "username": "crxbmhsccqql" + } + }, + "id": "dxtrs_nzwbbld_pf" + }, + "id": "69892110543221941" + } + ], + "story_hashtags": null, + "story_locations": null, + "text_post_share_to_ig_story_stickers": null, + "story_countdowns": null, + "story_questions": null, + "story_sliders": null, + "link": null, + "reel_media_background": null, + "video_duration": null, + "custom_list_info": null, + "is_story_edited": false, + "product_type": "story", + "reshared_story_media_author": null, + "story_app_attribution": null, + "audience": null, + "has_liked": false, + "viewer_count": null, + "viewers": [], + "can_reshare": true, + "user": { + "pk": "215081405", + "id": "215081405", + "is_ai_user": null, + "aigm_account_label_info": { + "is_enabled": false + }, + "instagram_pk": "215081405", + "interop_messaging_user_fbid": "068866421413642" + }, + "inventory_source": null, + "carousel_media_count": null, + "media_overlay_info": null, + "caption": null, + "accessibility_caption": null, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxxxxxx7xxxxxxx7xx77xxxxxxxxx7xxxxxxxxxxxxxxxxx7xxx7xxx7xxxxxxxxxxx7xxxxxxxxxxxxxxxxxx77x7xxxxx7xxx7xxx7xxxxxxx7xxx7xxx7xxx7xxxxxxxxxxx7xxxxxxx7xxxxxxxxxxx7xxxxxxxxxxx7xxxxx7xxxxxxxxx7xxx7xxx7xxx7xxxxxxx7xxx7xxx7xxx7xxxxxxxxxxxxxxxxxxxxx7x7xxx7xxxxxxxxxxx7xxxxxxxxxx\u00B7\u00B7", + "story_link_stickers": null, + "story_bloks_tappables": null, + "story_feed_media": null, + "story_cta": null, + "preview": null, + "is_paid_partnership": false, + "sponsor_tags": null, + "wearable_attribution_info": null, + "has_translation": false, + "boosted_status": null, + "can_see_insights_as_brand": false, + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "can_viewer_reshare": null, + "expiring_at": 1570126352, + "ig_media_sharing_disabled": false, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null + }, + "can_reply": true, + "__typename": "JGPZxtzzMglf" + }, + { + "pk": "5195408211216723434", + "id": "4413020558467899293_849126487", + "has_audio": true, + "story_music_stickers": [ + { + "music_asset_info": { + "should_mute_audio": false, + "should_mute_audio_reason": "", + "title": "Bbd S. Rrnxwdfh", + "display_artist": "Djhx Vhgnxc" + }, + "id": "46955332062428039" + } + ], + "ai_label_info": null, + "carousel_media": null, + "code": "MFK8BfHgRJs", + "image_versions2": { + "candidates": [ + { + "height": 1374, + "url": "https://cdn.esempio/jd3844p2182p65g1.jpg", + "width": 720 + }, + { + "height": 1221, + "url": "https://cdn.esempio/69662v3079pw8s77.jpg", + "width": 640 + }, + { + "height": 916, + "url": "https://cdn.esempio/74335hq1n853c092.jpg", + "width": 480 + }, + { + "height": 611, + "url": "https://cdn.esempio/138ks32vl807133t.jpg", + "width": 320 + }, + { + "height": 458, + "url": "https://cdn.esempio/q89k2lm0t7xg1k1w.jpg", + "width": 240 + }, + { + "height": 720, + "url": "https://cdn.esempio/1lv141247n17b1xf.jpg", + "width": 720 + }, + { + "height": 720, + "url": "https://cdn.esempio/1lv141247n17b1xf.jpg", + "width": 720 + }, + { + "height": 640, + "url": "https://cdn.esempio/295dd5h0p257rv7j.jpg", + "width": 640 + }, + { + "height": 480, + "url": "https://cdn.esempio/0ts2n203f9fk1584.jpg", + "width": 480 + }, + { + "height": 320, + "url": "https://cdn.esempio/vlr002dp32180cq9.jpg", + "width": 320 + }, + { + "height": 240, + "url": "https://cdn.esempio/dz43866524919688.jpg", + "width": 240 + }, + { + "height": 150, + "url": "https://cdn.esempio/g5mvjc2507z793f9.jpg", + "width": 150 + } + ] + }, + "original_width": 640, + "original_height": 1220, + "taken_at": 1591440416, + "is_dash_eligible": 1, + "number_of_qualities": 2, + "video_dash_manifest": "\u00B7?rbx rvkbdrh\u00B7\u00229.1\u0022?\u00B7\n\u00B7PQQ ckfdp\u00B7\u0022prt:nhpf:rbwf:wsrfvn:qxw:3623\u0022 wfzLtjhdkHlzk\u00B7\u0022VR5.949X\u0022 bcml\u00B7\u0022chkgbf\u0022 fdswwDgxwvvcljkpbHdjmmkgh\u00B7\u0022MW7R9K66.162W\u0022 gnwMtxbdgvGxwffghf\u00B7\u0022CQ3V5Q4.636L\u0022 rrdxsvlr\u00B7\u0022crr:hkqf:lqqg:thgrthp:rlqjv-jj-dcsdxt:9525,djxd://vszlmd.hvg/tmvvtmgtzl/hfgx884\u0022 BHNqhffrltVdbkkllkm\u00B7\u00220515861594\u0022 GVDlwkvmlrDkscvcrwkz\u00B7\u0022Fnzmc78KLJFfX19jHKLmQ1Mmz3LqrX4cKDtT78qFx6zpHrF/\u00B7c4brS3JhRXFdcmqmcZrBVQtPGRbB1Rrq2BktH2sP8K4MQdsKqkNCRqlnBGhPD9kzLgkbPKXmhXMVBGJDVmHFs7BT4TDWBTZZVNMJPPC\u0022\u00B7\u00B7Chhqmn jxwggzbb\u00B7\u0022KT6T6L36.635X\u0022\u00B7\u00B7PwfdwzlnmtRxm gfbcvjnRpqdtxdld\u00B7\u0022chxz\u0022 fzdNjnnj\u00B7\u0022687\u0022 bscLvnxln\u00B7\u00227879\u0022 blzTrsqgCtrp\u00B7\u002284\u0022 qqh\u00B7\u002294:11\u0022 bnfr\u00B7\u0022tjj\u0022 fmbzcbkzkcQcrqklhkj\u00B7\u0022wrsj\u0022 cjhmsfrmscNkzmdpZnddGWX\u00B7\u00227\u0022 tk\u00B7\u00222\u0022\u00B7\u00B7Spnqkscnjtwvdt wk\u00B7\u0022075088119589858q\u0022 kdjzQzxj\u00B7\u0022mbslt/kt1\u0022 snvvkd\u00B7\u0022knn9.7R593V\u0022 xvrdh\u00B7\u0022617\u0022 fbnvsz\u00B7\u00224968\u0022 hzlwzJfbb\u00B7\u002217\u0022 rjk\u00B7\u00220:7\u0022 dbxnrSmmvNTS\u00B7\u00222\u0022 zhlfcqprg\u00B7\u0022303327\u0022 NRHjvpcxmnSkd\u00B7\u0022lnmt_zxhrngtp_8_h2\u0022 QCZkfsvpmCkdpmm\u00B7\u0022396299\u0022 KJRgbcfgwNbkrl\u00B7\u0022tp\u0022 FSQsvcqlpZndsf\u00B7\u0022283b\u0022\u00B7\u00B7BjvjPKQ\u00B7klrsj://mmgtcsrb-ccs3-5.qfjvjplqxrsb.jht/h2/v/j53/d7/q70/FVGghpQFd6zLSQhcc5S8nfrFCh3DSHkg7P7ZGHXq39gPvcJw2jgRtRtX-mgkVqQqFWfrSvcBwTCZCV0Cmdd-23VrJ6BChF5MhZlLJQz.fw5?_rt_jql\u00B7917\u0026lvl;_sb_fkf\u00B77jf690\u0026kbt;_nb_vb\u00B7zdnpdbsn-spg6-8.ntflpjpkgrqh.btl\u0026vnw;_cj_jtg\u00B7vHtlq_cMxhTN5zXgzHrq8Jp\u0026qqs;wdb\u00B7jbG3LQ6cb8DxR0NmMhR4HjhgZTbjsnXbCqT1m2Z5Wjsgj1z5THMkRdPng1zzZqRxDBtnqtJbLK62QTZrGcShSJTlL7hqLzdjhGbnPMSzsRgfsZBrT5TjP0KwtS8mLTP3RTB8WfZ1GwFbCcfnKFR5ZJPgcQpgksGrzlBgHGJ9RslrNkxfnLH3L7Tqb1B0L4wdXcbjCCk5KQX8VmJ8VkC0QwmgDGHhm8MxtN1kS7ZjPTF8nrX7JsCjZJpdkfrpzRGbR0RnHC9rKQC1QDDcFHPmKlR3sbF2jP3fL5PvZtP0RZCgmMQxVJCwMkdkQMHcGNTrCmKjrDlbcx0lg3QrR4PhRqC3p0czfW%7S%5W\u0026dwk;lmm\u00B757-8\u0026mgs;_tk_gxc\u00B7jj6bst8l2WpqBdxwVTLmSJ\u0026mgc;_rp_zq\u00B73rnvt\u0026svq;_jv_pc\u00B766\u0026qlt;xh\u00B734_RMRPJr_gn5JBmd5wB5vhJDmqLWBJ_7lpDTLT6G1qWgnfmz\u0026xzj;sq\u00B78MGFLN6R\u00B7/LnkrZLF\u00B7\u00B7DzzswhcSpkq zhcdbDrxrcDcngq\u00B7\u0022dbtr\u0022 ghpfxBzdbz\u00B7\u0022044-869\u0022 TKQgcbrXdzmnvrSbdrg\u00B7\u0022195-695876\u0022 FFCswjmZklfgwtKqjcbnmh\u00B7\u00220491\u0022 CTGfvznbHwxxlhsJpvmf\u00B7\u0022598615-990093\u0022 RZSqbrgtgsTnnlfsmTkbzq\u00B7\u0022947-050528\u0022 HWQvtgftlbNzdfclcCnxxckgr\u00B7\u00228456\u0022\u00B7\u00B7Rqhjnwrzjmnpln xqswj\u00B7\u00229-292\u0022/\u00B7\u00B7/RbrvtjbJmnj\u00B7\u00B7/Mczrctkjrvzhqf\u00B7\u00B7Txntkpjsnljsrz fl\u00B7\u00225862844364681732d\u0022 rljmnjsdb\u00B7\u002232646\u0022 cpqwwl\u00B7\u0022ldb1.5s950p\u0022 qshnPtdp\u00B7\u0022qblnx/tg2\u0022 xbx\u00B7\u00223:2\u0022 NSVhmsvkbzMrr\u00B7\u0022bsvn_sfmcwdbz_9_k1\u0022 FSRlsdnkgQdxczd\u00B7\u002294137\u0022 RTQjjvzqphBtvpjrmzbnJvp\u00B7\u00225:385,614:89.6,227:16.3,444:16.5\u0022 VNVlqgdgssZjlqkzsmklLcxVmjnbzxzgsMlsxq\u00B7\u0022tdcq\u0022 GHFlszhqrwBbgfhpskpgWcknk\u00B7\u00228:302,220:33.9,014:03.2,722:21.4\u0022 skrnb\u00B7\u0022868\u0022 wbggcz\u00B7\u0022850\u0022 pnmtpWwsj\u00B7\u002275567/524\u0022 QVVskdkprTfdcp\u00B7\u0022tn\u0022 GKTslldrhHhtqw\u00B7\u0022870s\u0022\u00B7\u00B7CzbjJTJ\u00B7ftdlr://tjrkkwgf-tkn1-1.srzpwznzlglj.fpl/f7/b/f00/p7/n09/NHPsqHtvRJwZ5JSXghGtRgjxWTqPZS8whJBNxRBJPK9X83JsgblLc23RKrnllf1FZVDG-qMpptbB1nbvrJPfcbstSvpXsRsTQXTzrKD.pd4?_gw_hqg\u00B7929\u0026wbl;_wb_fkn\u00B71mv421\u0026tkp;_vm_pp\u00B7lwbfcgjb-kqk2-0.lsfxkfbbxncz.qkk\u0026vrm;_dd_lpz\u00B7s8s326w2sMdX5gFrbHvHpVr\u0026sbm;vcn\u00B7cwH6SV1rd2DxP1HlDcL1GzsqZPtftcNjJgP9d6B5Fwcgl0d1NQQhFtSqs1hxVbTjCMppzxDgMh68WCHxStTdTPPsF2fpLbdwmQgmBHNznNpnmCVfW7FjK7PgqH8bWXX2RPK6RqX0PhPtFxmcKSD0WJDqpJnfhhRtnxJkNSJ0JwndPsdlvGW4X9Gzf2S8P6lxBrfgLTk5XRB4JqB5JkS2JtvgFSSrm1MtcL7pJ3LzSMC6cxN8KfFtRJqtmssbsSGjR3DhJQ0qBVW8SBQvQZFdBhQ7vmC6sP2lF3CqFhB1HSQgwNJmKCNjGngcZCn1MDddrCNhL7FnB3PxzJHkXNV4Flk6shF1\u0026wzk;xvc\u00B717-3\u0026nbs;_jl_zwv\u00B7sg9whj2x2PwbCjwxJLHjTL\u0026xls;_xq_tf\u00B75mlzp\u0026vgp;_gx_gf\u00B746\u0026tbt;lp\u00B788_FWSh2tRk25QHP4dP3R5FbWj2v1S3NK2vWR77ggWnTCBTjj\u0026jkh;mv\u00B79LNBC896\u00B7/ZscdCXZ\u00B7\u00B7NwskzwwWmlb tsshjHhnlv\u00B7\u0022325-893\u0022 bjshjqkvj\u00B7\u002210097\u0022 JLPcvwxfhJzdsppmvZwbrb\u00B7\u0022863-45097\u0022 NTHvzhhPbqbgdwKnvjl\u00B7\u0022855-21191\u0022 HDKgfgtRxjrmklZfssnfpb\u00B7\u002242272\u0022 CWGhxvsjtlVxjtfpzBcjmp\u00B7\u0022355-86447\u0022 RGWkxgcxwpFphwdcdPntfmkcl\u00B7\u002278675\u0022\u00B7\u00B7Mkbvxdnlprsbtc lnbwm\u00B7\u00228-089\u0022/\u00B7\u00B7/WzkwwxkShst\u00B7\u00B7/Wsdkfffwqkcwbd\u00B7\u00B7/GzbkljktnjWpz\u00B7\u00B7WpgnvcbzxjHjt nncmlgrPxnlhfckw\u00B7\u0022bwlj\u0022 pwvdfvdxlzQhcpwzjmt\u00B7\u0022bjcn\u0022 gfrrsppmhbMlzrqkHqpsWVS\u00B7\u00227\u0022 mm\u00B7\u00226\u0022\u00B7\u00B7Wbktcxjfjgkjjf vq\u00B7\u0022668243661615035h\u0022 kwrnTtmf\u00B7\u0022ztnzd/zq5\u0022 qvrwvz\u00B7\u0022rb4q.21.2\u0022 thcjjFslmjnqnBdrt\u00B7\u002210002\u0022 jpwtzTpqkGRC\u00B7\u00224\u0022 jnvlvqphj\u00B7\u002211603\u0022 HDSwmrtmdjKpw\u00B7\u0022tzmm_ktgzxllf_hxsdq_c7\u0022 DWDvdsnzmNdgwnk\u00B7\u0022146318\u0022\u00B7\u00B7JtfzvDmlcdncRcdnvnfmccpkj mhwgjjKvVzv\u00B7\u0022ncm:gqqx:prqg:24975:1:hzbjx_ccdhcpk_sdjbtsgnzpqqf:7013\u0022 fhxlw\u00B7\u00229\u0022/\u00B7\u00B7PwgvRNP\u00B7xwqcm://vdlthddt-gqk7-6.bpcnbvmlmsxb.lxh/q9/l/n8/h0/r36/TJQSSpqwnqKXks2kdxnSGKblMpRTbgS-PzWCRsn-0zSCXHT77QXRlKvrDFG4Zgwtxs2k8kpSSRZcd16qQB-rrTp.nr0?_hc_czn\u00B7452\u0026gjk;_kl_ctv\u00B79wc678\u0026knj;_cn_dd\u00B7djjpfwdh-znh1-4.lqncqkhpzcbx.gvc\u0026pfp;_vv_fxl\u00B7hx7VvDpXC13J7mPkmWTVLLB\u0026tlq;tnc\u00B7nhF3KG6qf0BpV9CgLpS4BbbqGNxtvtJkVbV3h7L5Lprvv2b7VPJgPsGlh7jtBxTcLVmxmdBpLDSlvB5qbzMhJXP7hBMkq13hQWF9ffHtnJqzh7dvB9GdzSjcxt6gkFQvpPNhPnqcVdHlFPv8SqS5ZxV7TMgbB6htSW76T56lpTDpKtHlQgQkCgxxlw7zx8HjwG4lGPK3BHC6KMZ8HFW4HZBwQgN0SKchSVGfMPNsRXcvM7DvlPKwTmRfGpklKwJpC3DcLBSxf9GlmPCzShWlJLVxGGXjjQFvpWrrjp7xPvjmJVmwMcl2wdR8KVJ4NNDjQKksQgMwmJqstf6rq0JpS2ZfCxZ1w3vkqB%3J%6K\u0026bpw;svf\u00B751-0\u0026bnt;_tm_qwk\u00B7kw3zhv8v7CbmRskfVVCrFS\u0026fsp;_jf_hs\u00B76ldkr\u0026fnb;_hl_mj\u00B773\u0026ptx;xp\u00B737_GHCRhD45vSmQ6WBNLGwTjwZQgpjPFKkdnwRg0QZjrVbKRn\u0026nzf;wq\u00B76MSHCD5S\u00B7/RvsnGHG\u00B7\u00B7PhxxdtzPtmj qcwjrKhglvDhzhn\u00B7\u0022vzjg\u0022 vfvpnLwrdf\u00B7\u0022876-219\u0022 KTZcwlmNvlrqjkGmfgf\u00B7\u0022194-91456\u0022 TCZxhfjTgtdztwRxqswptx\u00B7\u00228774\u0022 ZKVnwwvqLxplrrdFwlnd\u00B7\u002292302-903779\u0022 SCJwzgbghqMwnkdczQkmxq\u00B7\u0022451-06310\u0022 ZVNdzrlsgsZbgmhlvKclwsjcx\u00B7\u00222565\u0022\u00B7\u00B7Tlmzlcdhxhkwgv cllck\u00B7\u00228-702\u0022/\u00B7\u00B7/WpvrzllZtsp\u00B7\u00B7/Vpzkvpklkplxql\u00B7\u00B7/DklrlthrdmPjl\u00B7\u00B7/Qjgddj\u00B7\u00B7/WHT\u00B7\n", + "video_versions": [ + { + "type": 101, + "url": "https://cdn.esempio/b6h5tnrndb960440.mp4" + }, + { + "type": 102, + "url": "https://cdn.esempio/b6h5tnrndb960440.mp4" + }, + { + "type": 103, + "url": "https://cdn.esempio/b6h5tnrndb960440.mp4" + } + ], + "media_type": 2, + "visual_comment_reply_sticker_info": null, + "story_bloks_stickers": null, + "story_hashtags": null, + "story_locations": [ + { + "x": 0.5, + "y": 6.15268013, + "width": 0.44056064, + "height": 0.039717045, + "rotation": 0, + "location": { + "pk": 448749889672431 + }, + "id": "27386434063981628" + } + ], + "text_post_share_to_ig_story_stickers": null, + "story_countdowns": null, + "story_questions": null, + "story_sliders": null, + "link": null, + "reel_media_background": null, + "video_duration": 15, + "custom_list_info": null, + "is_story_edited": false, + "product_type": "story", + "reshared_story_media_author": null, + "story_app_attribution": null, + "audience": null, + "has_liked": false, + "viewer_count": null, + "viewers": [], + "can_reshare": true, + "user": { + "pk": "215081405", + "id": "215081405", + "is_ai_user": null, + "aigm_account_label_info": { + "is_enabled": false + }, + "instagram_pk": "215081405", + "interop_messaging_user_fbid": "068866421413642" + }, + "inventory_source": null, + "carousel_media_count": null, + "media_overlay_info": null, + "caption": null, + "accessibility_caption": null, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxxxxxx7xxxxxxx7xx77xxxxxxxxx7xxxxxxxxxxxxxxxxx7xxxxxxx7xxx7xxx7xxxxxxxxxxxxxxxxxxxxxx77x7xxxxx7xxx7xxx7xxxxxxx7xxx7xxxxxxx7xxx7xxx7xxxxxxxxxxx7xxxxxxxxxxx7xxxxx7xxxxx7xxxxxxx7xxxxxxx7xxx7xxxxxxx7xxxxx7xxxxxxxxxxxxxxxxxxxxxxx7x7xxx7xxx7x7xxxxx7xxxxxxxxxxx7xxxxxxxxxx\u00B7\u00B7", + "story_link_stickers": null, + "story_bloks_tappables": null, + "story_feed_media": null, + "story_cta": null, + "preview": null, + "is_paid_partnership": false, + "sponsor_tags": null, + "wearable_attribution_info": null, + "has_translation": false, + "boosted_status": null, + "can_see_insights_as_brand": false, + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "can_viewer_reshare": null, + "expiring_at": 1591526816, + "ig_media_sharing_disabled": false, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null + }, + "can_reply": true, + "__typename": "JGPZxtzzMglf" + }, + { + "pk": "3952197323849261980", + "id": "6262758040493575268_970857951", + "has_audio": false, + "story_music_stickers": [ + { + "music_asset_info": { + "should_mute_audio": true, + "should_mute_audio_reason": "Kgjggw vjnwkrr rml g rt pwtwbwh shrdqbmdnfd.", + "title": "", + "display_artist": "" + }, + "id": "36084863417163716" + } + ], + "ai_label_info": null, + "carousel_media": null, + "code": "XJjv2JXkb-1", + "image_versions2": { + "candidates": [ + { + "height": 1136, + "url": "https://cdn.esempio/h556010pq638ktm2.jpg", + "width": 640 + }, + { + "height": 852, + "url": "https://cdn.esempio/txm16037tpkfmm2d.jpg", + "width": 480 + }, + { + "height": 568, + "url": "https://cdn.esempio/dx21gw9z8q1g313r.jpg", + "width": 320 + }, + { + "height": 426, + "url": "https://cdn.esempio/96h1l5n9774563r5.jpg", + "width": 240 + }, + { + "height": 640, + "url": "https://cdn.esempio/63h8t249s5g515gx.jpg", + "width": 640 + }, + { + "height": 640, + "url": "https://cdn.esempio/63h8t249s5g515gx.jpg", + "width": 640 + }, + { + "height": 640, + "url": "https://cdn.esempio/63h8t249s5g515gx.jpg", + "width": 640 + }, + { + "height": 480, + "url": "https://cdn.esempio/3002h0rv38408g42.jpg", + "width": 480 + }, + { + "height": 320, + "url": "https://cdn.esempio/n3q0lq67p3608920.jpg", + "width": 320 + }, + { + "height": 240, + "url": "https://cdn.esempio/hhk94mrl6r030pz4.jpg", + "width": 240 + }, + { + "height": 150, + "url": "https://cdn.esempio/7009l759vsv3jh1l.jpg", + "width": 150 + } + ] + }, + "original_width": 720, + "original_height": 1280, + "taken_at": 1637404695, + "is_dash_eligible": 1, + "number_of_qualities": 2, + "video_dash_manifest": "\u00B7?rfd knpbqnh\u00B7\u00223.0\u0022 gqstlpkh\u00B7\u0022RKM-8\u0022?\u00B7\n\u00B7JLL zmxpf\u00B7\u0022fxn:lswx:jczs:bhxhsz:krb:0331\u0022 wlfrv:kwf\u00B7\u0022fqzs://ggm.p6.hqs/4994/KDDNwmtrd-zzfmwwzx\u0022 lss:znzwcgKbrpjfwv\u00B7\u0022mrt:pfbv:wwfg:fkmrqt:hbf:2155 MTRT-HPS.dpm\u0022 mzndwxqw\u00B7\u0022mgz:rhcr:nnfq:sztvwjm:nqkds-cg-bvmqns:5905\u0022 dzjTqspgwRlrk\u00B7\u0022NZ4M\u0022 qztb\u00B7\u0022gmkfzk\u0022 hcqfxBlbxmkrvwxqlDclxxwsj\u00B7\u0022GK76.448024951042119Q\u0022 KLZwvlkbkzSxhdtqdzb\u00B7\u00227337551734\u0022 DVSftkmtdfQzhzxxtgmg\u00B7\u0022Ssfgt73RJDNfP54tZCGdJ5Kdb2HwxK3sCHmSwKR\u00B7vtLjJzfSz/TX5dVQKlKtVNbCLGq3pfXnfJpxnRPTVxGJSKFJQLFBLf5VTX3DGJZQX9nQBQBJQH\u00B7\u00B7\u0022\u00B7\u00B7Xbssbq gk\u00B7\u00228\u0022 cxmcdrvl\u00B7\u0022ZF13.271212024345687B\u0022\u00B7\u00B7QfmhcwvdfdPsr vg\u00B7\u00227\u0022 tmdgrcfDhfj\u00B7\u0022jgrbf\u0022 ggqwpnssqpGvjrwxkhq\u00B7\u0022zhmr\u0022 plf\u00B7\u00221:62\u0022\u00B7\u00B7Mbgzlsxrgwczgr zc\u00B7\u0022418245279375611l\u0022 rkhtjgwpx\u00B7\u00226655011\u0022 cmrrrd\u00B7\u0022kjs7.6s666r\u0022 mkwzRwdn\u00B7\u0022zrlqb/xt4\u0022 pdx\u00B7\u00221:5\u0022 DXDzbwxvfcQkl\u00B7\u0022cnqj_fjjfgfsq_5_w6\u0022 CPVclcfkmZhbwwc\u00B7\u00225944919\u0022 xzpdb\u00B7\u0022236\u0022 qtznck\u00B7\u00228162\u0022 tpwmpNlbv\u00B7\u002205006/605\u0022 FVCrtrvnkLxzzl\u00B7\u0022rd\u0022 BHSxlpbpvRrlmn\u00B7\u0022780x\u0022\u00B7\u00B7TgjkSGG\u00B7nxlwq://zjnpfjhv-qns3-1.rmnzcksqxbkv.spb/x8/g/b11/k0/x68/NJBGNVDPS2s4ZlKl9J8rlcX6Dqv6s6v52ghDHx-dm709W3S4cNhhKdKkWHVBbRfcz1dXN0lddz39Qnw-qfqKM93gfV5PklRzL8MFpWM.zs7?_tm_kwd\u00B7186\u0026vqk;_sv_sfl\u00B79bq162\u0026rwp;_ld_dz\u00B7vrmdbvbf-khj8-9.twgmsttcxdkb.mkv\u0026dng;_jc_crl\u00B72HFf6NDTTVjK9nSmcXM8DsD\u0026hsm;qvw\u00B7kzK3HS2fx2HxM9PbGgD8RbxdHLmgvcBdWdG0r9C9Tzxqb6g1KDDjJlBpj3lqHgJhJBfxxsQzFF70KLBrHkPlBDQmS2cpGtzmnFzzMCJffGttjJXdZ8GgZ0TjjP7zWKF4PHL6CbC5KmRsHdtvNST2XHKhmHfkzhGjlbZbXKS7TvkxMxxwkSF2M3Xjw5J0V1bdBdjtGJH4KPt4VvwwXZXxKXG1XSSzg9TnrK8fF1GkJGF6rpF5TDb8HxjnwgsgmDBxW3FrXP4gLKF7HCF8LzXgClX5bsC3jR1qD0DkZcHxNRTtqVLqNLHtCtdwMLJ1QtJ5TFT1djthTF6mg417fbJzFqtqr2v9Bs1%6B\u0026plh;nth\u00B736-3\u0026fsk;_lr_qwd\u00B7zp2fpb3d6LmmGjmlCHBjXW\u0026gsw;_bt_ls\u00B72fnhr\u0026lmj;_ll_fg\u00B704\u0026trm;zm\u00B723_HJX-1LbqwBSD3gfwRtpPnt-XkF1cFjB28Fv6HM55x8sJvz\u0026xtq;rt\u00B77BQSX24N\u00B7/PdbjKJK\u00B7\u00B7DzdbfljGzjk lrvdpFnnzz\u00B7\u0022150-645\u0022 svdbmdnvt\u00B7\u002246148\u0022 BZJtdgdFqlhkwnRshkr\u00B7\u0022064-7191463\u0022 KSJdrgpZbwtcshVltpdmng\u00B7\u00228699\u0022 SHFkktvnKndtbkkFxnmg\u00B7\u00223302320-7206973\u0022 MQCbjslcmmLkzjrgmDjrnf\u00B7\u0022999-9102399\u0022 FFPhhbsfczLdjcdzjJpvzttjf\u00B7\u00228632\u0022\u00B7\u00B7Frxcwcmwnjjpth qbxpc\u00B7\u00223-638\u0022/\u00B7\u00B7/KbfdqczLjkw\u00B7\u00B7/Fwngwcjrzwdmwc\u00B7\u00B7Cdvpbztnspszvv tp\u00B7\u0022424428350500868h\u0022 jsfzqsqhm\u00B7\u0022054378\u0022 ngsjmh\u00B7\u0022jsg4.2b759k\u0022 mhszMhdx\u00B7\u0022zgfkq/ff0\u0022 bsm\u00B7\u00222:1\u0022 GTMrtzhccwQbx\u00B7\u0022ttwh_xgppmdgt_8_x0\u0022 QRVgcsbzdWttbmv\u00B7\u00220465753\u0022 KWJrvrhppdWngrbrgbbkGqc\u00B7\u00227:109,342:97.6,367:81.7,599:08.1\u0022 PTThsbvgphTsgbhwkzsgHfmPjmrbpthqnVfdjk\u00B7\u0022fcws\u0022 ZVJppvfkhbLrkfphcrljFjmkj\u00B7\u00221:966,759:42.0,902:01.2,601:93.2\u0022 vjdjr\u00B7\u0022487\u0022 jsrgtk\u00B7\u0022386\u0022 qwfzkKcjs\u00B7\u002261980/954\u0022 ZWPkdvrxqPdgxt\u00B7\u0022xw\u0022 ZZTmhnbmwPrbqx\u00B7\u0022672m\u0022\u00B7\u00B7DzwtZWW\u00B7xjhcb://mwxlglkx-pvm6-3.wplplphfjjms.bws/n1/f/l14/h5/t82/XTQWKXsgVDHswJk7vxbFnnp5GkTPDdPlrPP0bTZJlxJtpdLjhbF8t69cKBXJhKxfGcjPdVPqxhw_XhxLrFwtMSvVp1rggsflHwdPFRZ.lb7?_bs_ktp\u00B7357\u0026fpr;_qs_pkq\u00B78zp127\u0026rkn;_rr_lx\u00B7jgzkfcls-hbw5-5.vbsrbgbvkmfp.sbs\u0026nfv;_qf_cgl\u00B7kqRpLs3KrghF1dFgvTJhMf0\u0026btq;lgj\u00B7njV7TH9mc7VrW1WgDvS5MtznCZnfxmNrRwP1p7W0Vptfm7n7TLQfFtVbq6stDgTzZZgnvhMkBc20CCLqDcGgPXSqS2pdPvggbNfzMJZqdGvstJLmS2LlB0BswG3hNTF1KVG9PlF4QfVsJkrlFXC8NKLblTmkrwSgkpJwKKN8ZdtzCcqkdRG2D0Xzl6K3K3nzFsdnKSJ0NKb3BdlvSHDcVZP3XJNrp9WfwB2kS9BzTXF7jhW9ZQt0HnrthgtgkCPwG0KvQF2cDTT9VJK9SxZqTdM7dmP6rC9dX2QrJkKcMHSpfHXcJSTpHtq1LNG9MGVlPbZhpRmzxc8tb5KbQ5KkQxV3j9svzV%1C%6H\u0026kvp;vls\u00B716-1\u0026cmx;_dp_vpv\u00B7xv0wln5r3MxxZgvmNWRnSJ\u0026vkn;_td_nt\u00B78zpst\u0026tnc;_gq_jl\u00B722\u0026jpj;jp\u00B758_BPJQwtSx9RvCSWwK7cwHWFwJ82b1splXMvXVPmpXMs4tbT\u0026rqc;zp\u00B76DHGW788\u00B7/GmspKLZ\u00B7\u00B7FpbkssrJdcs dntrjQzfsv\u00B7\u0022657-078\u0022 nfwhssmqk\u00B7\u002230210\u0022 MZZmbqwtbSqqtgwhfZwsjp\u00B7\u0022593-56256\u0022 CTDbflsQzplfjkHfvqq\u00B7\u0022192-3611484\u0022 PNZxlqlZdvfmdcKglgfbwz\u00B7\u002204903\u0022 XJCspjcdhvFfjjdfwKrvbh\u00B7\u0022778-5727942\u0022 QXTrqctvcqXrhqwdsZwrfchhd\u00B7\u002204214\u0022\u00B7\u00B7Xlmrxzjmcsscnj xvxss\u00B7\u00227-493\u0022/\u00B7\u00B7/MxqqljhDvpg\u00B7\u00B7/Nplczhgngrsswm\u00B7\u00B7/CtplqflqnsDtv\u00B7\u00B7/Tbbscx\u00B7\u00B7/DPR\u00B7\n", + "video_versions": [ + { + "type": 101, + "url": "https://cdn.esempio/282fn2vb6wsv8659.mp4" + }, + { + "type": 102, + "url": "https://cdn.esempio/282fn2vb6wsv8659.mp4" + }, + { + "type": 103, + "url": "https://cdn.esempio/282fn2vb6wsv8659.mp4" + } + ], + "media_type": 2, + "visual_comment_reply_sticker_info": null, + "story_bloks_stickers": [ + { + "x": 0.5, + "y": 8.6448677, + "width": 0.32963473, + "height": 0.0496325, + "rotation": -7.84860763782, + "bloks_sticker": { + "sticker_data": { + "ig_mention": { + "full_name": "Cgr Hscwzz LVD", + "username": "crxbmhsccqql" + } + }, + "id": "dxtrs_nzwbbld_pf" + }, + "id": "24644645314720620" + } + ], + "story_hashtags": null, + "story_locations": null, + "text_post_share_to_ig_story_stickers": null, + "story_countdowns": null, + "story_questions": null, + "story_sliders": null, + "link": null, + "reel_media_background": null, + "video_duration": 12.266, + "custom_list_info": null, + "is_story_edited": false, + "product_type": "story", + "reshared_story_media_author": null, + "story_app_attribution": null, + "audience": null, + "has_liked": false, + "viewer_count": null, + "viewers": [], + "can_reshare": true, + "user": { + "pk": "215081405", + "id": "215081405", + "is_ai_user": null, + "aigm_account_label_info": { + "is_enabled": false + }, + "instagram_pk": "215081405", + "interop_messaging_user_fbid": "068866421413642" + }, + "inventory_source": null, + "carousel_media_count": null, + "media_overlay_info": null, + "caption": null, + "accessibility_caption": null, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxxxxxx7xxxxxxx7xx77xxxxxxxxx7xxxxxxxxxxxxxxxxx7xxxxxxx7xxxxxxx7xxx7xxx7xxxxxxxxxxxxxx77x7xxxxx7xxx7xxx7xxxxxxx7xxx7xxxxxxx7xxxxxxx7xxx7xxx7x7x7xxxxxxxxxxx7xxxxxxxxxxxxxxxxxxx7xxx7xxx7xxxxxxxxxxxxxxxxxxx7xxxxxxxxxxx7xxx7xxxxxxx7xxx7xxxxxxxxxxx7xxxxxxxxxxx7xxxxxxxxxx\u00B7\u00B7", + "story_link_stickers": null, + "story_bloks_tappables": null, + "story_feed_media": null, + "story_cta": null, + "preview": null, + "is_paid_partnership": false, + "sponsor_tags": null, + "wearable_attribution_info": null, + "has_translation": false, + "boosted_status": null, + "can_see_insights_as_brand": false, + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "can_viewer_reshare": null, + "expiring_at": 1637491095, + "ig_media_sharing_disabled": false, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null + }, + "can_reply": true, + "__typename": "JGPZxtzzMglf" + } + ], + "unviewable_authors_infos": [], + "user": { + "__typename": "KGTWcdxBfxp", + "pk": "215081405", + "id": "215081405", + "interop_messaging_user_fbid": "068866421413642", + "username": "dwvqbrgcjf", + "profile_pic_url": "https://cdn.esempio/m28590xc92pz7q29.jpg", + "is_private": false, + "user_id": "215081405", + "is_verified": false, + "aigm_account_label_info": { + "attribution_label_text": null, + "is_auto_detected": false, + "is_enabled": false, + "is_manually_enabled": false + }, + "transparency_label": null, + "transparency_product": null, + "transparency_product_enabled": false + }, + "seen": null, + "reel_type": "highlight_reel", + "cover_media": { + "cropped_image_version": { + "url": "https://cdn.esempio/2442445l39919kt2.webp" + }, + "full_image_version": null + }, + "title": "Jlfxfp NRK \u00B7\u00B7", + "can_reshare": true, + "latest_reel_media": 1771791977, + "muted": null, + "__typename": "DWVDlmdMnfr" + }, + "cursor": null + } + ], + "page_info": { + "end_cursor": "pttltqzhq:93383278900435172", + "has_next_page": true, + "has_previous_page": false, + "start_cursor": "wbrdsqcfh:40873216433815628" + } + }, + "xdt_viewer": { + "user": { + "pk": "958921902", + "id": "958921902", + "user_id": "958921902", + "can_see_organic_insights": true + } + } + }, + "extensions": { + "server_metadata": { + "request_start_time_ms": 4806483400782, + "time_at_flush_ms": 5922188322396 + }, + "is_final": true + } + } +} \ No newline at end of file diff --git a/tests/Febe.Tests/campioni/instagram/000007-raccolta-pagina-successiva.json b/tests/Febe.Tests/campioni/instagram/000007-raccolta-pagina-successiva.json new file mode 100644 index 0000000..bc88be9 --- /dev/null +++ b/tests/Febe.Tests/campioni/instagram/000007-raccolta-pagina-successiva.json @@ -0,0 +1,607 @@ +{ + "descrittore": { + "indirizzo": "https://sito.esempio/34m6543g18c0k202", + "host": "sito", + "stato": 200, + "tipo": "text/javascript", + "risorsa": "XHR", + "quando": "2026-10-21T17:39:03Z" + }, + "corpo": { + "data": { + "xdt_api__v1__feed__reels_media__connection": { + "edges": [ + { + "node": { + "id": "mtmlprbdv:62008803167428297", + "items": [ + { + "pk": "9704657468886935049", + "id": "0224021262026182334_702528115", + "has_audio": false, + "story_music_stickers": null, + "ai_label_info": null, + "carousel_media": null, + "code": "RzZX1JHhJNG", + "image_versions2": { + "candidates": [ + { + "height": 1276, + "url": "https://cdn.esempio/3m6x3548q708c84w.jpg", + "width": 720 + }, + { + "height": 1134, + "url": "https://cdn.esempio/324647f1l7pt1n80.jpg", + "width": 640 + }, + { + "height": 851, + "url": "https://cdn.esempio/329m6914172rf1kp.jpg", + "width": 480 + }, + { + "height": 567, + "url": "https://cdn.esempio/hc4g542p6d2s1t19.jpg", + "width": 320 + }, + { + "height": 425, + "url": "https://cdn.esempio/p88051bs2w1412mc.jpg", + "width": 240 + }, + { + "height": 720, + "url": "https://cdn.esempio/154sg73t10wnj81f.jpg", + "width": 720 + }, + { + "height": 720, + "url": "https://cdn.esempio/154sg73t10wnj81f.jpg", + "width": 720 + }, + { + "height": 640, + "url": "https://cdn.esempio/s864785cwb5gkm08.jpg", + "width": 640 + }, + { + "height": 480, + "url": "https://cdn.esempio/hbgq9m2wt9x946p5.jpg", + "width": 480 + }, + { + "height": 320, + "url": "https://cdn.esempio/b5l52zm8f2k79z34.jpg", + "width": 320 + }, + { + "height": 240, + "url": "https://cdn.esempio/l04w59br24162l62.jpg", + "width": 240 + }, + { + "height": 150, + "url": "https://cdn.esempio/d53475r2kg9z9jg3.jpg", + "width": 150 + } + ] + }, + "original_width": 640, + "original_height": 1136, + "taken_at": 1535615772, + "is_dash_eligible": 1, + "number_of_qualities": 2, + "video_dash_manifest": "\u00B7?wwb qkkqkwc\u00B7\u00223.8\u0022?\u00B7\n\u00B7VSF vnnzs\u00B7\u0022bjz:ltmg:xqfv:tfslbk:wqt:7521\u0022 ndhGptpdcKlwb\u00B7\u0022PH0.101P\u0022 xgqg\u00B7\u0022nqmwjc\u0022 tjxfpWfdxgrpxjtzdWnqhrbpd\u00B7\u0022PD5W0G3.607P\u0022 tfmQcxvznrDqxcxxgc\u00B7\u0022SR3Q3C8.137N\u0022 kfmqnvxp\u00B7\u0022xwk:nznw:wkld:flzhklb:knmqj-dv-chwsmj:7373,pwzd://mmvvfp.pvj/wsckzctcxb/fpcb905\u0022 HNNnxkcgqsHnscssspr\u00B7\u00224162876904\u0022 PHPljrrqtjCzmdkqcnwk\u00B7\u0022Qn7wm54JZTTfD11mCQFdP2Dxt0TgvF3hXPfJdW\u00B7QhKjQZpWFd2XSjmVTNknhJLRxvKlcrTDch9B1C4Dlfj0bDKfjHdBbx40phSB2QbgJDBpwrTDhXJ7lgMlfpVQMzKQGZRVCHMqCKx3ZW1JGQKQLRSPPDHLD\u0022\u00B7\u00B7Mbdsvw wmpcbspc\u00B7\u0022DS8D5C1.713C\u0022\u00B7\u00B7WqpndndcmjZzc hnfgwjqQwmwslndf\u00B7\u0022cjmp\u0022 ltzVzkvn\u00B7\u0022099\u0022 jdqMbdtlr\u00B7\u00229292\u0022 cfqSchlcBspk\u00B7\u002297\u0022 dzs\u00B7\u00229:89\u0022 ljlh\u00B7\u0022hcl\u0022 gxqjmmclrnJqxlqcgbj\u00B7\u0022zsfc\u0022 sfwgtgxsvtXcbzlzKksxJWR\u00B7\u00223\u0022 mf\u00B7\u00225\u0022\u00B7\u00B7Nkrfrcdpkntgrq gg\u00B7\u0022482151444703656c\u0022 pfdtZrsv\u00B7\u0022kptzp/fj2\u0022 ncljpw\u00B7\u0022ggt7.5V806Z\u0022 mkntl\u00B7\u0022124\u0022 ndzmsd\u00B7\u00229577\u0022 drzjlGzss\u00B7\u002242\u0022 tkl\u00B7\u00227:1\u0022 vjfpcHghrNHR\u00B7\u00228\u0022 xlfsdcffb\u00B7\u0022091868\u0022 ZJKpgphhjgTcc\u00B7\u0022lvhw_vflmtbcz_9_r6\u0022 WKNhjcrljBglkms\u00B7\u0022078865\u0022 QLLftNwmggsJkbj\u00B7\u0022\u0022 CPHdsvbgnQhphm\u00B7\u0022rd\u0022 FJHmshfqrJlnfl\u00B7\u0022648k\u0022\u00B7\u00B7KjzwNHH\u00B7xcbmp://bzmhpgpz-kws4-4.dfwcpflnwjwm.lhz/c9/j/c21/q1/h08/LWRQCv4JT9WSTdZvcTTmKdCD_XtqxgVfwgp26mfkDF_pTdXG8T23gBf43RZtPv9H9CMsKjXv9Pz5SXnJc8-ZqFPHZKV6Td3ZsFGrnMb.fq2?_rv_kts\u00B7608\u0026mqz;_qf_mrz\u00B78kd078\u0026wdj;_mw_gg\u00B7zhbcmdgb-nml3-9.cfnkflsntnxc.jbx\u0026qqf;_vs_wmm\u00B7DtCLQ3bgm-ZL9jXwzXLN2kX\u0026ffx;xlv\u00B7xzB9VG3qf6KkH6VwBgZ5HgdqVZrsnkSbHwR3c8F3Xxwsl0n3MCSqPkPqn7ngMsQxCXfpzdSgDV39JRNbFcFlKSQxC2wkHwrzlBqrBVLmgCkbkCZcB2DfL0QhlN4fRPN5QPZ4XxJ5MtJhLwdvGQZ2MGVbtQwqsxSdqhRrBVP9BmthVptfhJD1Z4Xmx2G7M5czZjt6CFLrMMB7HDD2MTD2XJQxJwKjc1R9D8QmPS4sSBthKtglGBtsTGD2tJ82p4JtMRVtB2xnCgtrHXwkCzplNCLdRPScx99tzgD7LLbmZmr6blQ8CWK5FlD7GTG9NPX9wktpJB6hd764vfFmXjlph2r6Tk8%2Z\u0026wkt;bjz\u00B739-8\u0026hcx;_zv_klp\u00B70V8ndm4BsRzTv4LT4MWJpw\u0026tpt;_hx_lt\u00B75fsgx\u0026chb;_fq_tn\u00B723\u0026bhg;ls\u00B742_SHGczhCzFRp5Nvrk2VpPffQ9QkQwNGHqlkG7cBPzsHHrqX\u0026djp;sd\u00B73QNLR7Q2\u00B7/VlfhDZR\u00B7\u00B7MlcvxhnDllb jtwvhFmtpcQptwp\u00B7\u0022fsln\u0022 qsvjmWknpc\u00B7\u0022737-351\u0022 DZXwcdwDjnlfrdLmxnd\u00B7\u0022887-144580\u0022 JZQwqjdTndwkngRgwmgbkx\u00B7\u00229653\u0022 MGSwctrghbGljmlqfCsfgb\u00B7\u0022062-392591\u0022 WTGfwtgsxnGvclxnvRmxgpplc\u00B7\u00225055\u0022\u00B7\u00B7Fmtgdrkcmmrmrv fbppn\u00B7\u00229-710\u0022/\u00B7\u00B7/PsrwkmlSlfw\u00B7\u00B7/Ngrgknqmkblkpl\u00B7\u00B7Zvqcjchcztfxdx zh\u00B7\u0022666047318082679m\u0022 gscxrrrxz\u00B7\u002250080\u0022 mjmhgx\u00B7\u0022xfx1.4t787g\u0022 wpwbDkjg\u00B7\u0022pzlfh/rq1\u0022 bjm\u00B7\u0022536:139\u0022 SQLqjvlkxvMkc\u00B7\u0022whgj_cpfrqhcd_5_n5\u0022 GNRqcbqkfPjcrrx\u00B7\u002237317\u0022 JRQpvmbgmkZgdjcdwsbwQxp\u00B7\u00224:656,651:61.2,275:70,786:13.2\u0022 VVXrmljbdhLrwchgjsjsZzxRsgggwzgfkMqwfj\u00B7\u0022zgmd\u0022 KNKddbwddbPnlwpjzfbvLlmqf\u00B7\u00224:530,971:07.5,097:38.7,285:46.6\u0022 DSCbmTlxgczPbbf\u00B7\u0022\u0022 rfrvw\u00B7\u0022094\u0022 xcwnmz\u00B7\u0022289\u0022 nlgngJjwn\u00B7\u002273760/418\u0022 PFMtbjxplMdnrj\u00B7\u0022wc\u0022 CZMndlnlzXmhnt\u00B7\u0022294l\u0022\u00B7\u00B7RtprJZQ\u00B7spknw://vmprdgtb-cvh4-9.ccmtfshfkcbw.zhw/s3/h/m22/j3/g82/KZZHsDth05NvXL5JgKqFvrn4V7mhChzkqLgxpq5Rkjp0lBVmcgsTqRxf8GqWrK2N9QxVsqSSw9Wt6k2q0KKZkhSSfP-Lm2r4vdl2FL9.pd8?_tr_hgl\u00B7217\u0026zdx;_hv_jlg\u00B73tz091\u0026vtd;_pm_tc\u00B7bhdzljjm-dml0-2.jjbhktwdwmrk.gdj\u0026zlc;_qm_nwk\u00B7rJ-9VVf8F3vD8sFxrSsZdMh\u0026knt;vtn\u00B7vqL7FG7pr8KzL4ZwLdD5RtsmFHcsxbJhBhP9z2H4Qvxzd1l6KBQfFlHbx8zwVmHsPNdlptSkRf45LDTvLwMbRMKtS5hwNlwbgRhnSCThjRrrsHJmV8KmL3RnxW7gPXK9QWT9NpK4MnLqHsmvSTS2LWKsvQtdzbHstmChFCC5XsvqBrpmvHQ2P9Djv0G6D3mnSfx7HQWrWVQ8FBQ4QJC2RVQlLjVcw8W9J0ZsVC5lVCwgQpqlXFxdSWR2qQ30s0SsXJDzM8xfZjwtVTlrKfbmPCMrSHNbt92bqvN5ZZjmMzl9ntK9BMZ7Tds4JhhbXsQgdWjrbx8dq1KpM3LfFvF4x5zwbH%7D%1K\u0026nmp;bzz\u00B762-0\u0026rqq;_zl_mdm\u00B79J0dch0NtMdWf5BT7XNDng\u0026zvt;_cz_wh\u00B71xtnf\u0026lgg;_qn_kf\u00B735\u0026pnc;zb\u00B734_PJWgPv8hBCWMDpZN2W8M2DV6NTZqVMgXP15g95Jx0qjsLm\u0026nnf;rq\u00B74PJPB5J8\u00B7/BrgnGCG\u00B7\u00B7WqzkppfDhtx vdgcdMpjnn\u00B7\u0022031-464\u0022 qpncssclq\u00B7\u002294893\u0022 JRKjwspmdKzhzvqdgJvsqx\u00B7\u0022779-76519\u0022 ZDFfphjKtmzhnqKndxp\u00B7\u0022787-34921\u0022 JDQxcwpNvqqwwcSgrxrzcb\u00B7\u00226974\u0022 NSRjvrjzpjKwgqrflQxhsw\u00B7\u0022725-70931\u0022 HQNjnmctswKqdhzglSxkdqlrl\u00B7\u00221843\u0022\u00B7\u00B7Mbxqhlgpsqjrsp vvnrc\u00B7\u00223-428\u0022/\u00B7\u00B7/XdxwztmGpxk\u00B7\u00B7/Lgmnbcsmvnfxtc\u00B7\u00B7/VcljpsfcgnWtb\u00B7\u00B7/Fnsgxc\u00B7\u00B7/CDF\u00B7\n", + "video_versions": [ + { + "type": 101, + "url": "https://cdn.esempio/w6plz52z5749r9g8.mp4" + }, + { + "type": 102, + "url": "https://cdn.esempio/w6plz52z5749r9g8.mp4" + }, + { + "type": 103, + "url": "https://cdn.esempio/w6plz52z5749r9g8.mp4" + } + ], + "media_type": 2, + "visual_comment_reply_sticker_info": null, + "story_bloks_stickers": null, + "story_hashtags": null, + "story_locations": null, + "text_post_share_to_ig_story_stickers": null, + "story_countdowns": null, + "story_questions": null, + "story_sliders": null, + "link": null, + "reel_media_background": null, + "video_duration": 5, + "custom_list_info": null, + "is_story_edited": false, + "product_type": "story", + "reshared_story_media_author": null, + "story_app_attribution": null, + "audience": null, + "has_liked": false, + "viewer_count": null, + "viewers": [], + "can_reshare": true, + "user": { + "pk": "215081405", + "id": "215081405", + "is_ai_user": null, + "aigm_account_label_info": { + "is_enabled": false + }, + "instagram_pk": "215081405", + "interop_messaging_user_fbid": "068866421413642" + }, + "inventory_source": null, + "carousel_media_count": null, + "media_overlay_info": null, + "caption": null, + "accessibility_caption": null, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxx7xxxxxxxxxxxxxx77xxxxxxxxxxxxxxx7xxx7xxxxxxx7xxx7xxxxxxx7xxx7xxx7xxx7xxxxxxxxxxxxxx77x7xxxxx7xxx7xxx7xxxxxxx7xxx7xxx7xxxxxxx7xxx7xxx7xxx7xxx7xxxxxxxxxxx7xxxxxxxxxxx7xxx7xxxxxxxxxxxxxxxxxxxxxxx7xxxxx7xxx7x7xxx7xxxxxxx7xxxxxxx7xxx7xxx7xxxxxxx7xxxxxxxxxxx7xxxxxxxxxx\u00B7\u00B7", + "story_link_stickers": null, + "story_bloks_tappables": null, + "story_feed_media": null, + "story_cta": null, + "preview": null, + "is_paid_partnership": false, + "sponsor_tags": null, + "wearable_attribution_info": null, + "has_translation": false, + "boosted_status": null, + "can_see_insights_as_brand": false, + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "can_viewer_reshare": null, + "expiring_at": 1535702172, + "ig_media_sharing_disabled": false, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null + }, + "can_reply": true, + "__typename": "JGPZxtzzMglf" + }, + { + "pk": "0136776105441301518", + "id": "1919041622766888881_764140925", + "has_audio": null, + "story_music_stickers": null, + "ai_label_info": null, + "carousel_media": null, + "code": "Pf_jnh4jjGx", + "image_versions2": { + "candidates": [ + { + "height": 1278, + "url": "https://cdn.esempio/64277767bs4g22l3.jpg", + "width": 720 + }, + { + "height": 1136, + "url": "https://cdn.esempio/1l76q9n05v433q8z.jpg", + "width": 640 + }, + { + "height": 852, + "url": "https://cdn.esempio/tv49354p66z3fb11.jpg", + "width": 480 + }, + { + "height": 568, + "url": "https://cdn.esempio/h4576h51s0k2qg8c.jpg", + "width": 320 + }, + { + "height": 426, + "url": "https://cdn.esempio/568w418p1jmzlxr9.jpg", + "width": 240 + }, + { + "height": 720, + "url": "https://cdn.esempio/8f89j8p2b9109j5t.jpg", + "width": 720 + }, + { + "height": 720, + "url": "https://cdn.esempio/8f89j8p2b9109j5t.jpg", + "width": 720 + }, + { + "height": 640, + "url": "https://cdn.esempio/q046570l2m6860j3.jpg", + "width": 640 + }, + { + "height": 480, + "url": "https://cdn.esempio/458xvr038d7nr57d.jpg", + "width": 480 + }, + { + "height": 320, + "url": "https://cdn.esempio/lmjkwb9v6qq0xnpc.jpg", + "width": 320 + }, + { + "height": 240, + "url": "https://cdn.esempio/785x3klnzc3l6240.jpg", + "width": 240 + }, + { + "height": 150, + "url": "https://cdn.esempio/p8018t8149r793v6.jpg", + "width": 150 + } + ] + }, + "original_width": 720, + "original_height": 1278, + "taken_at": 1537547068, + "is_dash_eligible": null, + "number_of_qualities": null, + "video_dash_manifest": null, + "video_versions": null, + "media_type": 1, + "visual_comment_reply_sticker_info": null, + "story_bloks_stickers": null, + "story_hashtags": null, + "story_locations": [ + { + "x": 0.5, + "y": 9.78327953178594, + "width": 0.875, + "height": 0.097790492957746, + "rotation": 0, + "location": { + "pk": 348843475 + }, + "id": "08921590880713343" + } + ], + "text_post_share_to_ig_story_stickers": null, + "story_countdowns": null, + "story_questions": null, + "story_sliders": null, + "link": null, + "reel_media_background": null, + "video_duration": null, + "custom_list_info": null, + "is_story_edited": false, + "product_type": "story", + "reshared_story_media_author": null, + "story_app_attribution": null, + "audience": null, + "has_liked": false, + "viewer_count": null, + "viewers": [], + "can_reshare": true, + "user": { + "pk": "215081405", + "id": "215081405", + "is_ai_user": null, + "aigm_account_label_info": { + "is_enabled": false + }, + "instagram_pk": "215081405", + "interop_messaging_user_fbid": "068866421413642" + }, + "inventory_source": null, + "carousel_media_count": null, + "media_overlay_info": null, + "caption": null, + "accessibility_caption": null, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxx7xxxxxxxxxxxxxx77xxxxxxxxxxxxxxx7xxx7xxxxxxx7xxx7xxxxxxx7xxx7xxx7xxx7xxxxxxxxxxxxxx77x7xxxxx7xxx7xxx7xxxxxxx7xxx7xxx7xxxxxxx7xxx7xxx7xxx7xxx7xxxxxxxxxxx7xxx7xxxxxxx7xxxxxxxxxxx7xxxxxxxxxxxxxxx7xxx7xxx7xxxxxxxxx7x7xxxxxxx7xxxxxxx7xxxxxxx7xxx7xxxxxxxxxxx7xxxxxxxxxx\u00B7\u00B7", + "story_link_stickers": null, + "story_bloks_tappables": null, + "story_feed_media": null, + "story_cta": null, + "preview": null, + "is_paid_partnership": false, + "sponsor_tags": null, + "wearable_attribution_info": null, + "has_translation": false, + "boosted_status": null, + "can_see_insights_as_brand": false, + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "can_viewer_reshare": null, + "expiring_at": 1537633468, + "ig_media_sharing_disabled": false, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null + }, + "can_reply": true, + "__typename": "JGPZxtzzMglf" + }, + { + "pk": "3134868844340144332", + "id": "7652716589938419222_411682419", + "has_audio": true, + "story_music_stickers": null, + "ai_label_info": null, + "carousel_media": null, + "code": "G-NPTmQzpkD", + "image_versions2": { + "candidates": [ + { + "height": 916, + "url": "https://cdn.esempio/fs6632cb872701wc.jpg", + "width": 480 + }, + { + "height": 611, + "url": "https://cdn.esempio/b5244m81x5d26316.jpg", + "width": 320 + }, + { + "height": 458, + "url": "https://cdn.esempio/p41f04n0vt13070h.jpg", + "width": 240 + }, + { + "height": 480, + "url": "https://cdn.esempio/65912pv25ms50257.jpg", + "width": 480 + }, + { + "height": 480, + "url": "https://cdn.esempio/65912pv25ms50257.jpg", + "width": 480 + }, + { + "height": 480, + "url": "https://cdn.esempio/65912pv25ms50257.jpg", + "width": 480 + }, + { + "height": 480, + "url": "https://cdn.esempio/65912pv25ms50257.jpg", + "width": 480 + }, + { + "height": 320, + "url": "https://cdn.esempio/n246l4s386791637.jpg", + "width": 320 + }, + { + "height": 240, + "url": "https://cdn.esempio/r7010z76j203fm48.jpg", + "width": 240 + }, + { + "height": 150, + "url": "https://cdn.esempio/p20352l4w88k9715.jpg", + "width": 150 + } + ] + }, + "original_width": 480, + "original_height": 916, + "taken_at": 1585040589, + "is_dash_eligible": 1, + "number_of_qualities": 2, + "video_dash_manifest": "\u00B7?tdn rjmxjmk\u00B7\u00225.8\u0022?\u00B7\n\u00B7RPJ mfzdh\u00B7\u0022rgh:qrhp:szsl:bdspdk:wll:1069\u0022 rvkKgkznjHkpq\u00B7\u0022KR9.413B\u0022 tpvl\u00B7\u0022gltczb\u0022 frvmtQnmxpgxmmwfbWgcbdmhv\u00B7\u0022FQ6W8B9.433T\u0022 jpvWxlhhshXkmtwhdk\u00B7\u0022HR9L9S8.805C\u0022 dltcmrdt\u00B7\u0022kzq:dvjf:lkpx:bngkmjb:wbzjb-dc-wwztzh:7351,qzdw://bgvkrp.dbd/pmdhkrfvss/jpkl074\u0022 BVKnhnbnqqDdmvhkjpg\u00B7\u00226467737323\u0022 PJQqgwkgrlFcjprltgkn\u00B7\u0022Fs7gr87DHWCsS96rBLGnT3Skv3PwvK6dLJl5dbxP2/0SNKLx2/8mxt8Djqlkb2Gf/DXqBFDlFQQfG7Ncq9SmvD9nJ2V3LDbbVsqSTHcsdKWwGZ3ndWmpnKMDmDHTBCPXBQbDBm1QX4KNKRQHMDTNNPKL\u0022\u00B7\u00B7Bxkvcr dmppbgwb\u00B7\u0022GJ2D4B8.614P\u0022\u00B7\u00B7MbwnfglwxgLmz cmdqqmrTxkjrmkjv\u00B7\u0022pfzd\u0022 ttjSjbbf\u00B7\u0022426\u0022 fjgQpksll\u00B7\u0022586\u0022 hqsDjnjbNqgg\u00B7\u002279\u0022 swd\u00B7\u002233:94\u0022 qrfz\u00B7\u0022rkh\u0022 nnhtsdkzmfVftwmmwbw\u00B7\u0022khtp\u0022 vvjfbrshnrWhqscqHnccVJS\u00B7\u00221\u0022 nk\u00B7\u00221\u0022\u00B7\u00B7Klvxfjdpgmkcbm nf\u00B7\u00222105064258901257c\u0022 bjfpTfmh\u00B7\u0022mnmgp/xx2\u0022 drjhtt\u00B7\u0022mbv3.34S28P\u0022 xmnfx\u00B7\u0022015\u0022 dnrjpl\u00B7\u0022783\u0022 svvnbWbgr\u00B7\u002290\u0022 pzn\u00B7\u00225:0\u0022 cshnzKjbcNTH\u00B7\u00224\u0022 htkdvtxss\u00B7\u0022535086\u0022 TXPpnsrrttRdh\u00B7\u0022phjf_mtjggqnp_9_t9\u0022 TQFsjbkdsDjfzmc\u00B7\u0022682788\u0022 WBTfxqfdsNdpfd\u00B7\u0022tr\u0022 QHZvvdrzqZrzlt\u00B7\u0022388c\u0022\u00B7\u00B7BzkpHTX\u00B7ptzrd://djtpgnnr-gdm7-5.chqjnggtxcnw.hbz/t6/n/g77/v0/s85/LNFcTLDTPwFs5rG45zQ5GcpTbPW51VgxS-gxLbBrX7Lp1_ZBpHqw1f1jkk7FVH68Kt05rqw71q5tDxmLK0dPK_MlpwGWDfRxDktFw4j.pc0?_fg_fvr\u00B7091\u0026bmt;_vr_dln\u00B70kq244\u0026npf;_pf_qj\u00B7nxxhgmjb-dgx1-4.vcjhbjhtqdzf.ncv\u0026zkx;_tg_kwp\u00B74zJPs9rxLb7H7jTqsLRtxCD\u0026rrl;jwr\u00B7skR7CK9xh7FmL4ZjJgZ8JcswKFsdsbXhRxC2v8T2Xnkvd4h8LSLlWdQdb6llSfFvDPtbzdKqCS36RXCtDdRcXMTrW7rgLlzbgHjwGSRjgLbfnTXwM6HmT3SrdT7qWJP9HLT9QxG6ZdNxKcllJQD7WCSmsQdstzWzrqTgTWZ9GpmcFmdltBX7S2Rrb3N0T1gbLbbjJTS5JgPcSNxlRKW1FDB7VJXrj3MlpL8zR1PxXXR2tsT6ZnClGtpwlwtlpSXzF9PtSH4jHPV6GFStSMFdPvZ0dmR5gN1vD1JlDjCmJpTtlZKprWTbZzN0FCCsCWxhzXCrH4LxR9MvkJHwLDF7Gsm4jnC5\u0026bcw;gxx\u00B721-3\u0026chn;_lt_rxw\u00B79C2pdx6LfVwGh9LB9KDJdl\u0026lzm;_jl_ql\u00B79mrrb\u0026xbh;_jk_ws\u00B775\u0026rqd;mt\u00B743_LXLnvSpHs_MGXGZtM6P_RZ3f3DJVBvwjDkKn0j9sSQM3KS\u0026dsx;kz\u00B75LFCZH01\u00B7/PshwFDJ\u00B7\u00B7PljvwwlKxmh xmgssFmqtxKtswx\u00B7\u0022cstc\u0022 cjmzhNzkrl\u00B7\u0022760-044\u0022 ZXDksrdZbgdnmnHpcvz\u00B7\u0022675-807615\u0022 DFKrwnnFdrcgdjPzslkxlv\u00B7\u00225006\u0022 VGQpmtnkjcSghrjssGttpl\u00B7\u0022707-284425\u0022 CGZxgqfzkqSkxvlbjKmjzrsjk\u00B7\u00225995\u0022\u00B7\u00B7Zdlpbbqjtddvbg kqzhj\u00B7\u00223-022\u0022/\u00B7\u00B7/HxjhswmXlsw\u00B7\u00B7/Dmkhtdjvmngqqg\u00B7\u00B7Hgvgkntcpkcgkh ww\u00B7\u00223087880308574554p\u0022 rqtpsnxbh\u00B7\u0022793589\u0022 fbzqqw\u00B7\u0022lzb3.3h343v\u0022 hgppCzjz\u00B7\u0022vbhhh/ql9\u0022 ssp\u00B7\u00226:6\u0022 QQRlrvxmndPjp\u00B7\u0022pzsj_qlvsscnr_7_c8\u0022 GFVgrlhtbLbmvkg\u00B7\u0022692823\u0022 DGKtwshdvjJjtvhhstbzWgk\u00B7\u00228:856,840:89.5,372:06.2,171:03.2\u0022 NJXksjglbzVbphmkfgkdRlvCqprcdlxlxWbptk\u00B7\u0022tvpb\u0022 KDZkdktghlKxshktthrjCsfmh\u00B7\u00221:122,024:36.6,698:71.9,996:34.4,334:39.9\u0022 zpxbk\u00B7\u0022208\u0022 kgzpwj\u00B7\u0022751\u0022 bbzmnRcbf\u00B7\u002243632/639\u0022 TLGlmkljzHslsm\u00B7\u0022pn\u0022 TNZcdvtncBbntg\u00B7\u0022249m\u0022\u00B7\u00B7HpccTXS\u00B7vdctg://qdbdqbfr-gls5-9.wptvrlzzwrdq.xhr/f4/d/g09/l5/m45/TQWbq6b-TbVwMtc2T7fdQq0gCPhvTw-HHRbBGTwPF6QCNRSS8cBkmsZs7bJ4Rbd9tDbhthVPZ0fGBRhfTCwXJdQcM6LsTvhPNtwWQcC.hm3?_mn_cdz\u00B7262\u0026nfj;_gh_xxg\u00B73th305\u0026cpl;_gj_nj\u00B7wzgkczvp-htk6-2.dhsxnxbbvrgx.jrx\u0026ndz;_ld_qts\u00B7S0S6pQvmrsJS8mPjmRwr3Pk\u0026wqf;wkl\u00B7ncD2MS8qc8RlT9VfGvD2GbkqTGlgmdZvNrL4r3P7Qmqgg2g4DDKdSpJtd1wvQgDcRCdkbzTkQc59HLTsKzXkZPSbL3hgJvpdzWtrGGMkgLdxgDKqR0JvD9WwbD2nLTC7RBX1QkX4JlRpDqlzQNX6RHPzcCjcjsDsltGnTKR4CwddKrxdkSH7X2Vvc3R8L7qlWgmkMTD1QnLfXNpnXSP3ZCB0HQZks8BbgM0tL4ZmBGW5xxV1NgThXwqgwlwsxKKpB6MkQW1tNDH8GXCzTKJhXcZ1qsD6dQ9cJ5KxLbCjVmZcmQJcgPVfLfJzQFDzKMbmgFGgW6QbC5DcmRHgVBJ2Dpj9ckQ8\u0026mkw;rdf\u00B749-5\u0026mhg;_wk_bdg\u00B74J7hdl2WnBxJl2JJ5NPWmt\u0026zvk;_lp_qv\u00B78bmwr\u0026nps;_lp_fh\u00B786\u0026jxf;nj\u00B735_NFP0BKLchBzPn1jtBGHkSMpN-dflLnZgVfjfW7Xm_sbBjb\u0026mmc;lj\u00B76XQGV2N8\u00B7/MqwgKTB\u00B7\u00B7XphkckcQldx kqtrmHhwkx\u00B7\u0022107-805\u0022 hrfknnnxx\u00B7\u002234837\u0022 SKLzqgxchJpxbmflwGhgjb\u00B7\u0022859-42393\u0022 NBGlwkfKzdfhlqXsslg\u00B7\u0022538-083992\u0022 LSGpkhpQmdpmqqRwljmfgw\u00B7\u00228653\u0022 HHBhxxzxftXclxhktNsdxg\u00B7\u0022602-948251\u0022 RQDrchdbdsSxjwkgsNgrskjpz\u00B7\u00224931\u0022\u00B7\u00B7Rmhlcfxvznqjsb wbdjc\u00B7\u00223-460\u0022/\u00B7\u00B7/MdthlrsFlhg\u00B7\u00B7/Xxpndlrwkszvnj\u00B7\u00B7/DvfzgjfshsHrg\u00B7\u00B7ShfdrnhlnwSnh pdjkrcrGkfsgdmbm\u00B7\u0022ddpq\u0022 pkdqqqngkdFxntwmcch\u00B7\u0022bbbm\u0022 wplhkgnnwfCgztlgFjdtQKL\u00B7\u00228\u0022 zz\u00B7\u00227\u0022\u00B7\u00B7Hclrsglrdtjvdm dz\u00B7\u00220249876929368562x\u0022 kklqDfff\u00B7\u0022lfrrz/gd8\u0022 hgrvbm\u00B7\u0022sd9p.76.0\u0022 gjvckRbxrngccLkvr\u00B7\u002299608\u0022 zfrkqQwqtKJZ\u00B7\u00222\u0022 kmlbcwlvl\u00B7\u002260594\u0022 FNFdzckjcpTjd\u00B7\u0022qrtq_bdgptcnp_lwlkm_p4\u0022 HJTbpgbdcBzqqmf\u00B7\u002230957\u0022\u00B7\u00B7QpftbShlsmpmRmlrmwkxxqbsj hqjxtbJxQcz\u00B7\u0022dhg:rrzm:qrzq:22797:8:vlzhb_hzkqgdt_bqzcqrkcndrkl:4080\u0022 jcdkf\u00B7\u00226\u0022/\u00B7\u00B7SzdnDJL\u00B7thxjp://tlxcgzvp-lxm8-6.wrgxrtfxwmjf.lcn/k8/z/l22/p2/d25/NRGnft-xvmDNhn6wGVDSMJrfRxnQHGWXCvqKzWJTcndG1tQkdQ0JjL3x39xXtD1NG2kNpld7HfMz_pWrhNXg3F80.nh0?ghcvjt\u00B72\u0026qrj;_qp_fdn\u00B7444\u0026tdv;_mt_nhb\u00B76wz661\u0026cfq;_kz_jb\u00B7jvtzkhtv-ppg4-3.qlzrhgqmbgdj.wsn\u0026xzt;_sl_pvb\u00B78Rps_mXStwcR5mVfdPldrJS\u0026qlt;fjs\u00B7brL5WN3bf3CxC0WcWrT3ScvtLDspzhWzHdT5z0C6Bqqqw7c1ZGSqWrGjl4mkVwDtQDgllhFmTKQfsM2dldBmQNB5xKPfd15nWVM6sxVdjVwkf6jwH7JmtWczgj3jnLCxkWQpZzfhDnJhFJn9RcM9WnT8JDtrJ2ktQR89J32pnNKkZpWbCjWsZzmzfw1qs4XfhM3rCXS7DSKcRLCwFNL5ZjGhLMKtXLhbVLGjVBJfTDwbQ2ZmfKSqDdW6CCKmVqLxV8LdZRKrh9PsqNBkQgDfLNXvDGLfjNLfnPrbdk6rNbb6JLPsnVHlCZVzDpj1PBM6SRftlTVpL0BxG9TqkMLcDCR9Gcl2bcR1\u0026ksp;cpc\u00B792-5\u0026zpb;_nt_jwc\u00B72V5jhw5WnQbHp8TW6CMRmz\u0026dbx;_rc_tp\u00B70svls\u0026hsf;_kh_gw\u00B707\u0026kkw;pc\u00B715_CCRMBPWQLLBlpBzTmctJgf3V_mSJDZ_5BXDmNNww7MNP9n\u0026ckn;sn\u00B79VTJV29P\u00B7/JtslFKM\u00B7\u00B7RsxhzsqZsmb zfvhqPvftsDwjnf\u00B7\u0022ngvp\u0022 rqfqpHfbzq\u00B7\u0022547-144\u0022 XTWjnpmJnpjnfkMgnld\u00B7\u0022707-60132\u0022 RBKnwvsSzbrjbdLbvzzqdv\u00B7\u00226894\u0022 BCLdjnmwKcwgldhSwvqg\u00B7\u002206394-92604\u0022 MMZnvrssmnHtvqncdFvvqw\u00B7\u0022623-98119\u0022 CPFxxcfdfgTfvnsfwNtjmlqtb\u00B7\u00226845\u0022\u00B7\u00B7Trpcchlxxjgnfr fbwkf\u00B7\u00229-513\u0022/\u00B7\u00B7/HdpwpdwWnqn\u00B7\u00B7/Vmkhdldrjzvtph\u00B7\u00B7/MbcjlmszpdZsz\u00B7\u00B7/Dcvxjv\u00B7\u00B7/QFP\u00B7\n", + "video_versions": [ + { + "type": 101, + "url": "https://cdn.esempio/q81g83s37b162509.mp4" + }, + { + "type": 102, + "url": "https://cdn.esempio/q81g83s37b162509.mp4" + }, + { + "type": 103, + "url": "https://cdn.esempio/q81g83s37b162509.mp4" + } + ], + "media_type": 2, + "visual_comment_reply_sticker_info": null, + "story_bloks_stickers": [ + { + "x": 6.0729408, + "y": 5.1558897, + "width": 0.15614899, + "height": 0.01749242, + "rotation": -4.0158431704, + "bloks_sticker": { + "sticker_data": { + "ig_mention": { + "full_name": "Jkft", + "username": "ltgb_llltjlq" + } + }, + "id": "dxtrs_nzwbbld_pf" + }, + "id": "77352604007748140" + }, + { + "x": 0.2172182, + "y": 4.0015787, + "width": 0.10810314, + "height": 0.01749242, + "rotation": -4.0158431704, + "bloks_sticker": { + "sticker_data": { + "ig_mention": { + "full_name": "Qlhxtpjrt Fdkxddh", + "username": "pvcbbkcm" + } + }, + "id": "dxtrs_nzwbbld_pf" + }, + "id": "84808036527115787" + }, + { + "x": 3.9762111, + "y": 8.20447074, + "width": 0.15614899, + "height": 0.01749242, + "rotation": -4.0158431704, + "bloks_sticker": { + "sticker_data": { + "ig_mention": { + "full_name": "Bwxrlz Fktpv", + "username": "vqkkjw_xlpmd" + } + }, + "id": "dxtrs_nzwbbld_pf" + }, + "id": "59768694316706370" + }, + { + "x": 0.505518, + "y": 9.11380160, + "width": 0.14413752, + "height": 0.01749242, + "rotation": -4.0158431704, + "bloks_sticker": { + "sticker_data": { + "ig_mention": { + "full_name": "Gdwjmhmqf Hbvkbkff", + "username": "dxvmxzdcwrv" + } + }, + "id": "dxtrs_nzwbbld_pf" + }, + "id": "79509364456252542" + }, + { + "x": 0.3920282, + "y": 9.52808700, + "width": 0.19218336, + "height": 0.01749242, + "rotation": -4.0158431704, + "bloks_sticker": { + "sticker_data": { + "ig_mention": { + "full_name": "Rtdrq ZvpBksknl", + "username": "mtdqqpdwvndhnbv" + } + }, + "id": "dxtrs_nzwbbld_pf" + }, + "id": "20963016712538816" + } + ], + "story_hashtags": null, + "story_locations": null, + "text_post_share_to_ig_story_stickers": null, + "story_countdowns": null, + "story_questions": null, + "story_sliders": null, + "link": null, + "reel_media_background": null, + "video_duration": 6.06, + "custom_list_info": null, + "is_story_edited": false, + "product_type": "story", + "reshared_story_media_author": null, + "story_app_attribution": null, + "audience": null, + "has_liked": false, + "viewer_count": null, + "viewers": [], + "can_reshare": true, + "user": { + "pk": "215081405", + "id": "215081405", + "is_ai_user": null, + "aigm_account_label_info": { + "is_enabled": false + }, + "instagram_pk": "215081405", + "interop_messaging_user_fbid": "068866421413642" + }, + "inventory_source": null, + "carousel_media_count": null, + "media_overlay_info": null, + "caption": null, + "accessibility_caption": null, + "organic_tracking_token": "xxx7xxxxxx7xxxx7xxxxxxxxx7xxxxx7xxxxx7xxxxx7xxxxx777xxxxx7xxxxx7xxxxxxx7xxxxxxxxxxx7xxxxxxxxxxxxxx77xxxxxxxxxxxxxxx7xxx7xxxxxxx7xxx7xxxxxxxxxxx7xxxxxxxxxxxxxxxxxxxxxx77x7xxxxx7xxx7xxx7xxxxxxx7xxx7xxx7xxxxxxxxxxx7xxxxxxxxxxx7xxxxxxxxxxx7xxxxxxx7x7xxxxxxxxxxxxx7xxx7xxxxxxx7xxxxxxxxx7x7xxxxxxx7xxx7xxx7x7x7xxxxxxxxxxxxxxx7xxx7xxxxxxxxxxx7xxxxxxxxxx\u00B7\u00B7", + "story_link_stickers": null, + "story_bloks_tappables": null, + "story_feed_media": null, + "story_cta": null, + "preview": null, + "is_paid_partnership": false, + "sponsor_tags": null, + "wearable_attribution_info": null, + "has_translation": false, + "boosted_status": null, + "can_see_insights_as_brand": false, + "boost_unavailable_identifier": null, + "boost_unavailable_reason": null, + "can_viewer_reshare": null, + "expiring_at": 1585126989, + "ig_media_sharing_disabled": false, + "sharing_friction_info": { + "should_have_sharing_friction": false, + "bloks_app_url": null + }, + "can_reply": true, + "__typename": "JGPZxtzzMglf" + } + ], + "unviewable_authors_infos": [], + "user": { + "__typename": "KGTWcdxBfxp", + "pk": "215081405", + "id": "215081405", + "interop_messaging_user_fbid": "068866421413642", + "username": "dwvqbrgcjf", + "profile_pic_url": "https://cdn.esempio/w8282f33028f3207.jpg", + "is_private": false, + "user_id": "215081405", + "is_verified": false, + "aigm_account_label_info": { + "attribution_label_text": null, + "is_auto_detected": false, + "is_enabled": false, + "is_manually_enabled": false + }, + "transparency_label": null, + "transparency_product": null, + "transparency_product_enabled": false + }, + "seen": null, + "reel_type": "highlight_reel", + "cover_media": { + "cropped_image_version": { + "url": "https://cdn.esempio/149tj2dp394sl651.jpg" + }, + "full_image_version": null + }, + "title": "Ggwgm \u00B7\u00B7", + "can_reshare": true, + "latest_reel_media": 1772734155, + "muted": null, + "__typename": "DWVDlmdMnfr" + }, + "cursor": null + } + ], + "page_info": { + "end_cursor": "vjbwtfskq:72329892632403300", + "has_next_page": true, + "has_previous_page": true, + "start_cursor": "mtmlprbdv:62008803167428297" + } + } + }, + "extensions": { + "server_metadata": { + "request_start_time_ms": 5400924782018, + "time_at_flush_ms": 9344386158027 + }, + "is_final": true + } + } +} \ No newline at end of file diff --git a/tests/Febe.Tests/campioni/instagram/000008-storia-vista.json b/tests/Febe.Tests/campioni/instagram/000008-storia-vista.json new file mode 100644 index 0000000..ffa5889 --- /dev/null +++ b/tests/Febe.Tests/campioni/instagram/000008-storia-vista.json @@ -0,0 +1,24 @@ +{ + "descrittore": { + "indirizzo": "https://sito.esempio/vgw3tpjgl1868811", + "host": "sito", + "stato": 200, + "tipo": "text/javascript", + "risorsa": "XHR", + "quando": "2026-10-21T17:39:03Z" + }, + "corpo": { + "data": { + "xdt_mark_story_reel_seen": { + "__typename": "HZKNvqbMqjwNgsxngwm" + } + }, + "extensions": { + "server_metadata": { + "request_start_time_ms": 9970054667900, + "time_at_flush_ms": 1713075827507 + }, + "is_final": true + } + } +} \ No newline at end of file diff --git a/tests/Febe.Tests/campioni/instagram/LEGGIMI.md b/tests/Febe.Tests/campioni/instagram/LEGGIMI.md new file mode 100644 index 0000000..a463bfc --- /dev/null +++ b/tests/Febe.Tests/campioni/instagram/LEGGIMI.md @@ -0,0 +1,57 @@ +# Campioni ripuliti di Instagram + +Risposte **reali** di Instagram, ripulite. Servono alle prove dei lettori di Instagram +(`tests/Febe.Tests/Collection/InstagramReaderTests.cs`) e al controllo dei campioni del repository +(`SanitizerTests`), e sono la fonte di `src/Febe.Core/Config/lettori.instagram.json` (regola 9: i lettori si +scrivono solo su campioni reali ripuliti). + +## Da dove vengono + +Da un file HAR esportato da Alberto dal suo browser il **21 ottobre 2026**, mentre navigava a mano su Instagram con +l'accesso fatto. Il pannello Rete era filtrato su **Fetch/XHR**: nel file ci sono solo le risposte che la pagina ha +chiesto da sé, nessun documento, nessuna immagine, nessuno script (per questo i bersagli e i dati incorporati nelle +pagine mancano: `docs/prove-dal-vivo.md`, parte A bis). + +Il percorso è quello di specifica §14.5: + +1. campioni grezzi scritti **fuori dal repository**, nel formato della sonda (descrittore + corpo), con le sole + risposte che interessano; i corpi più lunghi sono stati accorciati **sul lato grezzo**, prima della ripulitura, + tenendo l'ordine e le chiavi originali: + - pagina delle raccolte in evidenza: 2 raccolte × 4 contenuti, scelti in modo da avere una foto, un video con + l'audio e un video senza; + - pagina successiva delle raccolte: 1 raccolta × 3 contenuti; + - profili suggeriti: i primi 3; + - tutte le altre risposte intere; +2. ripulitura, in una sola esecuzione per tutti i file (i valori finti cambiano a ogni esecuzione): + `febe-sonda ripulisci --da --a tests/Febe.Tests/campioni/instagram`; +3. verifica: `febe-sonda verifica --grezzi --ripuliti tests/Febe.Tests/campioni/instagram` → + «Verifica superata». + +Da un nuovo file HAR i grezzi si ricavano con `febe-sonda da-har` (stesso formato, stessi nomi dei file), poi si +procede dal punto 2. + +## Che cosa resta e che cosa no + +Struttura, chiavi, booleani, `null`, dimensioni, durate, conteggi, codici di tipo e date restano come sono (elenco +`tools/Febe.Sonda/ripulitura.json`). Nomi, didascalie, identificativi, cursori e indirizzi sono valori finti della +stessa forma: valori uguali hanno lo stesso valore finto in tutti i file, quindi i collegamenti fra le risposte +restano. Gli indirizzi diventano `https://sito.esempio/…` o `https://cdn.esempio/…` con la sola estensione del file. +I valori sotto chiavi che sembrano chiavi segrete (`organic_tracking_token`, `rank_token` e simili) sono un +riempitivo neutro di `x` e `7` della stessa forma, perché gitleaks non li scambi per segreti. Le prove controllano +forme, dimensioni, date e conteggi, mai i valori. + +## I file + +| File | Operazione o indirizzo | Tipo | Che cosa contiene | +|---|---|---|---| +| `000001-promozioni` | `QuickPromotionSupportIGSchemaBatchFetchQuery` | `text/javascript` | promozioni dell'interfaccia: nessun contenuto né profilo (risposta estranea, ignorata) | +| `000002-ricerca-profili` | `PolarisSearchBoxRefetchableQuery` | `text/javascript` | profili trovati dalla casella di ricerca (5) | +| `000003-profili-suggeriti` | `PolarisProfileSuggestedUsersWithPreloadableQuery` | `text/javascript` | profili suggeriti, non seguiti (i primi 3) | +| `000004-commenti` | `/api/v1/media/…/comments/` | `application/json` | commenti di un post, con la didascalia | +| `000005-post-video` | `/api/v1/media/…/info/` | `application/json` | un post video (reel) con autore, didascalia e versioni | +| `000006-raccolta-in-evidenza` | `PolarisStoriesV3HighlightsPageQuery` | `text/javascript` | pagina delle raccolte in evidenza (2 × 4) e l'account collegato, con il solo identificativo | +| `000007-raccolta-pagina-successiva` | `PolarisStoriesV3HighlightsPagePaginationQuery` | `text/javascript` | pagina successiva delle raccolte (1 × 3) | +| `000008-storia-vista` | `PolarisStoriesV3SeenMutation` | `text/javascript` | la pagina segna una storia come vista: nessun dato (risposta estranea, ignorata) | + +Le operazioni GraphQL (le righe con un nome) arrivano con il tipo `text/javascript`, non `application/json`: la +cattura le legge lo stesso (`src/Febe.Core/Collection/DataResponses.cs`). diff --git a/tools/Febe.Sonda/HarImporter.cs b/tools/Febe.Sonda/HarImporter.cs new file mode 100644 index 0000000..e1953bb --- /dev/null +++ b/tools/Febe.Sonda/HarImporter.cs @@ -0,0 +1,365 @@ +using System.Globalization; +using System.Text; +using System.Text.Json; +using System.Text.RegularExpressions; +using Febe.Core.Abstractions; +using Febe.Core.Collection; + +namespace Febe.Sonda; + +/// What a HAR conversion did: counts only, never a value. +/// Entries of the HAR. +/// Site answers written because their body is data (). +/// Page documents that embed JSON: each of their blocks is written as a sample of its own. +/// Samples written from page documents: one per JSON block they embed, the way Febe's capture +/// hands the blocks to the readers. +/// Left out: not an answer of the site (CDN, other sites). +/// Left out: files, images, scripts, styles, or a type or status that is not data. +/// Left out: the HAR does not hold the body. +/// Left out: a body that is not valid JSON (for example one that starts with for (;;);). +/// Left out: page documents that embed no JSON. +public sealed record HarImportReport(int Entries, int DataResponses, int Documents, int DocumentBlocks, int OtherHosts, int NotData, int WithoutBody, int NotJson, int DocumentsWithoutData) +{ + public int Written => DataResponses + DocumentBlocks; +} + +/// +/// Converts a HAR exported from the browser's DevTools (Chrome, Edge) into the probe's RAW format (spec §14.5), so that +/// ripulisci and verifica work on it as on a recording of the probe: flat files NNNNNN-<kind>.json, +/// each {"descrittore":{indirizzo, host, stato, tipo, risorsa, quando}, "corpo": <body>}. +/// +/// +/// It keeps what Febe's own capture keeps (ResponseTap), in the same pieces: site answers whose body is data, and +/// the JSON blocks embedded in page documents, one sample per block with the document's descriptor +/// (). Everything else is left out. Headers, cookies, query strings and +/// request bodies are never copied: the address keeps scheme, host and path only, and of the request body only the +/// GraphQL operation name is read, to name the file, when it has the shape of a name in the site's code (never a path: +/// paths contain user names). +/// The output is still RAW (bodies hold other people's data): it must stay outside any repository. +/// +public static partial class HarImporter +{ + /// Request parameter that names the GraphQL operation of a POST (a fixed name in the site's code). + public const string OperationParameter = "fb_api_req_friendly_name"; + + private static readonly JsonDocumentOptions BodyOptions = new() { MaxDepth = 256 }; + + /// Converts into the new, empty folder . + /// A folder is inside a git repository, or the output folder is not empty. + /// The file is not a HAR. + public static HarImportReport Import(string harPath, string rawFolder, HostClassifier? hosts = null) + { + ArgumentException.ThrowIfNullOrWhiteSpace(harPath); + ArgumentException.ThrowIfNullOrWhiteSpace(rawFolder); + hosts ??= HostClassifier.Instagram; + var har = Path.GetFullPath(harPath); + if (!File.Exists(har)) + { + throw new FileNotFoundException($"Il file HAR non esiste: {har}", har); + } + + // The HAR holds cookies and other people's data, and so does the output: neither belongs in a repository. + RepositoryGuard.EnsureOutside(Path.GetDirectoryName(har)!); + var folder = Path.GetFullPath(rawFolder); + RepositoryGuard.EnsureOutside(folder); + if (Directory.Exists(folder) && Directory.EnumerateFileSystemEntries(folder).Any()) + { + throw new InvalidOperationException($"La cartella «{folder}» non è vuota: indica una cartella nuova, solo per questa conversione."); + } + + JsonDocument document; + try + { + using var stream = File.OpenRead(har); + document = JsonDocument.Parse(stream); + } + catch (JsonException ex) + { + throw new InvalidDataException($"{Path.GetFileName(har)}: non è un file HAR valido (riga {ex.LineNumber + 1}).", ex); + } + + using (document) + { + if (document.RootElement.ValueKind != JsonValueKind.Object + || !document.RootElement.TryGetProperty("log", out var log) || log.ValueKind != JsonValueKind.Object + || !log.TryGetProperty("entries", out var entries) || entries.ValueKind != JsonValueKind.Array) + { + throw new InvalidDataException($"{Path.GetFileName(har)}: non è un file HAR (manca «log.entries»)."); + } + + Directory.CreateDirectory(folder); + File.WriteAllText( + Path.Combine(folder, "LEGGIMI.txt"), + "Campioni GREZZI convertiti da un file HAR con «febe-sonda da-har»: contengono dati personali di Alberto e di altre persone.\n" + + "Non vanno nel repository e non si inviano: si ripuliscono con «febe-sonda ripulisci», si controllano con «febe-sonda verifica»\n" + + "e si cancellano, insieme al file HAR, quando lettori e mappa sono scritti (specifica §14.5).\n"); + + int count = 0, written = 0, data = 0, documents = 0, blocks = 0, otherHosts = 0, notData = 0, withoutBody = 0, notJson = 0, documentsWithoutData = 0; + foreach (var entry in entries.EnumerateArray()) + { + count++; + var outcome = ConvertEntry(entry, hosts, out var sample); + if (sample is not null) + { + // One block at a time: each is written and disposed before the next one is parsed. + var bodies = 0; + foreach (var body in sample.Bodies) + { + using (body) + { + written++; + Write(Path.Combine(folder, $"{written.ToString("000000", CultureInfo.InvariantCulture)}-{sample.Kind}.json"), sample, body); + } + + bodies++; + } + + if (outcome == EntryOutcome.Document) + { + blocks += bodies; + outcome = bodies > 0 ? EntryOutcome.Document : EntryOutcome.DocumentWithoutData; + } + } + + switch (outcome) + { + case EntryOutcome.Data: + data++; + break; + case EntryOutcome.Document: + documents++; + break; + case EntryOutcome.OtherHost: + otherHosts++; + break; + case EntryOutcome.WithoutBody: + withoutBody++; + break; + case EntryOutcome.NotJson: + notJson++; + break; + case EntryOutcome.DocumentWithoutData: + documentsWithoutData++; + break; + default: + notData++; + break; + } + } + + return new HarImportReport(count, data, documents, blocks, otherHosts, notData, withoutBody, notJson, documentsWithoutData); + } + } + + /// + /// The name of the GraphQL operation of a request, when it is one: a word of the site's code (letters and digits, + /// ending in Query, Mutation or Subscription, no run of three digits), the same for everyone. Otherwise null. + /// + public static string? OperationName(string? value) + { + var name = value?.Trim(); + return name is not null && OperationShape().IsMatch(name) && !DigitRun().IsMatch(name) ? name : null; + } + + private static EntryOutcome ConvertEntry(JsonElement entry, HostClassifier hosts, out RawSample? sample) + { + sample = null; + if (entry.ValueKind != JsonValueKind.Object + || !entry.TryGetProperty("request", out var request) || request.ValueKind != JsonValueKind.Object + || !entry.TryGetProperty("response", out var response) || response.ValueKind != JsonValueKind.Object) + { + return EntryOutcome.NotData; + } + + // Chrome's resource types, written as the browser's protocol names them (what ResponseTap sees). + var resource = Text(entry, "_resourceType")?.ToLowerInvariant() switch + { + "xhr" => "XHR", + "fetch" => "Fetch", + "document" => "Document", + _ => null, + }; + if (resource is null) + { + return EntryOutcome.NotData; + } + + var url = Text(request, "url"); + var host = hosts.Classify(url); + if (host != HostKind.Site) + { + return EntryOutcome.OtherHost; + } + + var status = response.TryGetProperty("status", out var s) && s.TryGetInt32(out var code) ? code : 0; + var content = response.TryGetProperty("content", out var c) && c.ValueKind == JsonValueKind.Object ? c : default; + var mime = (content.ValueKind == JsonValueKind.Object ? Text(content, "mimeType") : null)?.Split(';')[0].Trim().ToLowerInvariant() ?? string.Empty; + var isData = DataResponses.IsData(mime, resource) && status is >= 200 and < 600 && status != 204; + var isDocument = !isData && resource == "Document" && status is >= 200 and < 300 && DataResponses.IsPageDocument(mime, isMainFrameDocument: true); + if (!isData && !isDocument) + { + return EntryOutcome.NotData; + } + + var bytes = Body(content); + if (bytes is null) + { + return EntryOutcome.WithoutBody; + } + + var address = UrlSanitizer.Sanitize(url).Url; + var at = When(Text(entry, "startedDateTime")); + if (isDocument) + { + // Only the JSON the page embeds, one block per sample, as Febe's capture hands it to the readers: parsed + // while the samples are written (a document without any becomes DocumentWithoutData there). + sample = new RawSample("documento", address, host, status, mime, resource, at, DataResponses.EmbeddedJsonBlocks(Encoding.UTF8.GetString(bytes))); + return EntryOutcome.Document; + } + + JsonDocument body; + try + { + body = JsonDocument.Parse(bytes, BodyOptions); + } + catch (JsonException) + { + return EntryOutcome.NotJson; + } + + var kind = resource == "Document" ? "documento" : OperationName(Operation(request)) ?? "risposta"; + sample = new RawSample(kind, address, host, status, mime, resource, at, [body]); + return EntryOutcome.Data; + } + + /// The value of in a form-encoded request body; nothing else is read. + private static string? Operation(JsonElement request) + { + if (!request.TryGetProperty("postData", out var post) || post.ValueKind != JsonValueKind.Object) + { + return null; + } + + if (post.TryGetProperty("params", out var parameters) && parameters.ValueKind == JsonValueKind.Array) + { + foreach (var parameter in parameters.EnumerateArray()) + { + if (parameter.ValueKind == JsonValueKind.Object && Text(parameter, "name") == OperationParameter) + { + return Unescape(Text(parameter, "value")); + } + } + + return null; + } + + if ((Text(post, "mimeType") ?? string.Empty).Contains("x-www-form-urlencoded", StringComparison.OrdinalIgnoreCase) && Text(post, "text") is { } text) + { + foreach (var pair in text.Split('&')) + { + var equals = pair.IndexOf('=', StringComparison.Ordinal); + if (equals > 0 && Unescape(pair[..equals]) == OperationParameter) + { + return Unescape(pair[(equals + 1)..]); + } + } + } + + return null; + } + + private static string? Unescape(string? value) + { + if (value is null) + { + return null; + } + + try + { + return Uri.UnescapeDataString(value.Replace('+', ' ')); + } + catch (UriFormatException) + { + return null; + } + } + + private static byte[]? Body(JsonElement content) + { + if (content.ValueKind != JsonValueKind.Object || Text(content, "text") is not { Length: > 0 } text) + { + return null; + } + + if (!string.Equals(Text(content, "encoding"), "base64", StringComparison.OrdinalIgnoreCase)) + { + return Encoding.UTF8.GetBytes(text); + } + + try + { + return Convert.FromBase64String(text); + } + catch (FormatException) + { + return null; + } + } + + private static string? When(string? value) => + DateTimeOffset.TryParse(value, CultureInfo.InvariantCulture, DateTimeStyles.AssumeUniversal, out var at) + ? at.UtcDateTime.ToString("yyyy-MM-dd'T'HH:mm:ss'Z'", CultureInfo.InvariantCulture) + : null; + + private static string? Text(JsonElement element, string property) => + element.TryGetProperty(property, out var value) && value.ValueKind == JsonValueKind.String ? value.GetString() : null; + + /// The same descriptor the probe writes (), then the body as it arrived. + private static void Write(string path, RawSample sample, JsonDocument body) + { + using var stream = new FileStream(path, FileMode.CreateNew, FileAccess.Write); + using var writer = new Utf8JsonWriter(stream, new JsonWriterOptions { MaxDepth = 300 }); + writer.WriteStartObject(); + writer.WriteStartObject("descrittore"); + writer.WriteString("indirizzo", sample.Url); + writer.WriteString("host", sample.Host switch { HostKind.Site => "sito", HostKind.Cdn => "cdn", _ => "altro" }); + writer.WriteNumber("stato", sample.Status); + writer.WriteString("tipo", sample.MimeType); + writer.WriteString("risorsa", sample.ResourceType); + if (sample.At is { } at) + { + writer.WriteString("quando", at); + } + else + { + writer.WriteNull("quando"); + } + + writer.WriteEndObject(); + writer.WritePropertyName("corpo"); + body.RootElement.WriteTo(writer); + writer.WriteEndObject(); + } + + // A GraphQL operation name: an identifier of the site's code (e.g. a «...PageQuery»), never free text. + [GeneratedRegex("^[A-Za-z][A-Za-z0-9_]{1,96}(Query|Mutation|Subscription)$", RegexOptions.CultureInvariant)] + private static partial Regex OperationShape(); + + [GeneratedRegex("[0-9]{3}", RegexOptions.CultureInvariant)] + private static partial Regex DigitRun(); + + private enum EntryOutcome + { + Data, + Document, + OtherHost, + NotData, + WithoutBody, + NotJson, + DocumentWithoutData, + } + + /// What is written of one entry: its descriptor, and its body (a data answer) or the JSON blocks it embeds (a page document). + private sealed record RawSample(string Kind, string Url, HostKind Host, int Status, string MimeType, string ResourceType, string? At, IEnumerable Bodies); +} diff --git a/tools/Febe.Sonda/Program.cs b/tools/Febe.Sonda/Program.cs index 7082a16..f954dff 100644 --- a/tools/Febe.Sonda/Program.cs +++ b/tools/Febe.Sonda/Program.cs @@ -10,9 +10,11 @@ using Febe.Sonda; // [--sito --cdn ] (solo per provarla sul sito di prova) // febe-sonda ripulisci --da --a [--ammessi ] [--sito --cdn ] // febe-sonda verifica --grezzi --ripuliti [--ammessi ] +// febe-sonda da-har --har --a [--sito --cdn ] return args.Length == 0 ? Usage() : args[0] switch { "registra" => await RecordAsync(args[1..]), + "da-har" => FromHar(args[1..]), "ripulisci" => Sanitize(args[1..]), "verifica" => Verify(args[1..]), _ => Usage(), @@ -25,7 +27,11 @@ static int Usage() febe-sonda registra --cartella [--display :0 | --xvfb] [--porta 9333] [--chromium ] [--no-sandbox] febe-sonda ripulisci --da --a [--ammessi ] febe-sonda verifica --grezzi --ripuliti [--ammessi ] + febe-sonda da-har --har --a La sonda è passiva: apre il browser e registra ciò che la pagina riceve mentre navighi tu. Non compie gesti. + «da-har» converte nello stesso formato grezzo un file HAR esportato dagli strumenti per sviluppatori del browser: + tiene le sole risposte di dati del sito e i dati incorporati nelle pagine; mai intestazioni, cookie, parametri + degli indirizzi o corpi delle richieste. Poi si usano «ripulisci» e «verifica» come per la sonda. """); return 2; } @@ -109,6 +115,40 @@ static async Task RecordAsync(string[] args) } } +static int FromHar(string[] args) +{ + var har = Option(args, "--har"); + var to = Option(args, "--a"); + if (string.IsNullOrWhiteSpace(har) || string.IsNullOrWhiteSpace(to)) + { + Console.Error.WriteLine("Indicare --har e --a ."); + return 2; + } + + HarImportReport report; + try + { + report = HarImporter.Import(har, to, Hosts(args)); + } + catch (Exception ex) when (ex is InvalidOperationException or InvalidDataException or FileNotFoundException) + { + Console.Error.WriteLine(ex.Message); + return 3; + } + + // Counts only: what the answers contain stays on this machine. + Console.WriteLine($"Lette {report.Entries} voci del file HAR; scritti {report.Written} campioni grezzi: {report.DataResponses} risposte di dati del sito, {report.DocumentBlocks} blocchi di dati incorporati in {report.Documents} pagine."); + Console.WriteLine($"Lasciate fuori: {report.OtherHosts} di altri indirizzi (CDN, altri siti), {report.NotData} che non sono dati (file, immagini, script...), {report.WithoutBody} senza corpo, {report.NotJson} non JSON, {report.DocumentsWithoutData} pagine senza dati incorporati."); + if (report.Written == 0 && report.WithoutBody > 0) + { + Console.WriteLine("Il file HAR non contiene i corpi delle risposte: esportalo di nuovo dal pannello Rete con le risposte incluse."); + } + + Console.WriteLine($"Campioni grezzi in: {Path.GetFullPath(to)}"); + Console.WriteLine("Ora: febe-sonda ripulisci --da --a , poi febe-sonda verifica."); + return report.Written > 0 ? 0 : 1; +} + static int Sanitize(string[] args) { var from = Option(args, "--da"); diff --git a/tools/Febe.Sonda/SampleSanitizer.cs b/tools/Febe.Sonda/SampleSanitizer.cs index 4e21712..e342edb 100644 --- a/tools/Febe.Sonda/SampleSanitizer.cs +++ b/tools/Febe.Sonda/SampleSanitizer.cs @@ -21,7 +21,7 @@ public sealed record SanitizeReport(int Files, int Lines, int ReplacedStrings, i /// sensitive run of any raw sample (it is drawn again). Fake letters are consonants only, so they cannot spell the /// words of a caption. The browser profile folder of the probe is never read. /// -public sealed class SampleSanitizer +public sealed partial class SampleSanitizer { /// The probe's browser profile: holds the session, never part of the samples. public const string BrowserProfileFolder = "profilo-browser"; @@ -188,12 +188,26 @@ public sealed class SampleSanitizer } _strings++; - return JsonValue.Create(Fake(text, "s")); + return JsonValue.Create(LooksLikeSecretKey(key) ? Filler(text) : Fake(text, "s")); default: return JsonValue.Create(element); } } + /// + /// True for the keys under which a site keeps tokens and keys of its own (Instagram: «organic_tracking_token», + /// «rank_token», «client_cache_key»). Their fakes would look like real secrets to a secret scanner (gitleaks in the + /// CI): they get a neutral filler of the same shape instead. + /// + internal static bool LooksLikeSecretKey(string? key) => key is not null && SecretKey().IsMatch(key); + + /// Letters become «x», digits «7», symbols «·»: the shape stays, nothing of the value and no entropy. + private static string Filler(string text) => + new([.. text.Select(c => char.IsLetter(c) ? 'x' : char.IsDigit(c) ? '7' : char.IsSurrogate(c) || char.IsSymbol(c) ? '·' : c)]); + + [System.Text.RegularExpressions.GeneratedRegex("token|secret|passw|credential|cookie|csrf|session|signature|auth|key", System.Text.RegularExpressions.RegexOptions.IgnoreCase | System.Text.RegularExpressions.RegexOptions.CultureInvariant)] + private static partial System.Text.RegularExpressions.Regex SecretKey(); + private string FakeKey(string key) { _keys++; diff --git a/tools/Febe.Sonda/ripulitura.json b/tools/Febe.Sonda/ripulitura.json index 13d8c9a..b3349c8 100644 --- a/tools/Febe.Sonda/ripulitura.json +++ b/tools/Febe.Sonda/ripulitura.json @@ -18,8 +18,8 @@ "keys": ["type", "*_type", "status", "tipo", "stato", "risorsa", "host", "role", "tag", "evento"] }, "date": { - "note": "Date: si tengono i numeri e i testi che hanno la forma di una data. taken_at è uno degli indizi di §6.4.", - "keys": ["taken_at", "*_at", "pubblicato", "scade", "ultima_storia", "quando"] + "note": "Date: si tengono i numeri e i testi che hanno la forma di una data. taken_at è uno degli indizi di §6.4; latest_reel_media è la data dell'ultima storia di un profilo (campioni del 21/10/2026).", + "keys": ["taken_at", "*_at", "latest_reel_media", "pubblicato", "scade", "ultima_storia", "quando"] } } } diff --git a/tools/bersagli/LEGGIMI.md b/tools/bersagli/LEGGIMI.md new file mode 100644 index 0000000..3aaa06a --- /dev/null +++ b/tools/bersagli/LEGGIMI.md @@ -0,0 +1,33 @@ +# Raccolta dei bersagli dal browser di tutti i giorni + +`raccogli-bersagli.js` serve a compilare i **bersagli** di `src/Febe.Core/Config/bersagli.instagram.json` (ipotesi +H11): l'anello delle storie, la zona «avanti» e la X del visualizzatore, le schede del profilo, le raccolte in evidenza. +Si usa come spiegato in `docs/prove-dal-vivo.md`, parte **A bis**. + +## Come si usa + +1. Nel browser con cui navighi di solito, già entrato nel sito, apri gli strumenti per sviluppatori (F12) e la scheda + **Console**. +2. Incolla tutto il contenuto di `raccogli-bersagli.js` e premi Invio. Compare «Febe: raccolta dei bersagli attiva». + Se la pagina si ricarica del tutto, la raccolta si perde: incollalo di nuovo. +3. Naviga e clicca come al solito. A ogni clic la Console scrive «Febe: clic N registrato». +4. Alla fine scrivi `febeBersagli()` nella Console: copia negli appunti i clic registrati (se la copia non riesce, li + scrive nella Console e li copi da lì). + +## Che cosa fa e che cosa non fa + +- **Sola lettura.** Aggiunge un solo ascoltatore dei clic, che non blocca e non cambia il clic, e legge attributi. + Non modifica la pagina, non manda nulla a nessuno, non legge cookie né le memorie del browser. I dati restano nella + memoria della scheda finché non chiami `febeBersagli()`. +- Per ogni clic registra la forma dell'indirizzo prima e circa 1,5 secondi dopo, e del comando cliccato (il più vicino + fra collegamento, pulsante, elemento con un ruolo o con `tabindex`): elemento, ruolo, `aria-label`, `alt`, `title`, il + testo (solo per pulsanti, collegamenti, schede e simili), il **nome accessibile calcolato come lo calcola Febe** + (`src/Febe.Browser/Targets/TargetResolver.cs`), se il nome viene da un'icona `svg` con `aria-label`, la forma del + collegamento, e quanti elementi visibili hanno lo stesso ruolo e lo stesso nome (con la posizione di quello cliccato). +- La voce `perLaMappa` è già nella forma dei campi `role`, `name`, `href` e `index` della mappa. +- **Nomi.** Negli indirizzi restano solo le parole fisse (`stories`, `highlights`, `p`, `reel`, `reels`, `tagged`, + `following`, `followers`, `explore`); ogni altro pezzo diventa ``. Nei testi registrati, i nomi visti negli + indirizzi e ogni `@parola` diventano `NOME`. I nomi scritti per esteso (per esempio «Mario Rossi») **non** si + riconoscono: prima di inviare il testo, sostituisci a mano con `NOME` ogni nome di persona rimasto. +- Un nome utente che è anche una parola dell'interfaccia può far diventare `NOME` anche quella parola: va bene così, + meglio un nome di comando in meno che un nome di persona in più. diff --git a/tools/bersagli/raccogli-bersagli.js b/tools/bersagli/raccogli-bersagli.js new file mode 100644 index 0000000..b68e47e --- /dev/null +++ b/tools/bersagli/raccogli-bersagli.js @@ -0,0 +1,258 @@ +// Febe: targets from the everyday browser (docs/prove-dal-vivo.md, part «A bis»; hypothesis H11). +// +// Paste it in the Console of the browser's DevTools, with the site open and already logged in, then browse by hand. +// For every click it records the shape of the address before and about 1.5 s after, and the attributes of the clicked +// command that Febe's target map uses (src/Febe.Core/Config/bersagli..json): role, accessible name computed as +// src/Febe.Browser/Targets/TargetResolver.cs computes it, link shape. At the end, febeBersagli() copies the records. +// +// READ-ONLY with respect to the page: one capturing click listener that never blocks or changes the click, and +// attribute reads. It never changes the DOM, never sends anything anywhere, never reads cookies or the browser's +// storage. Records stay in this tab's memory; reloading the page drops them (paste it again after a reload). +// Address segments that are not fixed words become «»; user names seen in the addresses and @words become «NOME». +(() => { + 'use strict'; + if (typeof globalThis.febeBersagli === 'function') { + console.log('Febe: la raccolta dei bersagli è già attiva. febeBersagli() copia ciò che è stato registrato.'); + return; + } + + const FIXED = new Set(['stories', 'highlights', 'p', 'reel', 'reels', 'tagged', 'following', 'followers', 'explore']); + const MAX_TEXT = 80; + const records = []; + const names = new Set(); + + // Same as TargetResolver.cs: collapsed whitespace. + const clean = (s) => (s || '').replace(/\s+/g, ' ').trim(); + + // The shape of a path: fixed words stay, every other segment becomes «». The segments that are not fixed words + // are kept aside (in memory only) to mask them in the recorded texts. + const shapeOf = (path) => { + if (typeof path !== 'string') return null; + return path.split('/').map((segment) => { + if (segment === '' || FIXED.has(segment.toLowerCase())) return segment; + let decoded = segment; + try { decoded = decodeURIComponent(segment); } catch { /* keep it as it is */ } + if (decoded.length >= 2) names.add(decoded.toLowerCase()); + return ''; + }).join('/'); + }; + + // Same as TargetResolver.cs roleOf: explicit role first, then the implicit role of the tag. + const roleOf = (el) => { + const explicit = clean(el.getAttribute('role')).split(' ')[0]; + if (explicit) return explicit.toLowerCase(); + const tag = el.tagName.toLowerCase(); + const type = (el.getAttribute('type') || '').toLowerCase(); + switch (tag) { + case 'a': case 'area': return el.hasAttribute('href') ? 'link' : ''; + case 'button': return 'button'; + case 'input': + if (['button', 'submit', 'reset', 'image'].includes(type)) return 'button'; + if (type === 'checkbox') return 'checkbox'; + if (type === 'radio') return 'radio'; + if (type === 'search') return 'searchbox'; + if (['', 'text', 'email', 'tel', 'url', 'password'].includes(type)) return 'textbox'; + return ''; + case 'textarea': return 'textbox'; + case 'select': return 'combobox'; + case 'img': return el.getAttribute('alt') === '' ? 'presentation' : 'img'; + case 'h1': case 'h2': case 'h3': case 'h4': case 'h5': case 'h6': return 'heading'; + case 'nav': return 'navigation'; + case 'main': return 'main'; + case 'dialog': return 'dialog'; + case 'article': return 'article'; + case 'ul': case 'ol': return 'list'; + case 'li': return 'listitem'; + case 'section': return (el.hasAttribute('aria-label') || el.hasAttribute('aria-labelledby')) ? 'region' : ''; + default: return ''; + } + }; + + // Same as TargetResolver.cs textOf: a child's aria-label stands for its subtree, aria-hidden children are skipped. + const textOf = (node, depth) => { + if (depth > 25) return ''; + let out = ''; + for (const child of node.childNodes) { + if (child.nodeType === 3) { out += child.nodeValue + ' '; continue; } + if (child.nodeType !== 1) continue; + if (child.getAttribute('aria-hidden') === 'true') continue; + const label = clean(child.getAttribute('aria-label')); + if (label) { out += label + ' '; continue; } + const tag = child.tagName.toLowerCase(); + if (tag === 'img') { out += (child.getAttribute('alt') || '') + ' '; continue; } + if (tag === 'script' || tag === 'style' || tag === 'template') continue; + out += textOf(child, depth + 1) + ' '; + } + return out; + }; + + // Roles named from their content (TargetResolver.cs fromContent): only these get their text recorded. + const fromContent = new Set(['button', 'link', 'tab', 'menuitem', 'heading', 'cell', 'gridcell', 'option', + 'checkbox', 'radio', 'switch', 'listitem', 'treeitem', 'columnheader', 'rowheader', 'tooltip']); + + // Same as TargetResolver.cs nameOf: the accessible name the «name» field of the map is matched against. + const nameOf = (el, role) => { + const ids = clean(el.getAttribute('aria-labelledby')); + if (ids) { + const joined = clean(ids.split(' ').map((id) => document.getElementById(id)).filter(Boolean).map((e) => e.textContent).join(' ')); + if (joined) return joined; + } + const aria = clean(el.getAttribute('aria-label')); + if (aria) return aria; + const tag = el.tagName.toLowerCase(); + const type = (el.getAttribute('type') || '').toLowerCase(); + if (tag === 'img' || (tag === 'input' && type === 'image')) { + const alt = clean(el.getAttribute('alt')); + if (alt) return alt; + } + if (tag === 'input' && ['button', 'submit', 'reset'].includes(type)) { + const label = clean(el.getAttribute('value')); + if (label) return label; + } + if (fromContent.has(role)) { + const text = clean(textOf(el, 0)); + if (text) return text; + } + return clean(el.getAttribute('title') || el.getAttribute('placeholder')); + }; + + const visible = (el) => { + const r = el.getBoundingClientRect(); + if (!(r.width > 0 && r.height > 0)) return false; + return typeof el.checkVisibility === 'function' ? el.checkVisibility({ opacityProperty: true, visibilityProperty: true }) : true; + }; + + // Like ProbeRecorder.cs: the path of a link and whether it stays on the site, never the host of another site. + const linkOf = (el) => { + const href = el.getAttribute('href'); + if (!href) return null; + try { + const u = new URL(href, document.baseURI); + return { sito: u.origin === location.origin, path: shapeOf(u.pathname) }; + } catch { return null; } + }; + + const escapeRegex = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); + + // User names seen in any recorded address, and every @word, become «NOME»; texts are cut to 80 characters. + const mask = (text) => { + if (text === null || text === undefined) return null; + let out = clean(String(text)).replace(/@[\p{L}\p{N}._]+/gu, 'NOME'); + for (const name of names) { + out = out.replace(new RegExp('(^|[^\\p{L}\\p{N}_])' + escapeRegex(name) + '(?![\\p{L}\\p{N}_])', 'giu'), '$1NOME'); + } + return out.length > MAX_TEXT ? out.slice(0, MAX_TEXT) : out; + }; + + const describe = (el, inner) => { + const role = roleOf(el); + const name = nameOf(el, role); + const svg = el.querySelector('svg[aria-label]'); + const svgLabel = svg ? clean(svg.getAttribute('aria-label')) : ''; + let same = null; + let position = null; + if (role) { + // How many visible elements share role and name, and which one this is: the «index» field of the map. + same = 0; + for (const other of document.querySelectorAll('*')) { + if (roleOf(other) !== role || nameOf(other, role) !== name || !visible(other)) continue; + if (other === el) position = same; + same++; + } + } + return { + tag: el.tagName.toLowerCase(), + interno: inner && inner !== el && inner.tagName ? inner.tagName.toLowerCase() : null, + roleAttributo: el.getAttribute('role'), + ruolo: role, + ariaLabel: el.getAttribute('aria-label'), + alt: el.getAttribute('alt'), + titolo: el.getAttribute('title'), + testo: fromContent.has(role) ? clean(el.textContent) : null, + nome: name, + svg: svgLabel || null, + nomeDaSvg: !!svgLabel && !clean(el.getAttribute('aria-label')) && name === clean(textOf(el, 0)) && name.includes(svgLabel), + collegamento: linkOf(el), + tabindex: el.getAttribute('tabindex'), + uguali: same, + posizione: position, + }; + }; + + const onClick = (event) => { + try { + const inner = event.target && event.target.nodeType === 1 ? event.target : null; + const el = inner && inner.closest ? inner.closest('a[href], button, [role], [tabindex]') : null; + const record = { + n: records.length + 1, + ora: new Date().toTimeString().slice(0, 8), + prima: shapeOf(location.pathname), + dopo: null, + elemento: el ? describe(el, inner) : null, + }; + records.push(record); + setTimeout(() => { + try { record.dopo = shapeOf(location.pathname); } catch { /* the record stays without it */ } + }, 1500); + console.log(`Febe: clic ${record.n} registrato${el ? '' : ' (nessun comando sotto il puntatore)'}.`); + } catch { + // Never disturb the page: a click that cannot be described is just not recorded. + } + }; + + document.addEventListener('click', onClick, { capture: true, passive: true }); + + // The records, masked, ready for bersagli..json: «» becomes «*» (one segment), «NOME» becomes «.+». + const output = () => records.map((r) => { + const e = r.elemento; + if (!e) return { n: r.n, ora: r.ora, prima: r.prima, dopo: r.dopo, elemento: null }; + const element = { + ...e, + roleAttributo: mask(e.roleAttributo), + ariaLabel: mask(e.ariaLabel), + alt: mask(e.alt), + titolo: mask(e.titolo), + testo: mask(e.testo), + nome: mask(e.nome), + svg: mask(e.svg), + }; + const name = element.nome ? '^' + escapeRegex(element.nome).replace(/NOME/g, '.+') + '$' : ''; + return { + n: r.n, + ora: r.ora, + prima: r.prima, + dopo: r.dopo, + elemento: element, + perLaMappa: { + role: e.ruolo, + name, + href: e.collegamento && e.collegamento.sito ? e.collegamento.path.replace(//g, '*') : '', + index: e.posizione, + }, + }; + }); + + // copy() is a utility of the DevTools Console, there while the Console runs a command: kept from the paste too. + const copier = typeof copy === 'function' ? copy : null; + globalThis.febeBersagli = () => { + const text = JSON.stringify(output(), null, 2); + let copied = true; + if (typeof copy === 'function') { + copy(text); + } else if (copier) { + copier(text); + } else { + copied = false; + } + + if (copied) { + console.log(`Febe: copiati negli appunti ${records.length} clic registrati. Incollali in un file di testo e controlla che non resti nessun nome.`); + } else { + console.log(text); + console.log(`Febe: ${records.length} clic registrati, scritti qui sopra: copiali da qui.`); + } + return records.length; + }; + + console.log('Febe: raccolta dei bersagli attiva (sola lettura). Naviga come al solito; alla fine scrivi febeBersagli().'); +})();