LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-14-2016, 10:08 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,604

Rep: Reputation: 51
A Internet oriented programming language?


Hi: I have a program, youtube-dl. It enables to download youtube videos to disk. I see it is written in the Python programming language. There are a lot of applications one can think of having to do with the Internet. So my question is: is there a "special purpose" programming language for this kind of applications?
 
Old 12-14-2016, 11:11 AM   #2
hydrurga
Senior Member
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 18.2 MATE
Posts: 3,491
Blog Entries: 2

Rep: Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196Reputation: 1196
If by internet you're talking more specifically about the web and web pages, then the iMacros browser plugin is worth looking at regarding browser task automation.

When I recently developed a program to grab info from various web pages, I used Python with the Requests and Beautiful Soup libraries.
 
Old 12-14-2016, 01:04 PM   #3
Myk267
Member
 
Registered: Apr 2012
Location: California
Posts: 320
Blog Entries: 14

Rep: Reputation: Disabled
Any of the {ruby,perl,python} languages can do this sort of thing. They're general purpose languages, but the combination of dynamic typing and garbage collection make them a good choice for things like this. For a perl example, https://www.jwz.org/hacks/youtubedown.
 
1 members found this post helpful.
Old 12-14-2016, 01:16 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,567

Rep: Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914
Go is very popular for these types of applications, because it's optimized for non-blocking IO and non-blocking IO is very useful for network requests that can take a human-detectable amount of time to complete.

Last edited by dugan; 12-14-2016 at 01:20 PM.
 
Old 12-14-2016, 06:27 PM   #5
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,604

Original Poster
Rep: Reputation: 51
And what about Java? I can add I'm only interested in command-line programs. That is, it does not matter if I cannot draw a beautiful screen for the GUI. I read in Wikipedia
Quote:
As of 2016, Java is one of the most popular programming languages in use,[17][18][19][20] particularly for client-server web applications, with a reported 9 million developers.[21]
The full article is in
https://en.wikipedia.org/wiki/Java_%...ng_language%29. Let's put a concrete example. What would you use if you were asked to write youtube-dl anew? (youtube-dl is a command-line utility for downloading videos or extracting audio files from streaming websites such
as YouTube, DailyMotion, and Vimeo.)
 
Old 12-14-2016, 09:34 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,567

Rep: Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914
Quote:
Originally Posted by stf92 View Post
What would you use if you were asked to write youtube-dl anew? (youtube-dl is a command-line utility for downloading videos or extracting audio files from streaming websites such
as YouTube, DailyMotion, and Vimeo.)
Hey. Isn't that by a former LQ regular? I recognize that name...

Anyway, my answer? JavaScript. But that's because I'd use PhantomJS to scrape the sites, and PhantomJS supports JavaScript best.

Last edited by dugan; 12-14-2016 at 09:35 PM.
 
Old 10-05-2017, 05:36 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: Slackware
Posts: 7,567

Rep: Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914Reputation: 2914
Relevant:

Curl is C
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] why we can not say that c++is pure object oriented language ziyamarshal Programming 4 08-16-2012 01:56 AM
Object Oriented Programming in the Web entz Programming 8 08-04-2009 05:10 AM
Introduct Luban: a new component oriented programming language peterxhuang Programming 0 03-08-2005 03:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration