angeloudi / ert-downloader Goto Github PK
View Code? Open in Web Editor NEWA script to download videos from ert web tv
License: MIT License
A script to download videos from ert web tv
License: MIT License
Muchas Gracias σπουδαῖο ἐργαλεῖο ἀπὸ ἕναν High-school-student!
Primary-school-student
Πολύ χρήσιμο το πρόγραμμα!
Στην "επιθυμητή ανάλυση" που βρίσκει το πρόγραμμα HD & FHD αναλύσεις, σε σειρές/επεισόδια που είναι παλιά και η πραγματική ανάλυσή τους είναι χαμηλότερη, επιλέγοντας την 1920*1080 πχ το βίντεο δεν μπορεί να έχει καλύτερη ανάλυση ουσιαστικά αλλά ως αρχείο είναι πολύ μεγαλύτερο. Ή τουλάχιστον έτσι καταλαβαίνω, τώρα στον ήχο μπορεί να έχει όντως διαφορά δεν ξέρω; Υπάρχει κάποιος τρόπος να βρω ποια είναι η πραγματική/αρχική ανάλυση; (γιατί καταλαβαίνω μάλλον δεν έχει νόημα να κατεβάσω κάτι σε FHD όταν έχει γραφτεί ούτως ή άλλως σε χαμηλότερη ποιότητα.)
Και side-question πώς μπορώ να κάνω auto-input για να τρέξει να κατεβάσει και το πρώτο και το δεύτερο επεισόδιο από το ίδιο link/σειρά, σε δεδομένη ανάλυση; Δηλαδή να τρέξει αυτόματα την ίδια εντολή και μετά να πατήσει 1 αντί για 0.
Ευχαριστώ!
after searching for a way to download some videos from ertflix, i came across your page. i downloaded the code, made it executable, but i am unable to download anything, as i am getting errors:
pi@vpn:~/ert-downloader $ python ert-downloader.py https://www.ertflix.gr/vod/vod.168731-o-arkhitsigkounes
Traceback (most recent call last):
File "ert-downloader.py", line 1, in <module>
from extractors import archive_extractor, ertflix_extractor, star_extractor, megatv_extractor
ImportError: No module named extractors
pi@vpn:~/ert-downloader $
here are my system details:
pi@vpn:~/ert-downloader $ python -V
Python 2.7.16
pi@vpn:~/ert-downloader $
i am getting the same error for any link from the the other providers as well:
- ert
- star
- mega
- alhpa
Any hints on how i could overcome the problem, please?
Το κατέβασμα επεισοδίου αποτυγχάνει, ίσως εξ' αιτίας του τρόπου δημιουργίας του ονόματος του αρχείου (κάποιο κρυφό tab, δεν είμαι σίγουρος).
Για αναπαραγωγή του σφάλματος: https://www.ertflix.gr/series/ser.168677-bolta-sten-arkhaia-aigupto και επιλογή 1.
Σε κάποια επεισόδια μου βγάζει το εξής σφάλμα, ενώ πχ το μεθεπόμενο επεισόδιο το κατεβάζει κανονικά.
Το πρόβλημα έχει ως εξής: Δεν βγάζει επιλογές για ανάλυση βίντεο (720p, 1080p, κλπ.) όπως κάνει γενικά και στο τέλος βγάζει τα συγκεκριμένα μηνύματα και δεν κατεβάζει καν το επεισόδιο.
Ξέρει κανείς καμιά λύση;
Κατ'αρχήν να σημειώσω ότι έχεις κάνει εξαιρετική δουλειά! -)
Ένα μικρό σχόλιο, όταν τρέχει το script και φέρνει τη λίστα με τα επεισόδια, ζητάει από το χρήστη να επιλέξει το επεισόδιο που θέλει να κατεβάσει. Μετά το entry του χρήστη, το script κατεβάζει πάντα το επόμενο επεισόδιο από αυτό που επέλεξε ο χρήστης!
Συγχαρητήρια και πάλι για την πολύ καλή δουλειά!
Hi and thanks again for the opportunity to download very important videos from ERT.
Most of the videos I download are in perfect condition, but there is one which arrives corrupted:
I downloaded it already three times and I always get the same behavior: at 1 hour 19'01" the sound stops and comes back only many minutes later. When watching the video on ERT's Web site everything is OK and nothing suspicious happens at 1:19'01".
Could you take a look at it? Perhaps there is problem of assembling the many data pieces into a single one?
hello mr,
i'm trying download this link " https://www.ertflix.gr/xenes-seires/to-mikro-spiti-sto-livadi-s04ep10v-o-machitis-meros-v/?series=to-mikro-spiti-sto-livadi " and i receive this error
the same with this link too, similar error " https://www.ertflix.gr/xenes-seires/to-mikro-spiti-sto-livadi-s04ep11-tha-synantithoyme-sto-panigyri/?series=to-mikro-spiti-sto-livadi "
for previous episodes, working fine, but for these last two it has these errors... i'll try tommorow to download the new ones they will upload and i'll write again.
thank you very much for your work! hope fix it soon ;)
γειά σας,
πρῶτον πρέπει νὰ ἀλλάξετε τὴν ἀράδα
page_url = "https://archive.ert.gr/paraskinio-manolis-korres/" # website url
γιατὶ ἀλλοιῶς κατεβάζει μόνο τὸ Παρασκήνιο τοῦ Κορρέ.
Πιὸ σημαντικὸ κατέβασα τὸ
https://webtv.ert.gr/ekklisiastika/16apr2020-akoloythia-ton-agion-pathon-ieros-naos-agioy-georgioy-fanari/
ἀλλὰ ὁ ἦχος σὲ κάποια στιγμὴ χαλάει καὶ κόβεται. Πρόκειται γιὰ πρόβλημα σύνδεσης; Ὑπάρχει τρόπος νὰ τὸ διορθώσω;
ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with Apple clang version 11.0.3 (clang-1103.0.32.59)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_5 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags=-fno-stack-check --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
[concat @ 0x7f853f008200] Impossible to open 'media_w421355524_0.ts'
filenames.txt: Invalid data found when processing input
Hi,
Example download:
/root/downloader.py https://www.ertflix.gr/paidika/mia-fora-kai-enan-kairo-itan-o-anthropos-oi-froyroi-toy-somatos/
Result:
/root/downloader.py: line 7: syntax error near unexpected token `newline'
/root/downloader.py: line 7: `<!DOCTYPE html>'
BR
Theo
Thank you for this great tool. This is not an issue but I would like to ask you if its possible to add an option to include closed captions (subtitles)? I checked the .ts chunks and the subtitles stream is missing. Thank you.
tried with https://series.ert.gr/i-yperochi-fili-moy-s1-ep1/ did not work.
tried to print(playlist_m3u8.split('\n'))
list is empty
Hi, when I try to download a documentary from ertflix, I get the following error:
Episode not available, please check if episode is available on platform. If it is open an issue on github.
An example that fails is this.
python version: 3.10.4
Καλησπέρα & καλό μήνα!
Δοκιμάζοντας το πρόγραμμα με ένα Ertflix URL, κατεβάζει το trailer από τη σελίδα και όχι την ταινία.
Χρειάζεται κάποια συγκεκριμένη εντολή για το πιό βίντεο να κατεβάσει;
Ευχαριστώ πολύ.
I can't get the script run: missing dependencies
I cloned the ert-downloader from github and tried to download a video from ertflix.
First the script was not able to find the bs4 module. So I install python3-bs4 on my fresh Debian 11 installation
(e.g. by
su -l
apt install python3-bs4
).
The next missing module was pathvalidate. So I tried to install it via apt. The commands that seems necessary are:
su -l
add-apt-repository ppa:thombashi/ppa
apt update
apt install python3-pathvalidate
Trying add-apt-repository ppa:thombashi/ppa
leads to the following error message:
kRyzen7:~# add-apt-repository ppa:thombashi/ppa
deb packages of my repositories (https://github.com/thombashi).
PPA packaging sources can be found at https://github.com/thombashi/PPA
More info: https://launchpad.net/~thombashi/+archive/ubuntu/ppa
Press [ENTER] to continue or ctrl-c to cancel adding it
gpg: Die "Keybox" /tmp/tmprksegdde/pubring.gpg' wurde erstellt
gpg: /tmp/tmprksegdde/trustdb.gpg: trust-db erzeugt
gpg: Schlüssel CF9859CE95D9F1E2: Öffentlicher Schlüssel "Launchpad PPA for Tsuyoshi Hombashi" importiert
gpg: Anzahl insgesamt bearbeiteter Schlüssel: 1
gpg: importiert: 1
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
gpg: Keine gültigen OpenPGP-Daten gefunden.
My interpretation is that an old method (apt-key) is used in thombashi's script. Maybe this method is no longer support by the apt version used in Debian 11. I will contact thombashi-san to find out more and will report how this can be solved.
As I was not able to install pathvalidate via apt
I installed pip and than pathvalidate via pip:
(as superuser) apt install python3-pip
and as normal user : pip install pathvalidate
. This seems to have been successfull:
Collecting pathvalidate
Downloading pathvalidate-2.5.0-py3-none-any.whl (19 kB)
Installing collected packages: pathvalidate
Successfully installed pathvalidate-2.5.0
But still the ert-download script does not find pathvalidate:
python3 ert-downloader.py https://www.ertflix.gr/vod/vod.172529-the-thing-about-greece
Traceback (most recent call last):
File "/home/user/Downloads/ert-downloader/ert-downloader.py", line 2, in
from downloaders import m3u8_downloader, alpha_downloader
File "/home/user/Downloads/ert-downloader/downloaders/m3u8_downloader.py", line 8, in
from pathvalidate import sanit
ImportError: cannot import name 'sanit' from 'pathvalidate' (/home/user/.local/lib/python3.9/site-packages/pathvalidate/init.py)
Now I really don't know how to solve this. Anyone hints?
C:\Users\user\Desktop\Νέος φάκελος\ert-downloader-master>python ert-downloader.py https://www.ertflix.gr/*****
Traceback (most recent call last):
File "C:\Users\user\Desktop\Νέος φάκελος\ert-downloader-master\ert-downloader.py", line 1, in
from extractors import archive_extractor, ertflix_extractor, star_extractor, megatv_extractor
File "C:\Users\user\Desktop\Νέος φάκελος\ert-downloader-master\extractors\archive_extractor.py", line 1, in
import requests
ModuleNotFoundError: No module named 'requests'
Thank you for the script!
I would like to ask if it would be possible to download .mov files instead of only mp4.
For example, the following:
https://webtv.ert.gr/ert3/iera-monopatia-agioi-saranta-sparti/
Good morning,
Is it possible to adjust the script in order to be able to download live content? e.g. the show Mr. Bean Animated is usually streamed on ert/ertflix but it is not available to watch again when it has finished.
Is it possible to adjust the script to download it whilst it is shown live on ertflix?
Thanks again for the amazing effort!
Όταν το όνομα του επεισοδίου περιλαμβάνει μη επιτρεπτούς χαρακτήρες (πχ : ), ενώ φαίνεται να κατεβάζει τα κομμάτια, καταλήγει σε μηδενικό αρχείο με όνομα μέρος του ονόματος, μέχρι τον μη επιτρεπτό χαρακτήρα.
Για παράδειγμα: https://www.ertflix.gr/series/ser.166218-o-khoros-ten-epeiron, και επιλογή [0] ή [2].
BTW, συγχαρητήρια για την υπέροχη δουλειά.
Προσπαθώ να κατεβάσω τοπικά το παρακάτω βίντεο που θα λήξει τέλος του μήνα
https://www.ertflix.gr/docs/generation-algorithm-techniti-noimosyni-i-megali-allagi/
1η απορία
τι ακριβώς κατεβάζω από το ffmpeg ; Τι τοποθετώ και που στην εφαρμογή;
(αυτό είναι το πακέτο για windows ffmpeg-N-100635-gbf1cc9a43b-win64-gpl-shared-vulkan.zip)
2η απορία
Την παρακάτω εντολή από ποιό σημείο ακριβώς την εκτελώ; γιατι μέσα από το shell της python βγάζει σφάλμα (συννημένες εικόνες)
python ert-downloader.py https://www.ertflix.gr/docs/generation-algorithm-techniti-noimosyni-i-megali-allagi/
Δεν έχω προηγούμενη εμπειρία με Python απλά χρειάζομαι το εργαλείο για συλλογή επιλεγμένων βίντεο που δεν θα είναι πάντα διαθέσιμα
Ευχαριστώ προκαταβολικά
Κατέβασα το πακέτο με τα αρχεία που υπάρχουν εδώ κι έχω κατεβάσει και το ffmpeg, που μέσω ενός tutorial video το πέρασα στον υπολογιστή. Από δω και πέρα πώς χρησιμοποιώ τα αρχεία του πακέτου για να κατεβάσω βίντεο από το ertflix (ή από άλλα τηλεοπτικά κανάλια);
Αρχάριος σε αυτά... Μπορεί κανείς να μου πει step by step τα βήματα;
i had to force the code to always use "dvrorigin" instead of "dvrorigingr" or else it would not work.
hello,
first of all, you have to install all these python modules
beautifulsoup4==4.9.3
certifi==2020.12.5
chardet==3.0.4
idna==2.10
lxml==4.6.2
requests==2.25.0
soupsieve==2.0.1
urllib3==1.26.2
second, there is a problem with the encoding, i had to declare a standard filename in order to save it..
os.system(('ffmpeg -f concat -i download_parts/parts -acodec copy -vcodec copy "all.mp4"'.format(os.getcwd(), title)))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.