Indlela yokulanda amavidiyo we-YouTube ukuze ufunde

Njengoba isihloko seposi sisho, le ndlela yokulanda amavidiyo we-YouTube akuyona enye yezindlela ezihamba phambili, kepha kunalokho iyindlela yokufunda ukuthi izinhlelo zale nhloso zisebenza kanjani njengalezi esizibonile lapha (youtube-dl, ezenzelwe Kuyiqiniso, banamathuba amaningi futhi kuhle kakhulu, ngiyakuncoma).

Indlela ukusebenzisa imiyalo ejwayelekile kusuka ku- I-GNU / Linux ngale njongo, njengoba benjalo i-curl nezinsiza eziningi ezivela ku- bash y i-python engasetshenziswa ukwenza imibhalo. Kumele kuqashelwe ukuthi indlela ayizenzakaleli kepha kunalokho idinga ukuthi umsebenzisi angenelele.

Okokuqala, sithole ividiyo yokwenza "isivivinyo."

ividiyo_target

Ngemuva kwalokho sithola okuqukethwe yikhasi ngombhalo esiwugcinayo futhi siwenze ngokulandelayo:

"nombre del script" "url de youtube"
Isibonelo:
./script_url https://www.youtube.com/watch?v=1r-bWx3WZfQ

#!/bin/bash
ip=$(curl ifconfig.me)
for ((i=0;i<=10;i++))
do
curl -s $1 | grep "r$i---" | grep "expire" | grep "$ip" | grep "http" | grep "ratebypass" | grep "itag"
done

Incazelo yeskripthi:

I-variable isungulelwa i-ip ezosetshenziswa maduzane, ilandelwe iluphu ukuzama izinombolo ezahlukahlukene ku- "$ i" eguquguqukayo, umugqa olandelayo ukuthola okuqukethwe kanye nezihlungi zamagama "ukwenza lula" indawo ye isixhumanisi esisithandayo.

Lapho senza iskripthi esedlule, ibuyisa okukhiphayo okufana nalokhu:

ikhodi_itholakele

Yebo, bangacabanga ukuthi lokhu akunangqondo, kepha empeleni kulula kunalokho okuzwakalayo. Kusukela kokukhiphayo abakutholile, siyasesha, sikhethe futhi sikopishe isixhumanisi esicabanga ukuthi sifihliwe kokuqukethwe, imvamisa inale fomu:

http%3A%2F%2Fr2---sn-j5caxvoq5-2ute.googlevideo.com%2Fvideoplayback%3Fitag%3D5%26sver%3D3%26source%3Dyoutube%26mv%3Dm%26id%3Dd6bf9b5b1dd665f4%26ip%3D190.XXX.XX.XX%26key%3Dyt5%26upn%3DOPyez7xDXx0%26expire%3D1394709761%26sparams%3Did%252Cip%252Cipbits%252Citag%252Csource%252Cupn%252Cexpire%26ms%3Dau%26fexp%3D935640%252C927904%252C932250%252C910207%252C927860%252C916611%252C937417%252C913434%252C936910%252C936913%252C902907%252C934022%26mt%3D1394685288%26signature%3D0A96F682936F3E20015E95DC15AC3D291372CDD5.BF5B9EFF421155747A2267148C8F35B018D4A689%26ipbits%3D0

Kukhona izixhumanisi eziningi ezinjengalezo, kepha akuzona zonke ezisebenzayo. Kungaba yinkohliso ukuyifuna, ngakho-ke kulo msebenzi sidinga ukuthola amagama http, ipbits, phezulu, isiginesha futhi lokho kugcina ngezinhlamvu nezinombolo eziningana zefomu BF5B9EFF421155747A2267148C8F35B018D4A689; esivele sinalezi zinto kusixhumanisi okuthiwa siyasikopisha.

Kumele kuqashelwe ukuthi izikhathi eziningi isixhumanisi singaba esingalungile, okungenani kimi bekufanele ngikwenze ngezixhumanisi ezi-3 ezahlukahlukene, kepha kuyasebenza.

Leyo khodi esiyikopishile empeleni iyikheli lesisetshenziswa (okuyilokhu okuyividiyo), noma kunjalo, libhalwe ngendlela yezinhlamvu ezizosetshenziswa ngolimi lwe-HTML, njengezinombolo eziqala ngenombolo uphawu lwamaphesenti (%).

Njengoba lokho esikufunayo kuyikheli "uhlobo" olufundekayo "http: //", kufanele siguqule lamakhodi abe izinhlamvu, ngakho-ke sizokwenza ngombhalo owenziwe ku-python:

