Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -269,16 +269,16 @@ def find_rss():
|
|
| 269 |
td = TextBlob(r_description)
|
| 270 |
td_phrases=td.noun_phrases
|
| 271 |
phrases=tt_phrases+td_phrases
|
| 272 |
-
|
| 273 |
-
for phrase in phrases:
|
| 274 |
-
if phrase_dict.get(phrase)!=None:
|
| 275 |
-
phrase_dict[phrase.lower()].append([timename,cnt])
|
| 276 |
-
else:
|
| 277 |
-
phrase_dict[phrase.lower()]=[[timename,cnt]]
|
| 278 |
-
lods = {"num":cnt,"title":r_title, "date":r_date, "description":r_description,"link":r_link, "noun_phrases":phrases}
|
| 279 |
lod_hash = {"title":r_title, "date":r_date, "description":r_description,"link":r_link}
|
| 280 |
-
|
| 281 |
hash_val=str(hash(str(lod_hash)))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 282 |
cnt+=1
|
| 283 |
except Exception as e:
|
| 284 |
print(f"Exception::{ea}")
|
|
|
|
| 269 |
td = TextBlob(r_description)
|
| 270 |
td_phrases=td.noun_phrases
|
| 271 |
phrases=tt_phrases+td_phrases
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 272 |
lod_hash = {"title":r_title, "date":r_date, "description":r_description,"link":r_link}
|
|
|
|
| 273 |
hash_val=str(hash(str(lod_hash)))
|
| 274 |
+
if not hash_val in hash_list:
|
| 275 |
+
|
| 276 |
+
for phrase in phrases:
|
| 277 |
+
if phrase_dict.get(phrase)!=None:
|
| 278 |
+
phrase_dict[phrase.lower()].append([timename,cnt])
|
| 279 |
+
else:
|
| 280 |
+
phrase_dict[phrase.lower()]=[[timename,cnt]]
|
| 281 |
+
lods = {"num":cnt,"title":r_title, "date":r_date, "description":r_description,"link":r_link, "noun_phrases":phrases}
|
| 282 |
cnt+=1
|
| 283 |
except Exception as e:
|
| 284 |
print(f"Exception::{ea}")
|