Im a long-time web builder who has wanted to begin to learn VB, but hasjust decided to begin programming because I now have a reason. And would like just a wee bit of advice, so that I can at least start in the right direction.
I would like to begin my programming journey by building a small app that grabs my game clubs scores and stats from off of a website.
To be more clear...
I am part of an online game club who plays online games on Yahoo'c gaming site. We can click on a link that takes us to a page that shows the detailed scores and stats of games we have played. We then manually enter these scores and stats back into our gaming club's database.
Now, I would like to build a small app that would:
1. Go to my "YAHOO GAMES SCORES & STATS" page.
2. Copy the Scores and stats of (specified) games
3. Paste the scores and stats into a file (text, Excel, etc...), OR EMAIL them in a formatted way.
My question is - where should I begin, what should I read? I Own VB 6 and VB.Net.
Well this is a ASP.Net solution but I think you could make it work for what you are trying to do. All I am doing is Screen Scraping from the Yahoo site. Keep in mind two things. 1) I am not sure whether Screen Scraping is legal or not without permission and 2) It probably will not work on a site where authentications is needed.
If you cut and paste this code as is and then browse to it you will get a screen like this (attached).
In the sample above everything is being sent to a lable but there is nothing that would stop you from putting the information into a email or a file. By the way you set the content you want to scrape with the RexEx. In the sample above it starts with <!-- BODY:END:MAIN:TOP --> and ends with <!-- - end FOOT ad call --->. If you look at the source of the original page you will see those comments in the html.
Well the label was just to show you that you could take partial content of a web page store it in a string and then pass it to the browser through the label. You could just as easily send the string in the body of an email or write it to a file.
As far as writing it to a file you are going to have to get that info from someone else because I have never done so. Although I don't think it should be all that hard.