Welcome to Dream.In.Code
Click Here
Getting C# Help is Easy!

Join 117,542 C# Programmers for FREE! Ask your question and get quick answers from experts. There are 1,701 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Computer Builder

 
Reply to this topicStart new topic

Computer Builder, Retrieve price information for computer parts from a website

Eibach
post 8 Jul, 2008 - 09:53 AM
Post #1


New D.I.C Head

*
Joined: 8 Jul, 2008
Posts: 3


My Contributions


I just had this idea.

Okay so I always make spreadsheets for building my new computer builds, and I compare prices from different websites. And I have to keep going to those websites to see if there is an update on the price or whatever or if there is a sale or something. Well what if I created a program that did all that for me. You could fill in the part name or something or add links and it would go check those links and automatically update the prices in the program and you would be able to see if there is anything going on with out having to go to all the websites....

I had a question, is it possible to retrieve information from a website using .net. I have seen other places do it like pricegrabber but im not sure if they have access to the actual database of the website because they are non profit or what.

let me know what you think

I did find this but i havnt looked into it that much yet

http://www.codeplex.com/htmlagilitypack

I also know if the website has a web service then i can grab it with .NET and parse it into and XML document but i dont think all the websites i want are going to have that... any ideas??
User is offlineProfile CardPM

Go to the top of the page


girasquid
post 8 Jul, 2008 - 10:04 AM
Post #2


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 1,205



Thanked 9 times

Dream Kudos: 625
My Contributions


Generally, these people are doing something known as "screen scraping" - they don't have access to the database. They go to the page, and know how the page's source is laid out - so they know what to look for to find the data they need. Screen scraping, while an easy way to get the data, isn't a reliable way - if the page structure suddenly changes, chances are pretty high that it will break your scraper.
User is offlineProfile CardPM

Go to the top of the page

PsychoCoder
post 8 Jul, 2008 - 10:11 AM
Post #3


using DIC.Core;

Group Icon
Joined: 26 Jul, 2007
Posts: 7,831



Thanked 80 times

Dream Kudos: 8050

Expert In: VB, VB.Net, C#, SQL, ASP, ASP.Net, Web Development, HTML, CSS, Win32 API, Javascript, mySQL, J#, GDI, Boo.Net

My Contributions


We use several scraping applications at work (we wrote them of course) and if it's built properly they can change the layout of the page however they want. The best way is to use Regular Expressions to search for links and item's you're after.

I think this sounds like a good tutorial for me to work on LOL!
User is online!Profile CardPM

Go to the top of the page

girasquid
post 8 Jul, 2008 - 11:12 AM
Post #4


Barbarbar

Group Icon
Joined: 3 Oct, 2006
Posts: 1,205



Thanked 9 times

Dream Kudos: 625
My Contributions


PsychoCoder's right - if you build your scraper properly, so long as the page doesn't change too drastically(like amazon.com turning into ebay or something), you should be okay. You do still have to be careful though, as page changes can break things.
User is offlineProfile CardPM

Go to the top of the page

killnine
post 8 Jul, 2008 - 11:25 AM
Post #5


D.I.C Head

**
Joined: 12 Feb, 2007
Posts: 104



Thanked 3 times
My Contributions


I would LOVE a tutorial on this. Wow, how interesting...
User is offlineProfile CardPM

Go to the top of the page

Eibach
post 8 Jul, 2008 - 12:55 PM
Post #6


New D.I.C Head

*
Joined: 8 Jul, 2008
Posts: 3


My Contributions


QUOTE(killnine @ 8 Jul, 2008 - 11:25 AM) *

I would LOVE a tutorial on this. Wow, how interesting...


thats what i was kinda looking for lol. well im going to look into the scraping thing a bit more and let you know what i find =)
User is offlineProfile CardPM

Go to the top of the page

Eibach
post 14 Jul, 2008 - 09:40 AM
Post #7


New D.I.C Head

*
Joined: 8 Jul, 2008
Posts: 3


My Contributions


so i was looking around found this.

http://will.incorrige.us/price-checker.cgi...ortby=costperGB

can anyone tell me how this guy did it, im not that familiar with what he did...
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 10/7/08 05:25PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month