|
5 | 5 | # title: Newspaper
|
6 | 6 | # description: Returns content information from a web page article
|
7 | 7 | # 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 |
16 | 38 | # 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"' |
29 | 42 | # ---
|
30 | 43 |
|
31 | 44 | import json
|
|
0 commit comments