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

Looking for some C# coding help

Discussion in 'C, C++, C#' started by vebxperts, Jul 17, 2014.

  1. vebxperts

    vebxperts Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 15, 2008
    Messages:
    1,657
    Likes Received:
    339
    Hi,

    I'm stuck at YouTube captcha because the src link is dynamic and whenever I access the link, it gives me a new captcha.
    Can anyone please help me out and get me a peace of code, to get it resolved.
    I'm ready to pay for it as well, but need the sourcecode that really can do the job.

    Please PM me IF you are interested and have the solution for the problem.

    Its kind of urgent please!

    I'm using browser based solution, but I'm open to webclient based solution as well.

    Thanks
     
  2. rootjazz

    rootjazz Jr. VIP Jr. VIP

    Joined:
    Dec 21, 2012
    Messages:
    614
    Likes Received:
    313
    Occupation:
    Developer
    Location:
    UK
    Home Page:
    Check the headers of when you pull the captcha image, you are doing something wrong.

    Probably the cookies, check those first.
    Also check the referrer
    Also check for any custom headers


    oh, just read that you are using a browser based solution. So ignore the above.

    Find the element the captcha is in,
    extract element
    dump element to image
    voila
     
    • Thanks Thanks x 1
  3. vebxperts

    vebxperts Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 15, 2008
    Messages:
    1,657
    Likes Received:
    339
    Thanks for your response. I have added you on Skype.
    I need a peace of code to extract such kind of dynamic captcha.
    I have found the captcha element.
    I have extracted the element but how to dump element to image?
    Please guide about this so that I say "voila" as well :)
     
  4. rootjazz

    rootjazz Jr. VIP Jr. VIP

    Joined:
    Dec 21, 2012
    Messages:
    614
    Likes Received:
    313
    Occupation:
    Developer
    Location:
    UK
    Home Page:
    Depends on the browser component you are using.

    Then search google for how to save element of component X to image
     
  5. Nitros

    Nitros Power Member

    Joined:
    Jan 30, 2009
    Messages:
    573
    Likes Received:
    295
    PM me the link of a web page where you want to extract captcha image from and I will help you.
     
  6. SuperTee

    SuperTee Regular Member Premium Member

    Joined:
    Nov 25, 2011
    Messages:
    216
    Likes Received:
    118
    Location:
    Switzerland
    Home Page:
    Take a printscreen of that single img tag.
     
  7. vebxperts

    vebxperts Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 15, 2008
    Messages:
    1,657
    Likes Received:
    339
    @SuperTee: How can I take printscreen of img tag? Can you please PM me source code, though I have messaged you on Skype as well. Waiting for your response :)


    @Nitros: You can take signup form captcha for example, because its same thing, even you can take hotmail signup form captcha image. Because, that is dynamic as well.
     
  8. Precubed

    Precubed Newbie

    Joined:
    Sep 4, 2014
    Messages:
    11
    Likes Received:
    1
    Occupation:
    Programmer, web developer, admin
    Home Page:
    I use GDI for the Hotmail captcha. Grab an image of the browser, then crop the captcha image out of the browser image. You could also use Fiddler Core to detect the packet with the captcha image as its inbound.
     
  9. vebxperts

    vebxperts Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 15, 2008
    Messages:
    1,657
    Likes Received:
    339
    How do you get it with Fiddler Core? Can you please PM me the procedure, or write here?
     
  10. Gooze

    Gooze Newbie

    Joined:
    Oct 19, 2009
    Messages:
    39
    Likes Received:
    8
    do you still need help? what is the page source you are trying to extract from
     
  11. vebxperts

    vebxperts Jr. VIP Jr. VIP Premium Member

    Joined:
    Nov 15, 2008
    Messages:
    1,657
    Likes Received:
    339
    Yes, still need help. Because, I'm not able to capture TAG printscreen/screenshot/image.
    Not even webpage screenshot. Because, when I take the screenshot of whole website using geckoWebBrowser1.DrawToBitmap I get a gray image but not the webpage screenshot.

    Please guide.
     
  12. opahopa

    opahopa Jr. VIP Jr. VIP Premium Member

    Joined:
    Sep 23, 2012
    Messages:
    142
    Likes Received:
    9
    if u`re using requests or socket connection, just get the data from capcha URL to stream and save to image.