Comments (3)
@hieven not sure man, I like both of them, but not really sure if this is a case for feed. Feed was meant to be a class which will iterate until there is not other data to iterate. In this case getRankedItems
will return static amount of data which will never have a cursor you can iterate with. locationFeed.get({ ranked: true })
seems to be ok, but only if you merge data from first cursor and ranked data together (and set property ranked
on media instance, which lead to changing more code and not get exception where normal data is not available). So I believe neither of these two solutions are perfect.
I think maybe better solution would be to simple define static method Location.getRankedMedia(session, locationId)
.
from instagram-private-api.
yes, you're right. static amount for a feed might me confusing for users
so I will make Location.getRankedMedia(session, locationId)
which simply is a copy of LocationMediaFeed.prototype.get
Thanks for your opinion.
from instagram-private-api.
@hieven thank you very much! looking forward to see your commit :)
from instagram-private-api.
Related Issues (20)
- how to set userAgent ?
- Yazaan.alrbadwi HOT 1
- Timeline not working and more questions
- Cookie login doesn't works HOT 3
- sh
- Device ID and Android 11 HOT 2
- Get the following list of a public user HOT 1
- Example of capturing comments and likes on a post? HOT 3
- Login by email HOT 3
- How to get latest Instagram app constants?
- Get all followers of a channel using followersFeed.items$.subscribe() HOT 1
- Sometimes the code dont send a comment on post
- create account or sign up cannot be process
- From story add to highlight reel HOT 1
- A HOT 2
- Error 400 Bad Request; when posting a photo HOT 2
- The way to get user presence of all the followers
- using existing token HOT 2
- 400 Bad Request; You'll need to update Instagram to the latest version before you can use the app. HOT 10
- How to develop your own color picker tool
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instagram-private-api.