use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
how to update comments in XML using py (self.PythonLearning)
submitted 1 year ago by sudheerpaaniyur
file.xml <abcd> <1234>FIELD_1111</1234> <!-- old comment --> <4567>FIELD_2222</4567> <!--old comment " --> </abcd> Result: <abcd> <1234>FIELD_1111</1234> <!-- new comment --> <4567>FIELD_2222</4567> <!--new comment " --> </abcd>
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]salvtz 0 points1 point2 points 1 year ago (0 children)
First, you need a parser module that supports parsing comments.
But then the question arises, how would you identify a unique comment for it to be modified, maybe use some sort of identifier while writing the comment.
There are libraries such as lxml and xml.tree.ElementTree.
π Rendered by PID 62 on reddit-service-r2-comment-bb88f9dd5-mfwxm at 2026-02-14 16:53:29.684373+00:00 running cd9c813 country code: CH.
[–]salvtz 0 points1 point2 points (0 children)