Results 1 to 24 of 24

Thread: is it possible

  1. #1
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default is it possible

    To make a program that i could input names of songs then have the program youtube it click the first link and get the url and paste it on another program


    it can be any language


    and on a scale of 1/10 how hard would it be to acomplish for me


    i have limited knowledge of some languages

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Depends on what language you're familiar with. I think it's a 3/10 for hardness, if that high.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Oct 2009
    Location
    Melb, Australia
    Posts
    179
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The problem would be accuracy, I mean, the first result is not always going to be the best..

  4. #4
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    if its a song itll be accurate most of the time

  5. #5
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    wouldn't be too hard, with scar you could use ReadLn(Question);, and then use one of the codes to open a webpage, I forget which I used, then have it type the names inputted, I'd put them into an array, but then do a text search for the name of the song, click it and get the url somehow, not exactly sure of that but I bet I could figure that out pretty easily. But yea, you should probably be able to do it easy, and very easily if you made it so it'd only work with your resolution, but that makes it a very personal script lol, wouldn't really be able to be used by other people then unless they have the same resolution and stuff.

    You should try making it and post it when you're done. I'd like to see what language you chose and how you made it.

  6. #6
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    im thinking C++

  7. #7
    Join Date
    Mar 2008
    Location
    New Jersey
    Posts
    1,673
    Mentioned
    1 Post(s)
    Quoted
    9 Post(s)

    Default

    I don't know a whole lot of C++ it's my principles of computer science class, so we're learning kinda slow, but I'm learning a lot of java in the advanced placement comp science class. But I'd still like to see the coding when you're done, maybe I can learn some from it . good luck

  8. #8
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    In scar it would be extremely easy..
    do something like

    Code:
    var S : String;
    
    S := GetPage('');
    S := Between();
    Result := S;
    and voilà

  9. #9
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    In scar it would be extremely easy..
    do something like

    Code:
    var S : String;
    
    S := GetPage('');
    S := Between();
    Result := S;
    and voilà

    it has to copy the URL and the paste it in a totaly diffrent window so scar cant do it i believe

  10. #10
    Join Date
    Mar 2007
    Location
    <3
    Posts
    2,683
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    To answer your question: Nothing is impossible.

  11. #11
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    On scale of hardness 0/10 0 being easiest.

    VB it. Insert a list of songs then create a simple webbrowser control to do all the work and simply export its links to a txt file wolla.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  12. #12
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    can u do that cause i have no VB exp ill rep u if u want but if your busy i understand

  13. #13
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    [unrelated?]http://lifehacker.com/5399494/tuberadio-turns-youtube-into-jukebox?autoplay=true[/unrelated?]

  14. #14
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    [unrelated?]http://lifehacker.com/5399494/tuberadio-turns-youtube-into-jukebox?autoplay=true[/unrelated?]
    i put it on my ipod so idt that will work

  15. #15
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    http://www.redkawa.com/
    DL youtube vids, convert, put them on iPod
    (lol idk wtf this thread is even about!)

  16. #16
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yea whats the use maybe theres an alternative out there already.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  17. #17
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    well i just wnat a program that i can input song names and then it will go an get the url and save it in a text document cause i hate having to that by myself its to time consuming

    so in a nutshell

    it should

    take the inputed song names
    go to youtube
    type it in to search
    click the first link
    get the url
    paste in in a text document
    repeat

  18. #18
    Join Date
    May 2009
    Posts
    799
    Mentioned
    2 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by J_Pizzle View Post
    well i just wnat a program that i can input song names and then it will go an get the url and save it in a text document cause i hate having to that by myself its to time consuming

    so in a nutshell

    it should

    take the inputed song names
    go to youtube
    type it in to search
    click the first link
    get the url
    paste in in a text document
    repeat
    I could help you make one in delphi.. It's simple, really .

    I'd use an Idhttp object to use the utube search, than some string functions to filter the first video-link.
    + Some File Operations, and you're done. It's simple
    (And of course could run in the background)

    ~caused

  19. #19
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well i spent some of my free time (dont get alot of it..)

    Here ya go.
    Attached in an RAR File.

    Basically enter as many titles as you want and it will run through the list picking out the FIRST link that youtube provides. It doesnt use a web browser or anything so it is very fast.

    Have fun

    //Virus scan results here..
    http://virusscan.jotti.org/en-gb/sca...d48fb7f59faf1d

    100% Clean.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  20. #20
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    Well i spent some of my free time (dont get alot of it..)

    Here ya go.
    Attached in an RAR File.

    Basically enter as many titles as you want and it will run through the list picking out the FIRST link that youtube provides. It doesnt use a web browser or anything so it is very fast.

    Have fun

    //Virus scan results here..
    http://virusscan.jotti.org/en-gb/sca...d48fb7f59faf1d

    100% Clean.

    can i see th source

    its not cause i think it bad i jsut wanna see how u did it

  21. #21
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Check PM

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  22. #22
    Join Date
    Aug 2007
    Location
    irc://irc.rizon.net:6667/srl
    Posts
    1,566
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    I just made one now in VB 2008:



    Code:
    Imports System.Net
    
    Public Class Form1
    
        Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click
            If TextSearchBox.Text = Nothing Then
                MsgBox("Type something for the program to search on YouTube!")
                Exit Sub
            End If
            BackgroundWorker1.RunWorkerAsync()
        End Sub
    
        Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
            CheckForIllegalCrossThreadCalls = False
            Dim Client As New WebClient
            Dim result = Client.DownloadString("http://www.youtube.com/results?search_query=" & TextSearchBox.Text & "&search_type=&aq=f")
            Dim splitarray() As String = System.Text.RegularExpressions.Regex.Split(result, "<a id=""video-url-")
            RichTextBox1.Text = "http://www.youtube.com/watch?v=" & splitarray(1).Split("""")(0)
        End Sub
    End Class

    "Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much because they live in the gray twilight that knows neither victory nor defeat."
    — Theodore Roosevelt

  23. #23
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Already done. And he wanted it to be multiple songs.

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  24. #24
    Join Date
    Aug 2007
    Location
    irc://irc.rizon.net:6667/srl
    Posts
    1,566
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by rogeruk View Post
    Already done. And he wanted it to be multiple songs.
    k


    source/exe attached

    "Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much because they live in the gray twilight that knows neither victory nor defeat."
    — Theodore Roosevelt

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •