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
- Host: GitHub
- URL: https://github.com/redraw/http-pup
- Owner: redraw
- Created: 2019-10-10T19:58:38.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-10T19:58:59.000Z (over 6 years ago)
- Last Synced: 2025-01-25T17:33:18.690Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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