Like Tree3Likes
  • 3 Post By CommonTater

Interaction with a website?

This is a discussion on Interaction with a website? within the C Programming forums, part of the General Programming Boards category; Hi programmers! I started my c programming in March I believe and I am still going through the course. Currently ...

  1. #1
    Registered User
    Join Date
    May 2011
    Posts
    3

    Interaction with a website?

    Hi programmers! I started my c programming in March I believe and I am still going through the course. Currently I am trying to find a way to interact with a website, although I am not at that level yet in my C programming course. I have already searched google with "C programming website interaction", "C programming website package(or header)", and yet to no avail. Am I searching for the wrong things? I am just trying to make a program that opens some links on a website and that is about it.

    -Minaru

  2. #2
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,652
    Google for libcurl.

  3. #3
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    FWIW... Many of the current browsers are written in C.

    But it's GUI programming and it's no where near as simple as console projects...

    What exactly are you trying to do? Launch stuff in your browser? Download files? Write your own browser?

    On windows systems you can use the WinInet api... Windows Internet (Windows)

  4. #4
    Registered User
    Join Date
    May 2011
    Posts
    3
    okay for example, I have youtube open and I want the program to just open up the "music" link. Also thanks for the replies.

    -Minaru

  5. #5
    Registered User
    Join Date
    Jan 2009
    Posts
    1,485
    I think you need to access it though some API that YouTube makes available (the link that is) to then embed it into a web view in some browser API of your choice.

  6. #6
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Ok.. I'm going to b honest with you and offer you just a little advice from someone who's been down this path...

    Slow it down.

    For someone only a couple of months into first year programming this project is way beyond you. To do what you want would require at, minimum, a browser extension (ActiveX ... look it up) and knowledge of Networking.

    It's very easy to get into the idea that because you know how to use if() and for() that you can do anything... but learning a few keywords and writing a couple of simple exercises is about a tenth of a percent of programming... What you need at this early stage is to work on analytical and troubleshooting skills.... "How does this work" and "Why doesn't this work"... actual projects can wait.

    Your time would be better served, if you sat down with your textbooks and went through them page by page, type up and work with the examples... understand them before you move to the next page... learn in the progression given... and don't let yourself get carried away.

    Maybe in a year or two, you can come back to this idea and actually make it work without turning yourself totally off of what could be a rewarding career.

  7. #7
    Registered User
    Join Date
    Jan 2009
    Posts
    1,485
    Well at least you can ponder on the different parts that you need to solve, and look into each of them, reading up on the required knowledge you need and so on. Rendering video is the last problem you need to solve, IMO, first you need to figure out how to send a valid GET request to YouTube and receive a result, libcurl is probably a good place to start, once you know the principle behind sockets and network programming. Take a look at the documentation to get a rough estimate on what is required for the first steps if your curious.

  8. #8
    Registered User
    Join Date
    May 2011
    Posts
    3
    Wow. Thanks everybody for such good and fast responses!

    -Minaru

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C, PHP interaction
    By WannaB_Geek in forum Networking/Device Communication
    Replies: 4
    Last Post: 04-13-2005, 01:23 PM
  2. SQL database Interaction
    By (TNT) in forum C++ Programming
    Replies: 1
    Last Post: 07-14-2003, 03:52 AM
  3. hardware interaction in c
    By vineetwadwekar in forum C Programming
    Replies: 6
    Last Post: 03-29-2002, 08:01 AM
  4. C++ Hardware Interaction
    By William in forum C Programming
    Replies: 1
    Last Post: 03-28-2002, 02:52 AM
  5. C++ and DOS interaction
    By tribal1998 in forum C++ Programming
    Replies: 8
    Last Post: 03-20-2002, 07:46 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21