Welcome, Guest

 or  Register
NewsFeed

Working on a script to re-upload YouTube videos elsewhere
#1
I created this thread about Alex Jones earlier today, and a guest asked:

(08-07-2018, 01:27 PM)Guest Wrote: Someone more tech savy than me, please replicate this video on another site so I can share it without promoting youtube.

I responded with:

(08-07-2018, 02:57 PM)kkkken Wrote: You just gave me the idea for a "YouTube video re-upload tool."

I will get started.  With the caveat, I'm recovering from multiple concussions so might not get very far.  Anyone else willing to help?

Since I started a "work log" to plan it out, before I started writing the code, I can say that I've spent two hours on it so far.  I'm "halfway done" -- the download part is complete.  However, uploading will be more complicated, as I've not used the other sites before.  I then posted the rest of this thread as a comment, and then said I should make a post out of it; here you go, enjoy!  :)

---

Okay, I've started it.  I'm writing it in Perl, which I'm most proficient in, although I have been learning Go in the past month or so.  But it would take longer, and I need to take breaks due to the concussion symptoms (when I start swearing at the computer, I've had enough and am going to start making even more mistakes, so go garden or something -- today, I'm mowing the lawn in shifts; about halfway done now).

The inputs so far are the YouTube video's URL, and destination folder (on the current machine).  I will add another, which is the site to upload to (and username/password, I'll probably need as well).

Currently, it does the following:

  1. Adds "gen" before "youtube" and loads that page -- this is another site which is a way to download YouTube videos in various formats, sizes, etc.
  2. Searches that page for divs which match the class they use for all the download buttons.
  3. Search those results for one which has the "HD" button in it.  (Was going to search further for "MP4 720" text but got frustrated and abandoned that -- which should be fine, I think, as the first "HD" link is generally the "MP4 720" one; if this goes further perhaps I'll add an input option for the desired resolution.)
  4. Extract the file name, and the download link.
  5. Remove the added "Genyoutube.net_" from the beginning of the file name.
  6. Download the video.

I'm stopping here for now.  Next steps:

  1. Save the title and description from YouTube as well.  In addition, there might be other "metadata" that I want, like the upload date; more?
  2. Create an account at DTube and Bitchute (and whatever else exists -- Real.video, I think?  Open to suggestions!)
  3. Figure out how to upload.
  4. Upload.

That second list of items will take longer to complete than the first; that first was stuff I knew how to do before, just had to refresh my memory a little.  Actually it probably won't be that bad, I can probably finish it in a day, if I have time later today I will continue...
P-p-p-pedovores: we're c-c-c-coming to k-k-k-kill you!  Yeah3  (Paraphrased from: https://www.youtube.com/watch?v=YgJvgESR920 )
Bake your noodle and get up to speed on "Q anon": https://imgur.com/a/DTeK7
Reply Share
#2
yay sounds super!
kkkken, Pope Trollalotta  likes this!
Reply Share
#3
Isn't that HOOKTUBE? or will it be automatic?

How would one afford all the server space?
kkkken  likes this!
Reply Share
#4
(08-07-2018, 05:07 PM)Guest Wrote: Isn't that HOOKTUBE? or will it be automatic?

How would one afford all the server space?

Oh, it's not my, or the user's, server space; it's DTube/Bitchute/Real.video/etc's server space.

Just mowed more of the lawn, think I'll continue development.
P-p-p-pedovores: we're c-c-c-coming to k-k-k-kill you!  Yeah3  (Paraphrased from: https://www.youtube.com/watch?v=YgJvgESR920 )
Bake your noodle and get up to speed on "Q anon": https://imgur.com/a/DTeK7
oldcynic, OldWhiteGuy  likes this!
Reply Share
#5
Excellent idea! I bet guys with 1,000 videos on their channel would pay for the script. Moving a large channel can take forever. It would be great if it could also copy video descriptions.
Get over it or die mad.  
kkkken, MysticPizza, oldcynic  likes this!
Reply Share
#6
(08-07-2018, 05:56 PM)OldWhiteGuy Wrote: Excellent idea!   I bet guys with 1,000 videos on their channel would pay for the script.  Moving a large channel can take forever.  It would be great if it could also copy video descriptions.

Yeah
"Perhaps the greatest myth being purveyed,
is that myths are just myths." - Michael Tsarion

kkkken, OldWhiteGuy  likes this!
Reply Share
#7
(08-07-2018, 05:56 PM)OldWhiteGuy Wrote: Excellent idea!   I bet guys with 1,000 videos on their channel would pay for the script.  Moving a large channel can take forever.  It would be great if it could also copy video descriptions.

Yep, that's the part I'm working on now.  Having difficulty; using Perl's module WWW::Mechanize::TreeBuilder, and for some reason it can't find the element with the description in it, even though I'm searching for it correctly (at least, I'm using the exact same string it contains; and if I search for "all divs" I can find the one I'm looking for, after expanding each element I get to the 100th or so and that's it, with matching text of what I was searching for).

