Skip to content

ThirteenAG/node-js-geturl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-js-geturl

Small service that allows to get href attribute from a specified element on remote page.

Deploy

Usage

Use the following link to request a result:

https://node-js-geturl.herokuapp.com/?url=(<URL>)&selector=(<SELECTOR>)

Replace <URL> and <SELECTOR> with desired strings.

Examples

Getting href of 'Releases' link on this page:

https://node-js-geturl.herokuapp.com/?url=(https://github.com/ThirteenAG/node-js-geturl)&selector=(a[href*=releases])

Getting href of Github's privacy policy link on main page:

https://node-js-geturl.herokuapp.com/?url=(https://github.com/)&selector=(p.form-control-note > a[href*=terms])

Same thing, but with redirect:

https://node-js-geturl.herokuapp.com/?url=(https://github.com/)&selector=(p.form-control-note > a[href*=terms])&redirect