getting data over website
-
hey guys..i want develop a program which will connect a website and it will save the some results in it..i found an example for it but there the developer import a dll to use some facebook features in his project..but in the site i want my program to connect has not such dll..so how i can get that results over the site ??
-
hey guys..i want develop a program which will connect a website and it will save the some results in it..i found an example for it but there the developer import a dll to use some facebook features in his project..but in the site i want my program to connect has not such dll..so how i can get that results over the site ??
It really depends on what site you are trying to get data from, but if it was a general purpose site, you could consider using screen scraping.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
-
It really depends on what site you are trying to get data from, but if it was a general purpose site, you could consider using screen scraping.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
i will try to get it from a lottery site the results of the lottery i mean but it is not open source site..so how i can get it from the site ? and what u mean screen scraping ?
-
i will try to get it from a lottery site the results of the lottery i mean but it is not open source site..so how i can get it from the site ? and what u mean screen scraping ?
What does Google tell you about screen scraping? Now that I've given you a hint as to what topic to look for, it's time for you to hone your researching chops.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
-
hey guys..i want develop a program which will connect a website and it will save the some results in it..i found an example for it but there the developer import a dll to use some facebook features in his project..but in the site i want my program to connect has not such dll..so how i can get that results over the site ??
Take a look at
XPath
. XPath allows you to query a specific fragment of a document which contains data you need (e.g. lottery results). However, the .NET FrameworkXPath
is not appropriate for HTML since it is not tolerant for errors. Real HTML pages contain a lot of errors and usually they are not valid XML documents. Use a free Html Agility Pack[^]Greetings - Jacek
-
It really depends on what site you are trying to get data from, but if it was a general purpose site, you could consider using screen scraping.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
-
I disagree that screen scraping would be a good solution for quering a web site, especially if you have access to a HTML content. I would take it as a last choice and only if I had nothing but a screen, which I can barely imagine.
Greetings - Jacek
Screen scraping is also a term used to describe scraping content from a website, especially as he has already said he doesn't have an API available, and that there's no guarantee that the site is XHTML compliant.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
-
Screen scraping is also a term used to describe scraping content from a website, especially as he has already said he doesn't have an API available, and that there's no guarantee that the site is XHTML compliant.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
I hate to argue on terminology, but I suppose you meant web scrapping[^]. The site does not really have to be XHTML compilant to query it (e.g. when using the library I mentioned in my another post). Ehm, whatever. Have a nice day/night or whatever currently is present in your time zone. :)
Greetings - Jacek
-
Take a look at
XPath
. XPath allows you to query a specific fragment of a document which contains data you need (e.g. lottery results). However, the .NET FrameworkXPath
is not appropriate for HTML since it is not tolerant for errors. Real HTML pages contain a lot of errors and usually they are not valid XML documents. Use a free Html Agility Pack[^]Greetings - Jacek
I use HtmlAgilityPack quite extensively as part of an automated testing framework (think; make HTTP request, get HTML response, check expectations using XPath). I found out yesterday, much to my chargrin, that it does not properly support attribute syntax. //someElement/@someAttribute should return
someAttribute
, it actually returnssomeElement
- making it totally non xpath compliant. Bit of a bugger IMO. -
I use HtmlAgilityPack quite extensively as part of an automated testing framework (think; make HTTP request, get HTML response, check expectations using XPath). I found out yesterday, much to my chargrin, that it does not properly support attribute syntax. //someElement/@someAttribute should return
someAttribute
, it actually returnssomeElement
- making it totally non xpath compliant. Bit of a bugger IMO. -
I hate to argue on terminology, but I suppose you meant web scrapping[^]. The site does not really have to be XHTML compilant to query it (e.g. when using the library I mentioned in my another post). Ehm, whatever. Have a nice day/night or whatever currently is present in your time zone. :)
Greetings - Jacek
Jacek Gajek wrote:
I suppose you meant web scrapping[^].
I stand (well sit actually) corrected. I've run into problems attempting scraping with Html Agility Pack in the past, so have tended to avoid it. Newer versions might have improved it somewhat. Have a 5 to correct whoever 2 voted it.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
-
Jacek Gajek wrote:
I suppose you meant web scrapping[^].
I stand (well sit actually) corrected. I've run into problems attempting scraping with Html Agility Pack in the past, so have tended to avoid it. Newer versions might have improved it somewhat. Have a 5 to correct whoever 2 voted it.
I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be
Forgive your enemies - it messes with their heads
-
hey guys..i want develop a program which will connect a website and it will save the some results in it..i found an example for it but there the developer import a dll to use some facebook features in his project..but in the site i want my program to connect has not such dll..so how i can get that results over the site ??
R/Sir hello i wanna attached a biomatric software with my login page so plz send me coding for it. God says i will very thanksfull for this. ************* sbajwa1@yahoo.in santokh singh