#!/usr/bin/python
def parse_conv(dvar):
df=""
count=0
global chain
chain=""
for dc in dvar:
if dc=="%" and count==0:
count=1
elif count==1 or count==2:
df=df+dc
if count==1:
count=2
else:
count=0
chf=chr(int(df,16))
chain+=chf
df=""
else:
chain+=dc
dvar=input("Código a convertir: ")
parse_conv(dvar)
parse_conv(chain)
print(chain)

Njengomunye umbhalo, bayawugcina bese bewuqhuba. Okuthile okufana nalokhu kuzovela, khona lapho banamathisela ikheli langaphambilini bese belinikeza ukungena; Ikheli elifana ne- "http: //" lizovela:

ikheli elifundekayo

Ngalokhu sizosebenzisa wget ukulanda ividiyo, ngale ndlela elandelayo:

wget -c "http://r2---sn-j5caxvoq5-2ute.googlevideo.com/videoplayback?itag=5&sver=3&source=youtube&mv=m&id=d6bf9b5b1dd665f4&ip=190.XXX.XX.XX&key=yt5&upn=OPyez7xDXx0&expire=1394709761&sparams=id,ip,ipbits,itag,source,upn,expire&ms=au&fexp=935640,927904,932250,910207,927860,916611,937417,913434,936910,936913,902907,934022&mt=1394685288&signature=0A96F682936F3E20015E95DC15AC3D291372CDD5.BF5B9EFF421155747A2267148C8F35B018D4A689&ipbits=0"

decarga_wget

Siyethemba ukuthi iyaphela futhi ividiyo yethu izolandwa ku-youtube ngegama elingajwayelekile:

umabhebhana

Siyiqamba kabusha futhi siyabona ukuthi iyividiyo efanayo naleyo ekulesi sixhumanisi, ngakho-ke, sesivele sikuqinisekisile ukuthi iyindlela enzima kodwa ewusizo uma ufuna ukwazi ukuthi lolu hlobo lohlelo lusebenza kanjani.

ukuhlolwa kwevidiyo

