Skip to content
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

Implement a method for uploading videos #60

Open
skiesx opened this issue Sep 23, 2020 · 13 comments
Open

Implement a method for uploading videos #60

skiesx opened this issue Sep 23, 2020 · 13 comments

Comments

@skiesx
Copy link

skiesx commented Sep 23, 2020

Hi, @stanvanrooy )
Do you plan to implement video uploading?

@stanvanrooy stanvanrooy changed the title Video upload Implement a method for uploading videos Sep 23, 2020
@stanvanrooy
Copy link
Owner

Will be next up on the to-do list. That means it should be published to PyPI in 1-2 days.

@stanvanrooy stanvanrooy self-assigned this Sep 23, 2020
@stanvanrooy
Copy link
Owner

Working on it :) If you watch this issue, you'll be notified as soon as it's published.

@stanvanrooy
Copy link
Owner

Sorry for the delay. I have a working version now, for videos of a small size. I'm still working on uploading longer/larger videos in phases.

@skiesx
Copy link
Author

skiesx commented Oct 16, 2020

Sorry for the delay. I have a working version now, for videos of a small size. I'm still working on uploading longer/larger videos in phases.

thx for this update
do you have an example code for posting a video?
and can you tell more about the small size? what are the limits...

@stanvanrooy
Copy link
Owner

The method I had already implemented will be deprecated by ig, so I'll discard that work.

I've started work on segmented video uploads, should be ready soon.

Using it will be the same as the other methods.

@stanvanrooy
Copy link
Owner

Possibly, but the flow for uploading a video in segments is pretty simple, but for some reason, ig doesn't accept the first request to the /media/rupload_igvideo/{uuid4}?segmented=true&phase=start endpoint.

It always returns a 404. I'll push my code and the requests that need to be sent to a branch tonight.

@stanvanrooy
Copy link
Owner

Well, I found out what triggered the 404... the upload url is https://i.instagram.com/rupload_igvideo/ and not https://i.instagram.com/api/v1/rupload_igvideo/ :)

@kn0wm4d
Copy link

kn0wm4d commented Oct 21, 2020

Well, I found out what triggered the 404... the upload url is https://i.instagram.com/rupload_igvideo/ and not https://i.instagram.com/api/v1/rupload_igvideo/ :)

Awesome man, why are you starting a new codebase when you have ping/instagram_private_api?

I did implement one of your methods to upload images there that has been deprecated, and it works. You could tweak that client and have tons of functionalities like post search and a lot more already done.

@trashmit
Copy link

any update ?

@skiesx
Copy link
Author

skiesx commented Nov 16, 2020

@stanvanrooy hi, is there any good news? any update ?

@stanvanrooy
Copy link
Owner

I left my bag, with my laptop, in the bus, so all of my progress is pretty much gone. I'm currently really busy, so I don't have much time anymore to spend on this project.

Once it is finally implemented, I'll let you all know in this issue :) Thanks.

@stanvanrooy
Copy link
Owner

Little update on this. I've did a bit more work on it this evening (https://github.com/stanvanrooy/instauto/tree/60UploadVideos) and made quite a bit of progress.

Uploading the video is currently working, I just need to finish the configuring of the video. I'll try to spend a little bit more time on it this week.

@oitoito
Copy link

oitoito commented Apr 9, 2021

Little update on this. I've did a bit more work on it this evening (https://github.com/stanvanrooy/instauto/tree/60UploadVideos) and made quite a bit of progress.

Uploading the video is currently working, I just need to finish the configuring of the video. I'll try to spend a little bit more time on it this week.

Are you going to merge this feature with main/master at some point?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants