GithubHelp home page GithubHelp logo

Comments (2)

riad-azz avatar riad-azz commented on August 17, 2024 2

Hey there! I'm glad you appreciate the project, even though it's not my proudest I made to to learn javascript and Next.js.

Regarding your question on discovering the GraphQL API and the requestData object, it all comes down to testing and exploring using the developer tools. Here's the breakdown of the process:

  1. Open the developer tools with F12 or Ctrl + Shift + I and navigate to the Networks tab.
  2. Check each request and its response by either reading it directly or searching for keywords of what you are looking for like "posts," "feed," or "media."
  3. The specific endpoint used in the project was found by toggling the Responsive Design Mode in the developer tools which goes to mobile mode and this request popped in my network tab.
  4. Regarding the requestData, I just copied the exact structure from the network tab and began experimenting by tweaking and modifying its parameters.
  5. Determining the data types was done using transform tools website were I just pasted the JSON and got the type.

In summary, continuous testing and exploration in the network tab or script elements are key. Sometimes, data is directly inserted into the script elements without a separate fetch.

Thank you for your kind words about the project! If you have further questions, feel free to ask.

from instagram-video-downloader.

GregoryZeng avatar GregoryZeng commented on August 17, 2024

Hey there! I'm glad you appreciate the project, even though it's not my proudest I made to to learn javascript and Next.js.

Regarding your question on discovering the GraphQL API and the requestData object, it all comes down to testing and exploring using the developer tools. Here's the breakdown of the process:

  1. Open the developer tools with F12 or Ctrl + Shift + I and navigate to the Networks tab.
  2. Check each request and its response by either reading it directly or searching for keywords of what you are looking for like "posts," "feed," or "media."
  3. The specific endpoint used in the project was found by toggling the Responsive Design Mode in the developer tools which goes to mobile mode and this request popped in my network tab.
  4. Regarding the requestData, I just copied the exact structure from the network tab and began experimenting by tweaking and modifying its parameters.
  5. Determining the data types was done using transform tools website were I just pasted the JSON and got the type.

In summary, continuous testing and exploration in the network tab or script elements are key. Sometimes, data is directly inserted into the script elements without a separate fetch.

Thank you for your kind words about the project! If you have further questions, feel free to ask.

Thank you for your patience!

from instagram-video-downloader.

Related Issues (14)

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.