Code Monkey home page Code Monkey logo

Comments (5)

dumbmoron avatar dumbmoron commented on August 25, 2024 2

i want to help fix this issue , just before i start i'm studying the code of Instagram module, this is how it's setup right ?

@aimen08 looks about right to me, except "Return post data" comes after extractOld/NewPost

from cobalt.

ihatespawn avatar ihatespawn commented on August 25, 2024

only affects the main instance, try another instance
https://instances.hyper.lol/

from cobalt.

wukko avatar wukko commented on August 25, 2024

only affects the main instance

nope, it's a global issue that affects all instances with either big enough traffic or datacenter ips. it's an unfixable issue atm

from cobalt.

aimen08 avatar aimen08 commented on August 25, 2024

Hey @wukko i want to help fix this issue , just before i start i'm studying the code of Instagram module, this is how it's setup right ?

graph TD
    A[Start: Module called with object] --> B{Check input}
    B -->|postId present| C[Call getPost]
    B -->|username and storyId present| D[Call getStory]
    B -->|Neither condition met| E[Return ErrorUnsupported]

    C --> F[Attempt to fetch post data]
    F --> G{Data fetched successfully?}
    G -->|Yes| H[Extract post data]
    G -->|No| I[Return ErrorCouldntFetch]
    H --> J[Return post data]

    D --> K[Convert username to userId]
    K --> L[Fetch story data]
    L --> M{Story data found?}
    M -->|Yes| N[Extract story data]
    M -->|No| O[Return ErrorEmptyDownload]
    N --> P[Return story data]

    subgraph "getPost function"
    F --> F1[Try mobile API with token]
    F1 --> F2[Try mobile API without token]
    F2 --> F3[Try HTML embed]
    F3 --> F4[Try web app GraphQL API]
    end

    subgraph "Data extraction"
    H --> H1{Is it an old or new post format?}
    H1 -->|Old| H2[Extract using extractOldPost]
    H1 -->|New| H3[Extract using extractNewPost]
    end
Loading

Ps : i'm seeing few telegram bots that are able to download from instagram , so i think we might be missing something

from cobalt.

wukko avatar wukko commented on August 25, 2024

duplicate of #572

from cobalt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.