refernce website code

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Apr 2008
Posts: 7
Reputation: constrainer is an unknown quantity at this point 
Solved Threads: 0
constrainer constrainer is offline Offline
Newbie Poster

refernce website code

 
0
  #1
Apr 30th, 2008
I am very new to programing and C#. I understand a few of the basics but I am willing to spend many hours to work with and learn making silly programs that are of a little use to me. I am wondering what I would use to get a small amount of information from a web site and work with the data. I also must log into this website to get the information. Could someone point me in the right direction?
For instance if I wanted to get a price for a specific item off Amazon how would I do it?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: refernce website code

 
0
  #2
Apr 30th, 2008
Amazon publishes an API. For that example, I'd use the Amazon API in my project.

"Getting information from a web site" is much too general of a question. Web sites are built to be accessed by human users, in most cases, not applications.

There are exceptions, such as RSS feeds and Web Services.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 7
Reputation: constrainer is an unknown quantity at this point 
Solved Threads: 0
constrainer constrainer is offline Offline
Newbie Poster

Re: refernce website code

 
0
  #3
May 1st, 2008
Oh and I guess Amazon was a bad example. The websites I am trying to get prices from are just basic and don't use API I don't think.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: refernce website code

 
0
  #4
May 1st, 2008
You want to design an application that mimics a human user, fills out an online form, and processes the resultant HTML? Why? That's a bit of a challenge, and not how most eCommerce applications work. Even the sites like PriceGrabber require that their vendors export their pricing data to them or provide it via Web Services.

If you really want to pursue this idea, you might start by doing a web search on "screen scraper".
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 7
Reputation: constrainer is an unknown quantity at this point 
Solved Threads: 0
constrainer constrainer is offline Offline
Newbie Poster

Re: refernce website code

 
0
  #5
May 1st, 2008
Thank for the key word. Sorry I guess I am being a bit unclear. A website displays a differing price for a bike each day. I just want to get that price with my application then add some local shipping ect to it. Its the getting from the web page I am clueless on how to go about. I will look up screen scraper now.
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 7
Reputation: constrainer is an unknown quantity at this point 
Solved Threads: 0
constrainer constrainer is offline Offline
Newbie Poster

Re: refernce website code

 
0
  #6
May 1st, 2008
Hmm the wiki article is interesting. I am not sure I need to use a screen scraper as that seems far beyond what I am trying to accomplish. Is there any way to parse HTML code online? Could I use a connection string and a data reader to read source code online?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: refernce website code

 
0
  #7
May 2nd, 2008
I still maintain your initial approach is wrong. Parsing each other's HTML is not how eCommerce applications behave. But if you want to doggedly press on, then your next web search should be "C# HTML DOM".
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 7
Reputation: constrainer is an unknown quantity at this point 
Solved Threads: 0
constrainer constrainer is offline Offline
Newbie Poster

Re: refernce website code

 
0
  #8
May 6th, 2008
I don't mean to be hard headed I just am ignorant of these things. Couldn't I use javascript to goto the website and view/get/download the source code and use a StreamWriter/Reader to go through and then use an array to pull out the few digits I need?
Last edited by constrainer; May 6th, 2008 at 8:51 pm.
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 6
Reputation: ckaneta is an unknown quantity at this point 
Solved Threads: 1
ckaneta ckaneta is offline Offline
Newbie Poster

Re: refernce website code

 
0
  #9
May 7th, 2008
I'd look at the c# webrequest & webresponse objects in System.Net
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 7
Reputation: constrainer is an unknown quantity at this point 
Solved Threads: 0
constrainer constrainer is offline Offline
Newbie Poster

Re: refernce website code

 
0
  #10
May 7th, 2008
Thanks!
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C# Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC