1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help for YouTube bot

Discussion in 'C, C++, C#' started by jovic70, Jun 4, 2012.

  1. jovic70

    jovic70 Guest

    Hello,

    I want to create YouTube bot, I have problem with video view. How to load YouTube video in c# properly? This is what I try.
    1. I have try to use WebBrowser control and to navigate to video I want, but there is a problem with sound, I can't turn off sound. Is there a way to use this control and turn off sound while video play? I know there is a metod to disable system sound but I don't like this :(

    2. I try to use JWPlayer and to extranal link, but YouTube doesn't count my visit :(


    Please help
     
  2. Tsongkie

    Tsongkie Regular Member

    Joined:
    Dec 22, 2006
    Messages:
    207
    Likes Received:
    148
    Location:
    Pearl of the Orient Seas
    Home Page:
    It's a bit hard to do it from a web browser, even harder doing it from sockets. Like the guy from above said, you're starting from the wrong point. If you need views, then you need to learn how YT counts views. There's a youtube section here if you need more information.
     
  3. jovic70

    jovic70 Guest

    Can u write me a code sample how to do that? Does YouTube count view when I watch whole video, or just I need to send request?
     
  4. Youtube-Toys

    Youtube-Toys Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 28, 2012
    Messages:
    102
    Likes Received:
    70
    Gender:
    Male
    Occupation:
    IT Expert
    Location:
    Internet
    There are very few people here who knows how youtube counts views..and also no one will share this..because its a way of their earnings..
     
  5. Chonchonts

    Chonchonts Newbie

    Joined:
    Jul 2, 2012
    Messages:
    9
    Likes Received:
    0
    With C#, use Webrequest and no Webbrowser which is a slow component.
    I use a chrome extension for see post request and implements them in C#
     
  6. something77

    something77 Registered Member

    Joined:
    Jan 6, 2010
    Messages:
    73
    Likes Received:
    10
    No offense, but I would give up on trying to get a youtube view bot. It is too hard for a beginner. No one is going to tell you how to do it. You will need to figure it out yourself, which for a beginner is going to take a long time.

    If you do want to perserve, visit a youtube page, check all headers that your browser requests, check all network connectivity etc. Then test to find out what, when and how the view is calculated.
     
  7. matessim

    matessim Junior Member

    Joined:
    Nov 22, 2008
    Messages:
    164
    Likes Received:
    72
    Occupation:
    Being funny and kind to puppies
    Location:
    UT 2003
    Youtube has very good measures on deciding views, such as JS checks and Flash checks to see if they component is loading and streaming and playing.

    Making a request to a video is not enough to count as a view. But regardless OP should start there if he wants to write a bot because that is basic knowledge he should know to take on such a task.

    Most bot writers who write youtube bots make them rather simple and just wrap a browser inside their piece of software.
     
  8. -=hollyuser86=-

    -=hollyuser86=- Newbie

    Joined:
    Jul 22, 2010
    Messages:
    22
    Likes Received:
    1
    Occupation:
    .NET Developer
    Location:
    skype, hardik8686
    views are harder now, and probably you can't web browser control and change its proxy and add views, yt is not tolerating that.. so, probably you have only one option for adding views to the video using requests.. you can try web requests instead. it will make your work some how easier.