GithubHelp home page GithubHelp logo

Comments (4)

oorestisime avatar oorestisime commented on June 19, 2024

This plugin like any of gatsby runs on build time so not sure what you mean by dynamic. You could retrieve the username from an environment variable but i guess what you are looking for is changing even after gatsby develop or gatsby build?

from gatsby-source-instagram.

eelkeh avatar eelkeh commented on June 19, 2024

By dynamic I mean something like retrieving the username from a page query! So let's say for example sake I want to generate different pages (at build time) which include a bunch of instagram pictures from different accounts, one account per page.

from gatsby-source-instagram.

oorestisime avatar oorestisime commented on June 19, 2024

Right so if you take a look at the example https://github.com/oorestisime/gatsby-source-instagram/blob/master/example/gatsby-config.js#L16-L46 you can see you can define this plugin multiple times. You can do one for each username until i find some time to do #22
Then in your page query you can do something like https://github.com/oorestisime/gatsby-source-instagram/blob/master/example/src/pages/scraping.js#L18 to retrieve only the posts of the username you wish.

Let me know if this is any help.

from gatsby-source-instagram.

oorestisime avatar oorestisime commented on June 19, 2024

Closing this, if you think there's something to do in the plugin feel free to reopen :)

from gatsby-source-instagram.

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.