Skip to content

Commit ee650c4

Browse files
committed
updated metadata
1 parent 433f0dc commit ee650c4

File tree

2 files changed

+57
-39
lines changed

2 files changed

+57
-39
lines changed

web-extract-link.py

+24-19
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,31 @@
55
# title: Website Link Extraction
66
# description: Returns information for all hyperlinks on one-or-more web pages matching a search string; information includes domain, link, and matching text.
77
# params:
8-
# - name: url
9-
# type: array
10-
# description: Urls of web pages to search; parameter can be a single url or a comma-delimited list of urls.
11-
# required: true
12-
# - name: search
13-
# type: string
14-
# description: The search string to use to find the corresponding links.
15-
# required: true
16-
# - name: properties
17-
# type: array
18-
# description: The properties to return (defaults to all properties). See "Notes" for a listing of the available properties.
19-
# required: false
8+
# - name: url
9+
# type: array
10+
# description: Urls of web pages to search; parameter can be a single url or a comma-delimited list of urls.
11+
# required: true
12+
# - name: search
13+
# type: string
14+
# description: The search string to use to find the corresponding links.
15+
# required: true
16+
# - name: properties
17+
# type: array
18+
# description: The properties to return (defaults to all properties). See "Returns" for a listing of the available properties.
19+
# required: false
20+
# returns:
21+
# - name: domain
22+
# type: string
23+
# description: The domain of the link for the matched item
24+
# - name: link
25+
# type: string
26+
# description: The link of the matched item
27+
# - name: text
28+
# type: string
29+
# description: The text of the matched item
2030
# examples:
21-
# - '"https://www.flex.io", "Contact Us"'
22-
# - '"https://news.ycombinator.com/news?p=1,https://news.ycombinator.com/news?p=2,https://news.ycombinator.com/news?p=3","Show HN"'
23-
# notes: |
24-
# The following properties are allowed:
25-
# * `domain`: the domain of the link for the matched item
26-
# * `link`: the link of the matched item
27-
# * `text`: the text of the matched item
31+
# - '"https://www.flex.io", "Contact Us"'
32+
# - '"https://news.ycombinator.com/news?p=1,https://news.ycombinator.com/news?p=2,https://news.ycombinator.com/news?p=3","Show HN"'
2833
# ---
2934

3035
import json

web-newspaper.py

+33-20
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,40 @@
55
# title: Newspaper
66
# description: Returns content information from a web page article
77
# params:
8-
# - name: url
9-
# type: string
10-
# description: Url for the article for which to get the info
11-
# required: true
12-
# - name: properties
13-
# type: array
14-
# description: The properties to return (defaults to all properties). See "Notes" for a listing of the available properties.
15-
# required: false
8+
# - name: url
9+
# type: string
10+
# description: Url for the article for which to get the info
11+
# required: true
12+
# - name: properties
13+
# type: array
14+
# description: The properties to return (defaults to all properties). See "Returns" for a listing of the available properties.
15+
# required: false
16+
# returns:
17+
# - name: title
18+
# type: string
19+
# description: The main title of the page article
20+
# - name: authors
21+
# type: string
22+
# description: The authors of the page article
23+
# - name: publish_date
24+
# type: string
25+
# description: The publish date of the page article
26+
# - name: text
27+
# type: string
28+
# description: The text of the page article
29+
# - name: top_image
30+
# type: string
31+
# description: The top image url for the page article
32+
# - name: images
33+
# type: string
34+
# description: A comma-delimited list of image urls for the page article
35+
# - name: movies
36+
# type: string
37+
# description: A comma-delimited list of movie urls for the page article
1638
# examples:
17-
# - '"https://www.flex.io"'
18-
# - '"https://www.flex.io", "text"'
19-
# - '"https://www.flex.io", "title, top_image"'
20-
# notes: |
21-
# The following properties are allowed:
22-
# * `title`: the main title of the page article
23-
# * `authors`: the authors of the page article
24-
# * `publish_date`: the publish date of the page article
25-
# * `text`: the text of the page article
26-
# * `top_image`: the top image url for the page article
27-
# * `images`: a comma-delimited list of image urls for the page article
28-
# * `movies`: a comma-delimited list of movie urls for the page article
39+
# - '"https://www.flex.io"'
40+
# - '"https://www.flex.io", "text"'
41+
# - '"https://www.flex.io", "title, top_image"'
2942
# ---
3043

3144
import json

0 commit comments

Comments
 (0)