How can you adjust the number of output lines?
When a change is detected how can we adjust the number of lines sent to the email / notification service? For me it isn't parsing the right data. I need more lines Morty!!
=========================
- CHANGED: MyWebsite
=========================
CHANGED: MyWebsite (https://someurl.com/)
--- @ Fri, 26 Jan 2018 13:47:05 -0600
+++ @ Sat, 27 Jan 2018 09:37:06 -0600
@@ -7,7 +7,7 @@
Ships within 7 business days
22 USD
Information
Sold Out
Add To Cart Product Shipping $9.99 22 USD
You can do this by changing (currently only in the code unfortunately) the following parameter "n":
https://docs.python.org/3/library/difflib.html#difflib.unified_diff
The call to change is here:
https://github.com/thp/urlwatch/blob/d085a64bb7945c8fefbba41c843c4942e2763e2a/lib/urlwatch/reporters.py#L103
Thanks for the reply!
Could this be a future feature request? The ability to change how many lines to return.
Feel free to create a pull request if you want to have this configurable.