Ngiyethemba kuyakusiza.


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Amazwana ayi-14, shiya okwakho

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

  1.   I-Himekisan kusho

    Okuthunyelwe okuhle, ngithanda indlela elula, ngifuna ividiyo esipheqululini bese ngiyayikhiqiza kabusha esibulalayo:
    #lsof | grep Flash
    bese ngikopisha inqubo bese inginika i-flv
    cp / proc / xxxxx / fd / xx / path / to / save.flv

    1.    @mzokoloko kusho

      Akungisebenzelanga, ngithola i-plugin-co 25074 kimi mem, leyo mem kufanele ibe isichazi sefayela.
      noma kunjalo usebenzisa i-du -hL / proc / 25074 / fd / * none isayizi yokuba yividiyo ye-Youtube, ngabe kukhona owaziyo ukuthi kungani i-FD ingaphumi?

    2.    Anonimo kusho

      Kade ngisebenzisa i-jdownloader isigamu seminyaka ukulanda izinkulungwane zamavidiyo nama-movie ngenkathi ngifunda. Vele, kulabo abakhetha ukusebenzisa i-terminal akuyona ithuluzi elivumelekile, ngaphandle kokungabi lula kakhulu (kudinga cishe i-100 mb yenqama nakho konke nohlelo).

  2.   I-Blackneto kusho

    Akuyona into ehamba phambili, kepha kunesandiso seFirefox esibizwa nge-Easy Youtube Video Downloader Express ...

    Ngishiya iligi: https://addons.mozilla.org/es/firefox/addon/easy-youtube-video-download/

    Usevele wangikhipha ngokushesha ... Sanibonani eMexico

  3.   Marcos kusho

    Bengihlale ngiwathanda amakhasi "we-parsing", akunakuphikwa ukuthi lolu lwazi lokuhlaziya (ama-webs) + i-linux likuvumela ukuthi ucabange imibhalo emincane eyenza izinto ezinamandla bot (bot ngezinhloso ezingezona ezinobungozi)

    kuwebhusayithi yami ngilayishe lo mbhalo omncane ku-php "okhombisa kuphela" iphasiwedi yamahhala ye-vpn ye- "vpnbook" eguquka kaningi, engithemba ukukwenza ngemuva kwalokho ukuyithumela kuselula yami nsuku zonke ngo-7 ekuseni, noma nge-sms ngekhasi le-movistar (ngenye i-bot): D.

    ikhasi
    http://rojosbar.com/AL/1.php

    Ikhodi
    http://paste.desdelinux.net/4940

    ungasebenzisa futhi iskripthi kusuka kukhompyutha yakho ngomyalo

    php SCRIPT.php

    lapho i-SCRIPT.php imele igama lefayela elinekhodi ye-php

    -----
    omunye umbhalo (oluhlaza okotshani kakhulu) engiwenze ukulanda i-ISSUU «amakhasi amamagazini» bese uwagcina nge-PDF (ngoba angiyithandi inguqulo ye-flash abayibonisa kuwebhusayithi yabo)

    Bona ividiyo yombhalo osebenzayo we-php
    https://www.youtube.com/watch?v=h82r41UOWLQ

    ikhodi
    http://paste.desdelinux.net/4941

  4.   Izindleko Granda kusho

    i-youtube-dl [ividiyo]
    yini enye? elula futhi ephumelelayo 🙂
    Kepha ngiyanihalalisela ngomzamo

  5.   Sawubona kusho

    ngisebenzisa i-jdownloader

  6.   khulokuhle kusho

    Lapha ngishiya umbhalo we-python futhi, ngoba ngibonile ukuthi engikubekile akunamathebhu.

    http://paste.desdelinux.net/4942

  7.   I-juan kusho

    Indlela elula futhi engenazo izinhlelo.

    1) Qhafaza kwesokudla kuvidiyo.
    2) Iya kokuthi "Hlola into"
    3) Zithole ku-Video Tag
    4) Iya empahla ye-SRC bese ukopisha leso sixhumanisi (uma ufuna ukweqa izinyathelo 5 no-6, vele uye kukhonsoli bese uthayipha i-wget nesixhumanisi esikopishiwe)
    5) Vula leso sixhumanisi kwenye ithebhu
    6) Qhafaza kwesokudla -> Gcina ividiyo njengo ...> uqedile, jabulela.

  8.   UDernalis kusho

    Okuthunyelwe okuhle, yize ngicabanga ukuthi kungadida izethameli ezingakusebenzisa.
    Kakade kokuthunyelwe kuyacaca ukuthi kunezindlela ezingcono zokulanda amavidiyo we-YouTube. Abakuhlosile ukukhombisa amathuba we-linux ukuthola idatha kuwebhu.

    Isibonelo esincane njengomnikelo:
    i-curl -s http://rss.thepiratebay.se/101 | uzibuthe we-grep | isixhumanisi se-grep | sed -r "s / ^.* (. +) $ / \ 1 / g" | ngenkathi ulayini ofundwayo; yenza i-echo transmission-remote -a $ line; kwenziwe

    Isusa kokuphakelayo kwe-rss feed kuzo zonke izixhumanisi zamagnetic omculo, ama-60 wokugcina, futhi ikhombise umyalo wokuwengeza ekudlulisweni. uma sisusa i- "echo" ibangeza ngqo, qaphela.
    Ngiyazi ukuthi kungenziwa ngeFlexget noma okufanayo, kepha akukona lokho, kumayelana nokunquma imininingwane ofuna ukuyithola kuwebhu nokuthola indlela yokuyihlukanisa ngamathuluzi esinawo ku-Linux.

    Ngiyethemba anginwebanga noma ngangenele kakhulu.

  9.   Nsz kusho

    Futhi bekungeke kube lula ukusebenzisa i-Youtube-DL?

    Ukulanda ividiyo:
    I-Youtube-dl [ividiyo ye-URL]

    Ukulanda umsindo kuphela:
    i-youtube-dl -x -audio-format mp3 [ividiyo ye-URL]

  10.   @mzokoloko kusho

    Okuthunyelwe okuhle, okusisiza ukuthi siqonde kangcono.

  11.   izinhlangano kusho

    Ngisebenzisa i-CLIPGRAB futhi uma kuyi-console ngisebenzisa umyalo we-clive noma we-cclive. Angidingi noma yimuphi umbhalo 🙂

  12.   mbuzeni kusho

    Iningi lazo liyisicefe uu, yebo, sekuvele kunemibhalo eminingi nesoftware egcwalisa umsebenzi kepha okungenani uke wazibuza ukuthi bakwenza kanjani? uu ...

    Yebo, bengingazi ngale ndlela, ngizoyihlola futhi nokho ekuvakasheni kwami ​​ku-YouTube ngethuluzi lonjiniyela ngibonile ukuthi bane-api (REST ngicabanga) ikunikeza imininingwane eminingi ngale vidiyo ngakho-ke isixhumanisi sayo i-cdn yayo.

    Ngizozama lokhu futhi ngiqhubeke neskripthi sami sokulanda ngento eyenziwe futhi ngiyiqonde kahle hehe. Ukubingelela ne-athikili enhle