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

https://github.com/redraw/http-pup

http endpoint to parse dom on top of ericchiang/pup
https://github.com/redraw/http-pup

Last synced: about 1 month ago
JSON representation

http endpoint to parse dom on top of ericchiang/pup

Awesome Lists containing this project

README

          

# pupd

Simple web service on top of [pup](https://github.com/ericchiang/pup)

## Example

There's a running instance hosted on dom.now.sh

You can use the same [syntax](https://github.com/ericchiang/pup#examples), except it always returns JSON.

`https://dom.now.sh/parse?url=&selector=`

## Notes
Actually `selector` argument is sent as any parameter to `pup` binary (I didn't bother to parse it)

Despite I haven't taken a look at `pup` code, believing in its parsing job, it might be better to write this in Go using it as a module, I was just testing Python 3.5+ asyncio libraries