Gave up earlier and am about to take another look.  Any feedback would be helpful as well. :)

Interesting idea about charging for it!  Was planning to create a site so people could do it easily, but I understand that people might have issues with "handing me their keys" (to the new site, that is; I don't need the YouTube account password, just the video's URL and ultimately, the channel's).  That said, I could even have it create an account for them, and let them know the temporary password, which they should immediately change.

And, if they're using an existing account, they'll have to give up their username/password, but I'll have it tell them that they should change it immediately upon completion of the transfer(s).

Thanks for the inspiration/motivation!
P-p-p-pedovores: we're c-c-c-coming to k-k-k-kill you!  Yeah3  (Paraphrased from: https://www.youtube.com/watch?v=YgJvgESR920 )
Bake your noodle and get up to speed on "Q anon": https://imgur.com/a/DTeK7
Reply Share
#8
Blessings to you @kkkken . Brilliant, just brilliant.
"My Mind, a Field of Battles, Struggles for Peace in a Tight Place."
kkkken, OldWhiteGuy  likes this!
Reply Share
#9
(08-09-2018, 11:00 PM)oldcynic Wrote: Blessings to you @kkkken .  Brilliant, just brilliant.

Thanks, and you as well!

I just created a GitHub account, but kkkken was taken so I used k-k-k-ken instead.  Gave some feedback to the author of WWW::YouTube::Download -- I had added to his code, so now it also obtains from the YouTube video the: description; date published; views; thumbnail; familyfriendly; and genre.  Not sure exactly how to "contribute" the code, so I just added it as an attachment to an "issue" I created:

https://github.com/xaicron/p5-www-youtub.../issues/45

Now I have everything I need from the YouTube side, and will work on the uploading part.  This is fun, thanks for the feedback.
P-p-p-pedovores: we're c-c-c-coming to k-k-k-kill you!  Yeah3  (Paraphrased from: https://www.youtube.com/watch?v=YgJvgESR920 )
Bake your noodle and get up to speed on "Q anon": https://imgur.com/a/DTeK7
oldcynic  likes this!
Reply Share
#10
(08-10-2018, 12:59 PM)kkkken Wrote:
(08-09-2018, 11:00 PM)oldcynic Wrote: Blessings to you @kkkken .  Brilliant, just brilliant.

Thanks, and you as well!

I just created a GitHub account, but kkkken was taken so I used k-k-k-ken instead.  Gave some feedback to the author of WWW::YouTube::Download -- I had added to his code, so now it also obtains from the YouTube video the: description; date published; views; thumbnail; familyfriendly; and genre.  Not sure exactly how to "contribute" the code, so I just added it as an attachment to an "issue" I created:

https://github.com/xaicron/p5-www-youtub.../issues/45

Now I have everything I need from the YouTube side, and will work on the uploading part.  This is fun, thanks for the feedback.

Well, I chose the wrong service to start the uploading effort with!  D.tube has a login page which doesn't fully load (part of it loads as Javascript), so Perl's module WWW::Mechanize can't handle it.  I gave up, and looked into others.  Found 9 others, and signed up for their services earlier today.  So, I should be able to progress.

Bought channelmigration.video for this.  Want to allow people to migrate "from anywhere, to anywhere" but will begin with a focus on "leaving YouTube."
P-p-p-pedovores: we're c-c-c-coming to k-k-k-kill you!  Yeah3  (Paraphrased from: https://www.youtube.com/watch?v=YgJvgESR920 )
Bake your noodle and get up to speed on "Q anon": https://imgur.com/a/DTeK7
Reply Share