Side project - Accessing website database

Status
Not open for further replies.

chaotic_maelstrom

Wise, Aged Ars Veteran
188
Hi. I am not a programmer by trade, but I'm working on a side project where I'd like to access a website's behind-the-scenes database. The project involves accessing USGA handicap information from national databases such as GHIN and CDGA. The information I'm interested in is available to any user navigating the site. However whereas the typical user retrieves a few records (1-10) at a time, I'd like to retrieve several hundred specific records and copy/download the data into a spreadsheet.

The Big Question
1 - Is this possible? The information is there for anyone to access, but I don't know if admins typically lock down public databases to prevent 3rd party access. I'm not interested in hacking data, just more efficiently accessing it.

If this is possible, can anyone point me towards finding out how to connect and access this info? I'm really out of my depth here, but I'm using this project as a learning opportunity. Thanks.
 

foetusinc

Ars Scholae Palatinae
1,409
Subscriptor++
It depends on how they're presenting it. "Scraping" is as old as the web itself, but if you're lucky the web pages you're looking at just use javascript to call a service somewhere and get the raw data you're interested in in JSON or XML format. If it were me I'd start there and hope I got lucky. You can easily fire up a sniffer like Fiddler and just watch what happens with a couple manual lookups. Worst case, you can use a web scraping toolkit to extract the information you're interested in, and use a variety of tricks (timing, proxies, etc) to hide the fact that you're a bot. If you're really talking about hundreds of records and not thousands or millions, it's hard to imagine anybody noticing or caring. Then again, you never know what some dev or admin will get touchy about.


eta:
I have not used these myself, but here's a nice summary of various scraping tools:
http://govhack-toolkit.readthedocs.io/technical/scraping/
 
Status
Not open for further replies.