2.1.56 • Published 8 months ago

xml-urls v2.1.56

Weekly downloads
42
License
MIT
Repository
github
Last release
8 months ago

xml-urls

Last version Coverage Status NPM Status

Get all URLs detected inside a Feed/Atom/RSS/Sitemap xml markup.

Install

$ npm install xml-urls --save

Usage

const xmlUrls = require('xml-urls')

;(async () => {
  const url = process.argv[2]
  if (!url) throw new TypeError('Need to provide an url as first argument.')
  const urls = await xmlUrls(url)

  urls.forEach(url => console.log(url))

  // => [
  //  'http://www.sitemappro.com/',
  //  'http://www.sitemappro.com/download.html',
  //  'http://www.sitemappro.com/register.html',
  //  'http://www.sitemappro.com/examples.html',
  //  'http://www.sitemappro.com/company.html',
  //  'http://www.sitemappro.com/contact.html',
  //  ...
  // ]
})()

See more at examples.

API

xmlUrls(urls, options)

url

Required Type: string

options

Type: object

Use it for providing html-get#options.

whitelist

Type: array Default: []

A list of links to be excluded from the final output. It supports regex patterns.

See matcher(https://github.com/sindresorhus/matcher#matcher-= for know more.

Related

  • html-urls – Get all urls from a HTML markup.
  • css-urls – Get all URLs referenced from stylesheet files.

License

xml-urls © Kiko Beats, released under the MIT License. Authored and maintained by Kiko Beats with help from contributors.

kikobeats.com · GitHub @Kiko Beats · X @Kikobeats

2.1.56

8 months ago

2.1.55

1 year ago

2.1.54

1 year ago

2.1.53

1 year ago

2.1.52

1 year ago

2.1.51

1 year ago

2.1.50

1 year ago

2.1.49

2 years ago

2.1.47

2 years ago

2.1.48

2 years ago

2.1.45

2 years ago

2.1.46

2 years ago

2.1.43

2 years ago

2.1.44

2 years ago

2.1.41

2 years ago

2.1.42

2 years ago

2.1.40

2 years ago

2.1.38

2 years ago

2.1.39

2 years ago

2.1.37

2 years ago

2.1.36

2 years ago

2.1.35

3 years ago

2.1.34

3 years ago

2.1.32

3 years ago

2.1.33

3 years ago

2.1.31

3 years ago

2.1.29

3 years ago

2.1.30

3 years ago

2.1.28

3 years ago

2.1.27

3 years ago

2.1.26

3 years ago

2.1.25

4 years ago

2.1.24

4 years ago

2.1.23

4 years ago

2.1.22

4 years ago

2.1.21

4 years ago

2.1.20

4 years ago

2.1.19

5 years ago

2.1.18

5 years ago

2.1.17

5 years ago

2.1.16

5 years ago

2.1.15

5 years ago

2.1.13

5 years ago

2.1.12

5 years ago

2.1.11

5 years ago

2.1.10

5 years ago

2.1.9

5 years ago

2.1.8

6 years ago

2.1.7

6 years ago

2.1.4

6 years ago

2.1.3

6 years ago

2.1.2

6 years ago

2.1.1

6 years ago

2.1.0

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago