Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 01:28

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Start video stream automatically

Discussion on Start video stream automatically within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
C_O_R_E's Avatar
 
elite*gold: 0
Join Date: Jul 2014
Posts: 264
Received Thanks: 54
Start video stream automatically

Hey guys,

I'm currently interested in a programm, whom starts video stream automatically. I'm skilled in C/C++ but currently a newbie in network programming. Anyway, I'm looking for a programming lanuage, which fits perfectly into this and handle web things easily.


I really love to watch some series (probably not allowed to post the url).
The website offers several links to different hosters. The hoster I prefer is streamcloud.
This is what I want to implement:
- Open the series, you want to watch.
- Choose the prefered hoster.
- Click on url to get refered to hoster/stream.
- Wait for the countdown and click on web button.
- Start video and set it on fullscreen mode.


It sounds easy, but I don't know which programming language I should use for it.
I would like to use Python. Found some useful entries like:
-http://wwwsearch.sourceforge.net/mechanize/
Using mechanize for pressing web buttons.


Does someone have links and ideas, how to realize my little project?
C_O_R_E is offline  
Old 01/23/2016, 11:46   #2
 
elite*gold: 726
Join Date: Jul 2010
Posts: 14,233
Received Thanks: 7,915
take a look at the media center software "Kodi". There are addons (written in python) which exactly do what you described.
noahrmal is offline  
Thanks
1 User
Old 01/23/2016, 12:21   #3
 
.SkyneT.'s Avatar
 
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
Because there is a lot of Javascript involved I would recommend looking into selenium.
Selenium can make use of many different Browsers through different WebDrivers. I would recommend using Chrome or Firefox.

You can install selenium via pip:
Code:
pip install selenium
For Chromedriver just download the .exe from and add it to your PATH.

If you need to parse some HTML (which you probably will) you can use BeautifulSoup for that. You can install it via pip aswell:
Code:
pip install beautifulsoup4
.SkyneT. is offline  
Thanks
1 User
Old 01/23/2016, 13:31   #4
 
C_O_R_E's Avatar
 
elite*gold: 0
Join Date: Jul 2014
Posts: 264
Received Thanks: 54
Quote:
Originally Posted by 123klo View Post
take a look at the media center software "Kodi". There are addons (written in python) which exactly do what you described.
I'm using gentoo & arch on my notebooks, where I want to implement applications by myself. Maybe on my win computer. I will think about it...


Quote:
Originally Posted by .SkyneT. View Post
Because there is a lot of Javascript involved I would recommend looking into selenium.
Selenium can make use of many different Browsers through different WebDrivers. I would recommend using Chrome or Firefox.

You can install selenium via pip:
Code:
pip install selenium
For Chromedriver just download the .exe from and add it to your PATH.

If you need to parse some HTML (which you probably will) you can use BeautifulSoup for that. You can install it via pip aswell:
Code:
pip install beautifulsoup4

Jap, I just checked it and you're right.
I have visited the website of selenium and its quite interesting for the thing I want to build. It also have an active community. I joined the irc channel to get some reviews about selenium.




Also checked BeatifulSoup. Why do I need it? It's pulling data out of a html file/code. The only reason why I need that is to grab url from the html document. Does selenium not also do that?
Selenium can search for defined elements like href and returns the value of it. Anyway, a big thanks to you to referring me to it. I will work on it.
C_O_R_E is offline  
Old 01/23/2016, 13:43   #5
 
.SkyneT.'s Avatar
 
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
Quote:
Originally Posted by C_O_R_E View Post
Also checked BeatifulSoup. Why do I need it? It's pulling data out of a html file/code. The only reason why I need that is to grab url from the html document. Does selenium not also do that?
Selenium can search for defined elements like href and returns the value of it. Anyway, a big thanks to you to referring me to it. I will work on it.
That's actually true, I totally forgot that selenium is able to do that on it's own
.SkyneT. is offline  
Old 01/23/2016, 16:34   #6
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,137
Received Thanks: 573
I did something similar once and used the libvlc to stream the media. Made this in free pascal with the vlc Lazarus component but there should also be a python or c++ wrapper for it (I know there is at least a non oop wrapper for c)
warfley is offline  
Old 02/25/2016, 01:07   #7
 
C_O_R_E's Avatar
 
elite*gold: 0
Join Date: Jul 2014
Posts: 264
Received Thanks: 54
I didn't update for a while and just wanted to let you know, that I finished this "little project thing".
I have written my exams (kinda pressured my little projects) and passed them successfully.

So I have some goals in the 2nd semester and also want to learn/practice Python in my semester break.


Also have written in Python via Selenium/Webdriver API my QIS. (QIS shows my exam results university homepage)


Thanks for the recommendation of selenium. Great community.
C_O_R_E is offline  
Reply


Similar Threads Similar Threads
24H Stream - 07.06.14 22:15 Start!
06/08/2014 - League of Legends - 1 Replies
Hey Community, ich möchte Euch hier meinen 24h Stream nahelegen. Es wird die meiste Zeit CS:GO gespielt sowie League of Legends. Was wird genau gestreamt: - CS:GO Matchmaking
24H Stream - 07.06.14 22:15 Start!
06/07/2014 - Counter-Strike - 3 Replies
Hey Community, ich möchte Euch hier meinen 24h Stream nahelegen. Es wird die meiste Zeit CS:GO gespielt sowie League of Legends. Was wird genau gestreamt: - CS:GO Matchmaking
Video / Live Stream! ***
02/04/2012 - Technical Support - 2 Replies
Hallo epvper Ich bin auf der suche nach einem Programm welches mir erlaubt - Mein bildschirm in echtzeit wieder zugeben / " wie Teamviewer " ) Dies will ich nutzten um ein paar leuten im anderen forum etwas zuzeigen auf mein PC. ( Live ) Wer mir helfen kann ... *thx* :/
[B]Video Stream Scripts
08/07/2011 - Trading - 3 Replies
BESCHREIBUNG: Also mit den Folgenden Scripts kann man Videos Posten und Bewerten von einem eigenen Player oder zum beispiel von Youtube Es gibt klickzähler Foren Software und Weitere nützliche tools... Es ist Praktisch fast so ein system wie youtube nur das man das Video nicht auf dem script selber hochläd sondern extern bei megavideo oder iwo BEZAHLUNG : Paysafecard 20 € je Script...für 30 gibts beide Scripts KONTAKT: 417699027(ICQ)
Shouldnt Aion SZ EU bot, when i verify and press start, automatically launch my Aion
10/13/2009 - Aion - 2 Replies
Fixed



All times are GMT +1. The time now is 01:28.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.