HTML Parsing
#1
HTML Parsing
How do you do this?
There is a website (public domain info) that has data in a format that is useful but not easily obtained using the suplied tools (its a graphical illustration of a location on a map not the lat/lon of the data itself). I saw someone had parsed a section of it & come back with the raw data in more useable format (as in a csv/txt file).
So what is the trick?
There is a website (public domain info) that has data in a format that is useful but not easily obtained using the suplied tools (its a graphical illustration of a location on a map not the lat/lon of the data itself). I saw someone had parsed a section of it & come back with the raw data in more useable format (as in a csv/txt file).
So what is the trick?
#2
Scooby Regular
Join Date: Apr 2002
Location: elsewhere
Posts: 1,212
Likes: 0
Received 0 Likes
on
0 Posts
The technique is called "screen scraping" and if you Google for it you'll find quite a few example implimentations. I guess on Unix you could quickly hack together something using curl, grep and some regular expressions.
Here's a specific PHP script which will pass a query to Google and then scrape the results for reformatting.
Here's a specific PHP script which will pass a query to Google and then scrape the results for reformatting.
Thread
Thread Starter
Forum
Replies
Last Post
shorty87
Full Cars Breaking For Spares
19
22 December 2015 11:59 AM
Pro-Line Motorsport
Car Parts For Sale
2
29 September 2015 07:36 PM
shorty87
Wheels And Tyres For Sale
0
29 September 2015 02:18 PM