This is my code:
for post in socket("news", start=currentTime):
if post["body"] == 'xyz' and post["author"] == 'admin' and post["url"] == 'latestnews':
try:
print ("Found it!")
(...)
It's working, but only if post["body"]
is "xyz". If post["body"]
is "Bla bla bla xyz" then it's not working. What should I do if I want my script to dispaly "Found it!" even if post["body"]
contains
"Lorem ipsum dolor sit amet, eum ne maiorum volutpat, ei has erat eruditi, autem fierent evertitur at has xyz Case simul persius id mei, soleat laoreet assentior ea mel. Meis assum contentiones in cum, est ornatus salutandi id. Sanctus labores ius ne."
Sorry, but I'm new to Python :-/