-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asking for n posts, but only getting 1 latest post #91
Comments
let mostrec be the variable which take a integer input, saying post number from most recent row = (mostrec//3) + 1 #(this will select the row in which post is on a profile) [ex, you chose to open last 5th post, row = (5//3) +1 = 1+1 = 2, Column = (5%3) = 2] so that post is in 2nd column of 2nd row #use is row and column fetched to open that particular post im = '/html/body/div[1]/section/main/div/div[3]/article/div[1]/div/div['+str(row)+']/div['+str(column)+']/a/div/div[2]' #using selenium to open that post Use : https://github.com/Ayushmanglani/ayush-projects/tree/master/python_projects/InstaBot |
hey, did you fix this issue? I've read the mostrec as said by Ayushmanglani but is it work? |
Hey, no i was not able to fix the issue :( |
yeah got the same problem. Hope you can fix it soon! If I do posts instead of posts_full, it does grab all the posts specified by 'n' but it doesn't grab the full caption text unforutnately |
If you are still facing the issue, let me tell you my solution: If you update the _get_posts_full method as follows:
|
It works! thank you! However, the function for fetch_likers is not working.
it works! thank you! However, the function fetch_likers is not working! |
Thx this is working but the caption is not correct. |
Calling the example, on 5, 10, 20, 100 posts, but only getting the latest post in the output.
But it still says 5/5 or 20/20 on the loading bar. Have not changed any code!
Any help or insight is appreciated :)
The text was updated successfully, but these errors were encountered: