Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nicorobo/mountainscrape

🌄 A python script for scraping Mountain Project (for educational purposes)
https://github.com/nicorobo/mountainscrape

climbing scraper

Last synced: 24 days ago
JSON representation

🌄 A python script for scraping Mountain Project (for educational purposes)

Awesome Lists containing this project

README

        

# MountainScrape
🌄 A python script for scraping Mountain Project (for educational purposes)

## Using MountainScrape

MountainScrape Demo

### Dependencies

While in the root directory, install dependencies with `pip3 install -r requirements.txt`.

### Running Scraper

Enter `python3 scrape.py` followed by the root area's URL identifier, starting with /v/ (ex: */v/echo-canyon/105868640*) and the root areas name as a string (ex: *"Echo Canyon"*). This is temporary, soon you won't have to explicitly enter the name.

Scraping just the areas *(but not sending it anywhere)* would look like this: `python3 scrape.py /v/echo-canyon/105868640 "Echo Canyon"`

If you'd like to scrape the routes, include the --route flag. `python3 scrape.py --route /v/red-rock/105731932 "Red Rock"`

If you want the scraper to make formatted HTTP **PUT** requests, set up your API endpoint in `scraper.py`, and include the --db flag. `python3 scrape.py --route --db /v/lovers-leap/105733959 "Lover's Leap"`