derekantrican / MountainProject

A scraper and reddit bot for the website MountainProject.com
57 stars 5 forks source link

Support BaseX Database #36

Closed derekantrican closed 4 years ago

derekantrican commented 5 years ago

It is free, has C# examples, and is a xml-based database

http://basex.org/

C# examples: https://github.com/BaseXdb/basex/tree/master/basex-api/src/main/c%23 BaseX for Dummies: http://files.basex.org/publications/dummies/BaseX_for_dummies.pdf (also includes a "how to set up as a server to access from the outside")

derekantrican commented 5 years ago

Here is an example query:

//Route/Name[matches(text(), 'alabama', 'i')]

This matches all Route elements where the Name matches "alabama" (case-insensitive). Also could start the query with //* instead to say "either Route or Area"

derekantrican commented 5 years ago

Here is how to perform a query on a remote BaseX database: http://docs.basex.org/wiki/REST#Command_Line

derekantrican commented 4 years ago

Closing as I think this is going to be irrelevant. The whole point of this was to open it up to be a public REST API but I've figured out how to accomplish that using ASP.NET instead