instauto icon indicating copy to clipboard operation
instauto copied to clipboard

Implement a method for uploading videos

Open skiesx opened this issue 4 years ago • 13 comments

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

skiesx avatar Sep 23 '20 20:09 skiesx

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

stanvanrooy avatar Sep 23 '20 20:09 stanvanrooy

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

stanvanrooy avatar Oct 06 '20 22:10 stanvanrooy

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.

stanvanrooy avatar Oct 14 '20 17:10 stanvanrooy

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...

skiesx avatar Oct 16 '20 18:10 skiesx

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 avatar Oct 17 '20 19:10 stanvanrooy

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 avatar Oct 19 '20 14:10 stanvanrooy

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/ :)

stanvanrooy avatar Oct 21 '20 16:10 stanvanrooy

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.

kn0wm4d avatar Oct 21 '20 18:10 kn0wm4d

any update ?

trashmit avatar Oct 31 '20 08:10 trashmit

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

skiesx avatar Nov 16 '20 09:11 skiesx

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 avatar Nov 16 '20 09:11 stanvanrooy

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.

stanvanrooy avatar Dec 16 '20 18:12 stanvanrooy

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!

oitoito avatar Apr 09 '21 08:04 oitoito