<li>CSS - Limit text to this CSS rule, only text matching this CSS rule is included.</li>
132
132
<li>JSON - Limit text to this JSON rule, using <a href="https://pypi.org/project/jsonpath-ng/">JSONPath</a>, prefix with <code>"json:"</code>, use <code>json:$</code> to force re-formatting if required, <a
133
133
href="https://jsonpath.com/" target="new">test your JSONPath here</a></li>
134
-
<li>XPath - Limit text to this XPath rule, simply start with a forward-slash, example <code>//*[contains(@class, 'sametext')]</code>, <a
134
+
<li>XPath - Limit text to this XPath rule, simply start with a forward-slash, example <code>//*[contains(@class, 'sametext')]</code>or<code>xpath://*[contains(@class,'sametext')]</code>, <a
135
135
href="http://xpather.com/" target="new">test your XPath here</a></li>
136
136
</ul>
137
137
Please be sure that you thoroughly understand how to write CSS or JSONPath, XPath selector rules before filing an issue on GitHub! <a
Copy and Paste your Distill.io watch 'export' file, this should be a JSON file.</br>
45
+
This is <i>experimental</i>, supported fields are <code>name</code>, <code>uri</code>, <code>tags</code>, <code>config:selections</code>, the rest (including <code>schedule</code>) are ignored.
46
+
<br/>
47
+
<p>
48
+
How to export? <a href="https://distill.io/docs/web-monitor/how-export-and-import-monitors/">https://distill.io/docs/web-monitor/how-export-and-import-monitors/</a><br/>
49
+
Be sure to set your default fetcher to Chrome if required.</br>
assert b"xpath:(//div[@id='App']/div[contains(@class,'flex')]/main[contains(@class,'relative')]/section[contains(@class,'relative')]/div[@class='container']/div[contains(@class,'flex')]/div[contains(@class,'w-full')])[1]" in res.data
111
+
112
+
# did the tags work?
113
+
res = client.get( url_for("index"))
114
+
115
+
assert b"nice stuff" in res.data
116
+
assert b"nerd-news" in res.data
117
+
118
+
res = client.get(url_for("api_delete", uuid="all"), follow_redirects=True)