From 31956e97b17050a31ab7cb772697d3a40ffe20cf Mon Sep 17 00:00:00 2001 From: Shrek Date: Sat, 9 Nov 2019 09:41:59 +0300 Subject: [PATCH 01/10] I add some basic functionality --- rss-reader.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 rss-reader.py diff --git a/rss-reader.py b/rss-reader.py new file mode 100644 index 0000000..e69de29 From 1d138ff8567290c77735ce0f67e73b10a84d0767 Mon Sep 17 00:00:00 2001 From: Shrek Date: Mon, 11 Nov 2019 23:46:40 +0300 Subject: [PATCH 02/10] add argparse module with non-full options --- rss-reader.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/rss-reader.py b/rss-reader.py index e69de29..3cfe794 100644 --- a/rss-reader.py +++ b/rss-reader.py @@ -0,0 +1,15 @@ +import argparse + + +def args(): + parser = argparse.ArgumentParser() + parser.add_argument("source",help="RSS URL",type=str) + parser.add_argument("--version",action='version', version='%(prog)s '+'v 1.0',help="Print version info", ) + parser.add_argument("--json",help="Print result as JSON in stdout",action="store_true") + parser.add_argument("--verbose",help="Outputs verbose status messages",action="store_true") + parser.add_argument("--limit",type=int,help="Limit news topics if this parameter provided") + args = parser.parse_args() + + +if __name__=="__main__": + args() \ No newline at end of file From f2981fbe3851680c8064daad665c284777900279 Mon Sep 17 00:00:00 2001 From: Shrek Date: Thu, 14 Nov 2019 22:45:39 +0300 Subject: [PATCH 03/10] arguments ended(without json arg) news parsing added --- rss-reader.py | 59 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 10 deletions(-) diff --git a/rss-reader.py b/rss-reader.py index 3cfe794..dfae1d4 100644 --- a/rss-reader.py +++ b/rss-reader.py @@ -1,15 +1,54 @@ import argparse +import logging +import urllib3 +from bs4 import BeautifulSoup +import feedparser +import urllib.request +import sys -def args(): - parser = argparse.ArgumentParser() - parser.add_argument("source",help="RSS URL",type=str) - parser.add_argument("--version",action='version', version='%(prog)s '+'v 1.0',help="Print version info", ) - parser.add_argument("--json",help="Print result as JSON in stdout",action="store_true") - parser.add_argument("--verbose",help="Outputs verbose status messages",action="store_true") - parser.add_argument("--limit",type=int,help="Limit news topics if this parameter provided") - args = parser.parse_args() +parser = argparse.ArgumentParser() +parser.add_argument("source", help="RSS URL", type=str) +parser.add_argument("--version", action='version', version='%(prog)s '+'v 1.1', help="Print version info", ) +parser.add_argument("--json", help="Print result as JSON in stdout", action="store_true") +parser.add_argument("--verbose", help="Outputs verbose status messages", action="store_true") +parser.add_argument("--limit", type=int, help="Limit news topics if this parameter provided") +args = parser.parse_args() -if __name__=="__main__": - args() \ No newline at end of file +def making_log(operation, message, file='loglist.log'): + """func can do 2 ops, if 1 to write if 0 to read""" + if bool(operation): + logging.basicConfig(filename=file,format='%(name)s - %(levelname)s - %(message)s-%(asctime)s', + level=logging.INFO) + logging.info(message) + else: print(open(file,'r').read()) + +def news_parsing(): + making_log(1,"Opened URL for news reading, URL: %s"%args.source) + making_log(1,"Limit is: (%s) "%(str(args.limit))) + soup = BeautifulSoup(urllib.request.urlopen(args.source), "xml") + list = soup.find_all("item") + making_log(1,"Find all tags in feed.") + print("\n\n\n") + for cout,feed in enumerate(list): + if cout != args.limit: + print("Title: " + feed.title.text, + "\nDate: " + feed.pubDate.text, + "\nLink: " + feed.link.text) + making_log(1,"Opened feed on %s link."%feed.link.text) + strmedia = str(feed.find_all("media:content")) + desc = feed.description.text + print("Feed: " + desc[(desc.find('a>')+1):desc.find('

Date: Sat, 16 Nov 2019 10:29:07 +0300 Subject: [PATCH 04/10] args work fully, json arg added, 1 iteration ended. --- README.md | 25 +++++++++++++++++++++++++ rss-reader.py | 46 ++++++++++++++++++++++++++++------------------ 2 files changed, 53 insertions(+), 18 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b770ed1 --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ + {"item": + + {"link": + //URL of feed + } + + {"body": + + {"title": + //title text + } + + {"feed": + //feed text + } + + {"images": + //images links + } + + {"date": + //publicate date + } + } + } \ No newline at end of file diff --git a/rss-reader.py b/rss-reader.py index dfae1d4..ea748b5 100644 --- a/rss-reader.py +++ b/rss-reader.py @@ -5,11 +5,12 @@ import feedparser import urllib.request import sys +import json parser = argparse.ArgumentParser() parser.add_argument("source", help="RSS URL", type=str) -parser.add_argument("--version", action='version', version='%(prog)s '+'v 1.1', help="Print version info", ) +parser.add_argument("--version", action='version', version='%(prog)s '+'v 1.2', help="Print version info", ) parser.add_argument("--json", help="Print result as JSON in stdout", action="store_true") parser.add_argument("--verbose", help="Outputs verbose status messages", action="store_true") parser.add_argument("--limit", type=int, help="Limit news topics if this parameter provided") @@ -19,36 +20,45 @@ def making_log(operation, message, file='loglist.log'): """func can do 2 ops, if 1 to write if 0 to read""" if bool(operation): - logging.basicConfig(filename=file,format='%(name)s - %(levelname)s - %(message)s-%(asctime)s', - level=logging.INFO) + logging.basicConfig(filename=file, format='%(name)s - %(levelname)s - %(message)s-%(asctime)s', + level=logging.INFO) logging.info(message) - else: print(open(file,'r').read()) + else: + print(open(file, 'r').read()) + def news_parsing(): - making_log(1,"Opened URL for news reading, URL: %s"%args.source) - making_log(1,"Limit is: (%s) "%(str(args.limit))) + making_log(1, "Opened URL for news reading, URL: %s" % args.source) + making_log(1, "Limit is: (%s) " % (str(args.limit))) soup = BeautifulSoup(urllib.request.urlopen(args.source), "xml") list = soup.find_all("item") - making_log(1,"Find all tags in feed.") + making_log(1, "Find all tags in feed.") print("\n\n\n") - for cout,feed in enumerate(list): + for cout, feed in enumerate(list): if cout != args.limit: - print("Title: " + feed.title.text, - "\nDate: " + feed.pubDate.text, - "\nLink: " + feed.link.text) - making_log(1,"Opened feed on %s link."%feed.link.text) + making_log(1, "Opened feed on %s link." % feed.link.text) strmedia = str(feed.find_all("media:content")) desc = feed.description.text - print("Feed: " + desc[(desc.find('a>')+1):desc.find('

') + 1):desc.find('

') + 1):desc.find('

Date: Sun, 17 Nov 2019 12:50:59 +0300 Subject: [PATCH 05/10] version with package setup --- rssreader/__init__.py | 0 rssreader/__main__.py | 2 ++ rssreader/cmd.py | 9 +++++++++ rss-reader.py => rssreader/rssreader.py | 27 ++++++++++++++----------- setup.py | 24 ++++++++++++++++++++++ 5 files changed, 50 insertions(+), 12 deletions(-) create mode 100644 rssreader/__init__.py create mode 100644 rssreader/__main__.py create mode 100644 rssreader/cmd.py rename rss-reader.py => rssreader/rssreader.py (76%) create mode 100644 setup.py diff --git a/rssreader/__init__.py b/rssreader/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/rssreader/__main__.py b/rssreader/__main__.py new file mode 100644 index 0000000..6304bf9 --- /dev/null +++ b/rssreader/__main__.py @@ -0,0 +1,2 @@ +from rssreader.rssreader import main +main() diff --git a/rssreader/cmd.py b/rssreader/cmd.py new file mode 100644 index 0000000..af9ec27 --- /dev/null +++ b/rssreader/cmd.py @@ -0,0 +1,9 @@ +from rssreader import rssreader + + +def main(): + rssreader.main() + + +if __name__ == '__main__': + main() \ No newline at end of file diff --git a/rss-reader.py b/rssreader/rssreader.py similarity index 76% rename from rss-reader.py rename to rssreader/rssreader.py index ea748b5..ed7f75f 100644 --- a/rss-reader.py +++ b/rssreader/rssreader.py @@ -8,15 +8,6 @@ import json -parser = argparse.ArgumentParser() -parser.add_argument("source", help="RSS URL", type=str) -parser.add_argument("--version", action='version', version='%(prog)s '+'v 1.2', help="Print version info", ) -parser.add_argument("--json", help="Print result as JSON in stdout", action="store_true") -parser.add_argument("--verbose", help="Outputs verbose status messages", action="store_true") -parser.add_argument("--limit", type=int, help="Limit news topics if this parameter provided") -args = parser.parse_args() - - def making_log(operation, message, file='loglist.log'): """func can do 2 ops, if 1 to write if 0 to read""" if bool(operation): @@ -58,7 +49,19 @@ def news_parsing(): making_log(1, "Iteration closed with code 0(all_goods)") break +def main(): + parser = argparse.ArgumentParser() + parser.add_argument("source", help="RSS URL", type=str) + parser.add_argument("--version", action='version', version='%(prog)s ' + 'v 1.2', help="Print version info", ) + parser.add_argument("--json", help="Print result as JSON in stdout", action="store_true") + parser.add_argument("--verbose", help="Outputs verbose status messages", action="store_true") + parser.add_argument("--limit", type=int, help="Limit news topics if this parameter provided") + args = parser.parse_args() + news_parsing() + if args.verbose: + making_log(0, '') + + +if __name__ == '__main__': + main() -news_parsing() -if args.verbose: - making_log(0, '') diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..26d7eb5 --- /dev/null +++ b/setup.py @@ -0,0 +1,24 @@ +from setuptools import setup + + +setup( + name="rssreader", + version=1.3, + description="CLI utility to process RSS", + long_description="CLI utility for rss reading", + author="Vladislav Bakhmat", + author_email="uservice589@gmail.com", + packages=["rssreader"], + install_requires=[ + "argparse==1.4.0", + "bs4==0.0.1", + "urllib3==1.25.7", + "logger==1.4", + "feedparser==5.2.1" + ], + python_requires='>=3.8', + entry_points={ + 'console_scripts': + ['rss-reader = %s.cmd:main' % "rssreader"] + } +) \ No newline at end of file From 943e837c392b32668c939b8cd5e949bf4e5fdfbe Mon Sep 17 00:00:00 2001 From: Shrek Date: Tue, 26 Nov 2019 22:54:29 +0300 Subject: [PATCH 06/10] class maked, 2 itarations ended(remaked) --- rssreader/cmd.py | 9 --- rssreader/rssreader.py | 137 +++++++++++++++++++++++++++++------------ setup.py | 4 +- 3 files changed, 100 insertions(+), 50 deletions(-) delete mode 100644 rssreader/cmd.py diff --git a/rssreader/cmd.py b/rssreader/cmd.py deleted file mode 100644 index af9ec27..0000000 --- a/rssreader/cmd.py +++ /dev/null @@ -1,9 +0,0 @@ -from rssreader import rssreader - - -def main(): - rssreader.main() - - -if __name__ == '__main__': - main() \ No newline at end of file diff --git a/rssreader/rssreader.py b/rssreader/rssreader.py index ed7f75f..4e39de2 100644 --- a/rssreader/rssreader.py +++ b/rssreader/rssreader.py @@ -6,8 +6,19 @@ import urllib.request import sys import json +import datetime +def argsparsing(): + parser = argparse.ArgumentParser() + parser.add_argument("source", help="RSS URL", type=str) + parser.add_argument("--version", action='version', version='%(prog)s ' + 'v 1.2', help="Print version info", ) + parser.add_argument("--json", help="Print result as JSON in stdout", action="store_true") + parser.add_argument("--verbose", help="Outputs verbose status messages", action="store_true") + parser.add_argument("--limit", type=int, help="Limit news topics if this parameter provided") + parser.add_argument("--date",type=int,help="Read cashed news by date in next format YMD") + return parser.parse_args() + def making_log(operation, message, file='loglist.log'): """func can do 2 ops, if 1 to write if 0 to read""" if bool(operation): @@ -18,50 +29,98 @@ def making_log(operation, message, file='loglist.log'): print(open(file, 'r').read()) -def news_parsing(): - making_log(1, "Opened URL for news reading, URL: %s" % args.source) - making_log(1, "Limit is: (%s) " % (str(args.limit))) - soup = BeautifulSoup(urllib.request.urlopen(args.source), "xml") - list = soup.find_all("item") - making_log(1, "Find all tags in feed.") - print("\n\n\n") - for cout, feed in enumerate(list): - if cout != args.limit: - making_log(1, "Opened feed on %s link." % feed.link.text) - strmedia = str(feed.find_all("media:content")) - desc = feed.description.text - url_list = [] - for i in range(strmedia.count('url="')): - url_list.append(strmedia[strmedia.find('url="'): (strmedia.find('"', (strmedia.find('url="')+5))+1)]) - if args.json: - print(json.dumps({"item": {"link": feed.link.text, "body": {"title": feed.title.text, - "date": feed.pubDate.text, "images": str(url_list), - "feed": desc[(desc.find('a>') + 1):desc.find('

tags in feed.") + making_log(1, "Limit is: (%s) " % (str(self.arguments.limit))) + for cout, feed in enumerate(list): + if cout != self.arguments.limit: + making_log(1, "Opened feed on %s link." % feed.link.text) + strmedia = str(feed.find_all("media:content")) + ded = feed.description.text + self.links=[] + for i in range(strmedia.count('url="')): + self.links.append(strmedia[strmedia.find('url="'): (strmedia.find('"', (strmedia.find('url="')+5))+1)]) + self.link.append(feed.link.text) + self.title.append(feed.title.text) + self.pubDate.append(feed.pubDate.text) + self.desc.append(ded[(ded.find('a>') + 1):ded.find('

') + 1):desc.find('

Date: Thu, 28 Nov 2019 00:39:25 +0300 Subject: [PATCH 07/10] caching work correctly(need remake images links), iteration3 ended --- README.md | 26 +---- jsonStandart.md | 25 +++++ rssreader/feeddata.txt | 226 +++++++++++++++++++++++++++++++++++++++++ rssreader/rssreader.py | 64 ++++++++---- 4 files changed, 298 insertions(+), 43 deletions(-) create mode 100644 jsonStandart.md create mode 100644 rssreader/feeddata.txt diff --git a/README.md b/README.md index b770ed1..0a8444a 100644 --- a/README.md +++ b/README.md @@ -1,25 +1 @@ - {"item": - - {"link": - //URL of feed - } - - {"body": - - {"title": - //title text - } - - {"feed": - //feed text - } - - {"images": - //images links - } - - {"date": - //publicate date - } - } - } \ No newline at end of file +Caching news write in file feeddata.txt and read by lines \ No newline at end of file diff --git a/jsonStandart.md b/jsonStandart.md new file mode 100644 index 0000000..b770ed1 --- /dev/null +++ b/jsonStandart.md @@ -0,0 +1,25 @@ + {"item": + + {"link": + //URL of feed + } + + {"body": + + {"title": + //title text + } + + {"feed": + //feed text + } + + {"images": + //images links + } + + {"date": + //publicate date + } + } + } \ No newline at end of file diff --git a/rssreader/feeddata.txt b/rssreader/feeddata.txt new file mode 100644 index 0000000..88cab64 --- /dev/null +++ b/rssreader/feeddata.txt @@ -0,0 +1,226 @@ +Tue, 26 Nov 2019 11:53:58 -0500 +Trump claims he'd 'love' for top aides to testify, but won't allow it +https://news.yahoo.com/trump-love-to-bolton-pompeo-mulvaney-testify-future-presidents-165358664.html +>“I would love to have Mike Pompeo, Rick Perry, Mick Mulvaney and many others testify,” the president tweeted after a federal judge ordered former White House counsel Don McGahn to appear before Congress. The Justice Department is appealing the ruling. +['url="http://l2.yimg.com/uu/api/res/1.2/TgVZglrCFTfAh0pGmt2a7w--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/32988370-1077-11ea-96fd-9ec776e1c97b"'] +Tue, 26 Nov 2019 13:58:47 -0500 +Then and now: Swiss glacier photos show impact of global warming +https://news.yahoo.com/then-and-now-new-photos-vs-old-in-comparisons-show-dramatic-swiss-glacier-retreat-185847495.html +>A collection of images — showing photos of modern-day mountain landscapes next to archive shots of the same scenes decades earlier — reveals the dramatic change. +['url="http://l2.yimg.com/uu/api/res/1.2/TgVZglrCFTfAh0pGmt2a7w--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/32988370-1077-11ea-96fd-9ec776e1c97b"'] +Tue, 26 Nov 2019 11:53:58 -0500 +Trump claims he'd 'love' for top aides to testify, but won't allow it +https://news.yahoo.com/trump-love-to-bolton-pompeo-mulvaney-testify-future-presidents-165358664.html +>“I would love to have Mike Pompeo, Rick Perry, Mick Mulvaney and many others testify,” the president tweeted after a federal judge ordered former White House counsel Don McGahn to appear before Congress. The Justice Department is appealing the ruling. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 13:58:47 -0500 +Then and now: Swiss glacier photos show impact of global warming +https://news.yahoo.com/then-and-now-new-photos-vs-old-in-comparisons-show-dramatic-swiss-glacier-retreat-185847495.html +>A collection of images — showing photos of modern-day mountain landscapes next to archive shots of the same scenes decades earlier — reveals the dramatic change. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 15:04:38 -0500 +A Chicago Student Ignored a Man's Late-Night Catcalls. Now He's Charged With Her Murder +https://news.yahoo.com/chicago-student-ignored-mans-night-162139462.html +>Prosecutors said the man was 'angry that he was being ignored' +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 07:49:24 -0500 +Woman kept husband’s body in freezer for up to 11 years +https://news.yahoo.com/woman-kept-husband-body-freezer-124300451.html +>The body of a man was found in the freezer of a deceased woman’s home and may have been kept there for over a decade, police say.The remains of both individuals were found during a welfare check on a 75-year old woman who had not been seen in about two weeks by a building maintenance worker. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 11:43:44 -0500 +Russia says it showed nuclear missile system to U.S. inspectors +https://news.yahoo.com/russia-says-showed-nuclear-missile-164344891.html +>Russia's Ministry of Defense said on Tuesday it had shown the country's new Avangard nuclear missile system to U.S. inspectors for the first time, a development that Moscow said showed a key arms control treaty was still effective. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 11:16:00 -0500 +Fox News guest: 'Why the hell does Tucker Carlson still have a job here' +https://news.yahoo.com/fox-news-guest-why-hell-161600239.html +>It's been a hectic few hours for Fox News' Tucker Carlson.First, Carlson on Monday evening said he was rooting for Russia in its conflict with Ukraine before walking it back. Then a Fox News guest, Democratic National Committee Vice Chair Michael Blake, was asked Tuesday by anchor Bill Hemmer to respond to Carlson's theory that former First Lady Michelle Obama might be the Democratic presidential nominee in 2020. Blake, though, didn't seem too interested in answering that question (for what it's worth, he did briefly say an Obama run is "not going to happen.")Instead, Blake wanted to figure out "why the hell" Carlson was still employed by the network, especially in light of Carlson calling white supremacy a hoax. Hemmer tried to steer Blake back toward the Obama conversation, but not before his guest repeated his assertion that Carlson should be out of a job. > Micheal Blake stuns Fox News anchor: "Why the hell does Tucker Carlson still have a job here?" https://t.co/XRVoPsI8GF pic.twitter.com/h3KTT6QPu1> > -- Media Matters (@mmfa) November 26, 2019More stories from theweek.com Trump, who is technically obese, tweets portrait of himself as muscular Rocky Balboa ICE has now arrested 250 foreign students who enrolled in its fake university Reddit users tear into anonymous Trump official in Ask Me Anything +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 10:41:58 -0500 +The Latest: Evacuations ended for California wildfire +https://news.yahoo.com/latest-rain-falls-southern-california-154158059.html +>All evacuation orders and warnings have been lifted for Southern California communities that were threatened by a mountain wildfire this week and then faced a risk of debris flows as a storm moved in. The Santa Barbara County Sheriff’s Office announced the end of the measures late Wednesday morning. Overnight, however, the county issued a warning for residents in and below the fire area to be ready to evacuate in case of debris-laden runoff from a storm that doused the fire. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 09:54:59 -0500 +‘She slipped': Grandfather speaks on 1-year-old’s fatal fall from Royal Caribbean cruise ship +https://news.yahoo.com/she-slipped-grandfather-speaks-1-135821260.html +>"I didn't realize there wasn't any glass until the absolutely that it was too late," Salvatore Anello told CBS news in a story that aired Tuesday. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 01:30:26 -0500 +UPDATE 4-Protester emerges to urge Hong Kong police not to enter university +https://news.yahoo.com/1-hong-kong-university-siege-063026300.html +>Hong Kong police said they would enter Polytechnic University on Thursday after a two-week siege drove most protesters out, but just before midnight, a masked man emerged and asked them to halt their plan. Earlier in the day, District Commander Ho Yun-sing said police planned to enter the campus to "process dangerous items and collect evidence" and that any remaining protesters would be given medical treatment. The university on Kowloon peninsula was turned into a battleground in mid-November, when protesters barricaded themselves in and clashed with riot police in a hail of petrol bombs, water cannon and tear gas. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 15:53:11 -0500 +Gillum sets sights on denying Trump victory in Florida in 2020 +https://news.yahoo.com/andrew-gillum-sets-sights-on-denying-trump-victory-in-florida-in-2020-205311950.html +>Andrew Gillum says he knows why President Trump left his lifelong home of New York to take up residence in Florida and doubts his “antics” for reelection will work.  +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 18:15:00 -0500 +24-Cylinder Monster Truck Big Rig Sells for $12 Million +https://news.yahoo.com/24-cylinder-monster-truck-big-231500405.html +>"Thor24" brought in big numbers this past weekend. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 03:34:55 -0500 +First bodies of UK truck victims arrive in Vietnam +https://news.yahoo.com/first-remains-uk-truck-victims-arrive-vietnam-234148399.html +>The first remains of the 39 people found dead in a truck in Britain last month arrived in Vietnam Wednesday where they were met by huge crowds of sobbing relatives who have been waiting weeks for their return. Sixteen bodies were flown from London to Hanoi, where they were quickly shuttled in ambulances to their hometowns in central Vietnam. Hundreds of people filled the compound of a church in rural Dien Chau district in central Nghe An province to greet two returned bodies, many carrying white flowers to offer the families of the dead. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 03:21:39 -0500 +One of Supreme Court's most important abortion cases has just begun +https://news.yahoo.com/one-supreme-courts-most-important-082139004.html +>A 63-page opening brief was filed late Monday night by the Center for Reproductive Rights (CRR) in the case +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 17:15:57 -0500 +Police cited 55 people for eating on San Francisco trains. Only nine were white +https://news.yahoo.com/police-cited-55-people-eating-221557904.html +>New data renews concerns about racial profiling, just weeks after viral video showed police detaining a black man who was eating a sandwichPassengers wait for a Bart train to depart the Fruitvale station in Oakland, California. Photograph: Ben Margot/APPolice officers for the San Francisco Bay Area commuter train system disproportionately target black riders with citations for eating and drinking, according to new data, renewing concerns about racial profiling.The Bay Area Rapid Transit (Bart) data was released following a viral video showing police handcuffing a 31-year-old black man who was cited for eating a breakfast sandwich on his way to work. The new records show that more than 81% of people stopped for eating and drinking on Bart since 2014 were people of color, and that the vast majority of them were black.Stops for eating and drinking on trains or platforms are infrequent within Bart, the train system that runs between San Francisco, Oakland and surrounding suburbs. Of 55 people cited for this offense over the last five years, 33 were black passengers, representing 60% of the citations. Nine of the stops were white passengers, seven were listed as Hispanic, five were categorized as “other” and one was unknown, according to the data, which was obtained by the San Francisco Examiner.Only 10% of Bart’s total riders are black. Ridership data, collected last year, showed that 35% of overall riders are white, 32% are Asian/Pacific Islander and 17% are Latino.Bart spokeswoman Alicia Trost said in an email that the data shows citations are “very rare” and are “handed out at stations across the system”.She said: “When an officer witnesses someone eating, they remind the rider that eating is not allowed and if the rider puts the food away no citation is necessary. It is a rare occurrence to need to issue a citation after reminding the rider not to eat.”John Burris, a civil rights lawyer representing Steve Foster, the man stopped in the recent video, said Tuesday that the data was not surprising and was evidence of racial profiling. “This is a form of biased policing, and it’s very harmful to African Americans. Other people eat sandwiches all the time, and they don’t get stopped.”The 15-minute video that received national attention showed a white Bart police officer stopping Foster at the station in Pleasant Hill, north-east of Oakland. The footage showed the officer holding on to Foster’s backpack and telling him he was not free to go until he identified himself and that he was resisting arrest. Backup officers arrived, and Foster was handcuffed and taken away in front of morning commuters.The citation he received required him to pay a $250 fine or do 48 hours of community service.“It was so insulting to him and disturbing,” said Burris. “He was humiliated in front of all the people on Bart.”The video sparked protests and widespread criticism, and Bart leaders eventually apologized and promised to investigate. Bob Powers, Bart’s general manager, said at the time he was “disappointed how the situation unfolded”.A citation or arrest for a minor infraction like eating can escalate to a significantly more serious conflict, said Cat Brooks, the co-founder of the Anti Police-Terror Project in Oakland.“Eating a sandwich is certainly not a reason to throw yet another black body into the criminal justice system,” she said. “We have to hold these cops accountable for racial profiling.”Bart police have long faced scrutiny for brutality and racial profiling, in particular following the 2009 killing of Oscar Grant, an unarmed 22-year-old shot dead on the Fruitvale station platform. There have since been a number of other killings and allegations of abuse by Bart police.Bart should not be citing anyone for eating in the first place, Brooks said.Burris said there should be better training to prevent biased policing, and that it was wrong to handcuff riders for eating.Trost, the Bart spokeswoman, said all officers receive training in “fair and impartial policing, bias-based policing … and de-escalation”.The Bart controversy comes as the Metropolitan Transportation Authority (MTA) in New York is facing intense backlash over a number of viral videos of police, including the arrest of a food vendor selling churros, and an incident in which officers pulled guns on a teenager accused of fare evasion. * This article was amended on 27 November 2019 to correct a mathematical error. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Mon, 25 Nov 2019 22:30:00 -0500 +China's H-20 Stealth Bomber Could Be the U.S. Military's Worst Nightmare +https://news.yahoo.com/chinas-h-20-stealth-bomber-033000620.html +>Be on notice. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 12:57:21 -0500 +71 Gifts That Give Good Vibes +https://news.yahoo.com/71-gifts-good-vibes-175721472.html +> +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 03:21:59 -0500 +Dubai court reduces sentence for editor who killed his wife +https://news.yahoo.com/dubai-court-reduces-sentence-editor-082159699.html +>A British newspaper editor convicted of killing his wife with a hammer had his sentence reduced by Dubai’s Court of Appeal on Wednesday. The court ordered that former Gulf News editor Francis Matthew must serve a seven-year sentence for manslaughter in the 2017 killing of his wife, Jane. Matthew had received as much as a 15-year sentence for the killing. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 12:23:29 -0500 +U.S. rejects proposal for spy swap of ex-Marine held in Russia +https://news.yahoo.com/u-rejects-proposal-spy-swap-172329877.html +>The United States rejected on Wednesday a suggestion it seek a prisoner swap involving a former U.S. Marine jailed in Russia for nearly a year over spying allegations, and called for his immediate release. Paul Whelan, who holds U.S., British, Canadian and Irish passports, was detained by agents from Russia's Federal Security Service in a Moscow hotel room on Dec. 28 last year. After a U.S. diplomat visited him in jail on Wednesday, the U.S. embassy complained about Whelan's declining health and called Russia's treatment of him "shameful", saying Moscow had refused to allow the diplomat to bring him Thanksgiving dinner. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Mon, 25 Nov 2019 17:16:06 -0500 +Trump supporters say God chose him to be president +https://news.yahoo.com/trump-supporters-say-god-chose-him-to-be-president-221606696.html +>Energy Secretary Rick Perry and former U.S. Ambassador to the U.N. Nikki Haley see God’s hand in picking Donald Trump as president. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 20:25:30 -0500 +'Sleepwalking toward climate catastrophe:' World must slash emissions immediately, UN report says +https://news.yahoo.com/sleepwalking-toward-climate-catastrophe-world-182856896.html +>The world's nations must make steep cuts to greenhouse gas emissions immediately or risk missing the targets they’ve agreed on, a U.N. report says. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Mon, 25 Nov 2019 18:40:38 -0500 +Frenchman, actor kidnapped in Mexico freed: officials +https://news.yahoo.com/kidnappers-demand-ransom-frenchman-mexico-204627972.html +>A French citizen and a Mexican actor kidnapped in a national park in central Mexico were freed Monday, officials said. The two men, identified as Frederic Michel and Alejandro Sandi, were traveling in all-terrain vehicles in the park around the Nevado de Toluca volcano when they were ambushed and abducted on Sunday, witnesses said. A source with Mexico's anti-kidnapping unit told AFP both victims were unharmed. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 01:09:55 -0500 +Jury hears 911 call from night engaged doctors were killed in penthouse +https://news.yahoo.com/jury-hears-911-call-night-060955562.html +Tue, 26 Nov 2019 11:53:58 -0500 +Trump claims he'd 'love' for top aides to testify, but won't allow it +https://news.yahoo.com/trump-love-to-bolton-pompeo-mulvaney-testify-future-presidents-165358664.html +>“I would love to have Mike Pompeo, Rick Perry, Mick Mulvaney and many others testify,” the president tweeted after a federal judge ordered former White House counsel Don McGahn to appear before Congress. The Justice Department is appealing the ruling. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 13:58:47 -0500 +Then and now: Swiss glacier photos show impact of global warming +https://news.yahoo.com/then-and-now-new-photos-vs-old-in-comparisons-show-dramatic-swiss-glacier-retreat-185847495.html +>A collection of images — showing photos of modern-day mountain landscapes next to archive shots of the same scenes decades earlier — reveals the dramatic change. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 15:04:38 -0500 +A Chicago Student Ignored a Man's Late-Night Catcalls. Now He's Charged With Her Murder +https://news.yahoo.com/chicago-student-ignored-mans-night-162139462.html +>Prosecutors said the man was 'angry that he was being ignored' +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 07:49:24 -0500 +Woman kept husband’s body in freezer for up to 11 years +https://news.yahoo.com/woman-kept-husband-body-freezer-124300451.html +>The body of a man was found in the freezer of a deceased woman’s home and may have been kept there for over a decade, police say.The remains of both individuals were found during a welfare check on a 75-year old woman who had not been seen in about two weeks by a building maintenance worker. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 11:43:44 -0500 +Russia says it showed nuclear missile system to U.S. inspectors +https://news.yahoo.com/russia-says-showed-nuclear-missile-164344891.html +>Russia's Ministry of Defense said on Tuesday it had shown the country's new Avangard nuclear missile system to U.S. inspectors for the first time, a development that Moscow said showed a key arms control treaty was still effective. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 11:16:00 -0500 +Fox News guest: 'Why the hell does Tucker Carlson still have a job here' +https://news.yahoo.com/fox-news-guest-why-hell-161600239.html +>It's been a hectic few hours for Fox News' Tucker Carlson.First, Carlson on Monday evening said he was rooting for Russia in its conflict with Ukraine before walking it back. Then a Fox News guest, Democratic National Committee Vice Chair Michael Blake, was asked Tuesday by anchor Bill Hemmer to respond to Carlson's theory that former First Lady Michelle Obama might be the Democratic presidential nominee in 2020. Blake, though, didn't seem too interested in answering that question (for what it's worth, he did briefly say an Obama run is "not going to happen.")Instead, Blake wanted to figure out "why the hell" Carlson was still employed by the network, especially in light of Carlson calling white supremacy a hoax. Hemmer tried to steer Blake back toward the Obama conversation, but not before his guest repeated his assertion that Carlson should be out of a job. > Micheal Blake stuns Fox News anchor: "Why the hell does Tucker Carlson still have a job here?" https://t.co/XRVoPsI8GF pic.twitter.com/h3KTT6QPu1> > -- Media Matters (@mmfa) November 26, 2019More stories from theweek.com Trump, who is technically obese, tweets portrait of himself as muscular Rocky Balboa ICE has now arrested 250 foreign students who enrolled in its fake university Reddit users tear into anonymous Trump official in Ask Me Anything +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 10:41:58 -0500 +The Latest: Evacuations ended for California wildfire +https://news.yahoo.com/latest-rain-falls-southern-california-154158059.html +>All evacuation orders and warnings have been lifted for Southern California communities that were threatened by a mountain wildfire this week and then faced a risk of debris flows as a storm moved in. The Santa Barbara County Sheriff’s Office announced the end of the measures late Wednesday morning. Overnight, however, the county issued a warning for residents in and below the fire area to be ready to evacuate in case of debris-laden runoff from a storm that doused the fire. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 09:54:59 -0500 +‘She slipped': Grandfather speaks on 1-year-old’s fatal fall from Royal Caribbean cruise ship +https://news.yahoo.com/she-slipped-grandfather-speaks-1-135821260.html +>"I didn't realize there wasn't any glass until the absolutely that it was too late," Salvatore Anello told CBS news in a story that aired Tuesday. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 01:30:26 -0500 +UPDATE 4-Protester emerges to urge Hong Kong police not to enter university +https://news.yahoo.com/1-hong-kong-university-siege-063026300.html +>Hong Kong police said they would enter Polytechnic University on Thursday after a two-week siege drove most protesters out, but just before midnight, a masked man emerged and asked them to halt their plan. Earlier in the day, District Commander Ho Yun-sing said police planned to enter the campus to "process dangerous items and collect evidence" and that any remaining protesters would be given medical treatment. The university on Kowloon peninsula was turned into a battleground in mid-November, when protesters barricaded themselves in and clashed with riot police in a hail of petrol bombs, water cannon and tear gas. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 15:53:11 -0500 +Gillum sets sights on denying Trump victory in Florida in 2020 +https://news.yahoo.com/andrew-gillum-sets-sights-on-denying-trump-victory-in-florida-in-2020-205311950.html +>Andrew Gillum says he knows why President Trump left his lifelong home of New York to take up residence in Florida and doubts his “antics” for reelection will work.  +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 18:15:00 -0500 +24-Cylinder Monster Truck Big Rig Sells for $12 Million +https://news.yahoo.com/24-cylinder-monster-truck-big-231500405.html +>"Thor24" brought in big numbers this past weekend. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 03:34:55 -0500 +First bodies of UK truck victims arrive in Vietnam +https://news.yahoo.com/first-remains-uk-truck-victims-arrive-vietnam-234148399.html +>The first remains of the 39 people found dead in a truck in Britain last month arrived in Vietnam Wednesday where they were met by huge crowds of sobbing relatives who have been waiting weeks for their return. Sixteen bodies were flown from London to Hanoi, where they were quickly shuttled in ambulances to their hometowns in central Vietnam. Hundreds of people filled the compound of a church in rural Dien Chau district in central Nghe An province to greet two returned bodies, many carrying white flowers to offer the families of the dead. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 03:21:39 -0500 +One of Supreme Court's most important abortion cases has just begun +https://news.yahoo.com/one-supreme-courts-most-important-082139004.html +>A 63-page opening brief was filed late Monday night by the Center for Reproductive Rights (CRR) in the case +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 17:15:57 -0500 +Police cited 55 people for eating on San Francisco trains. Only nine were white +https://news.yahoo.com/police-cited-55-people-eating-221557904.html +>New data renews concerns about racial profiling, just weeks after viral video showed police detaining a black man who was eating a sandwichPassengers wait for a Bart train to depart the Fruitvale station in Oakland, California. Photograph: Ben Margot/APPolice officers for the San Francisco Bay Area commuter train system disproportionately target black riders with citations for eating and drinking, according to new data, renewing concerns about racial profiling.The Bay Area Rapid Transit (Bart) data was released following a viral video showing police handcuffing a 31-year-old black man who was cited for eating a breakfast sandwich on his way to work. The new records show that more than 81% of people stopped for eating and drinking on Bart since 2014 were people of color, and that the vast majority of them were black.Stops for eating and drinking on trains or platforms are infrequent within Bart, the train system that runs between San Francisco, Oakland and surrounding suburbs. Of 55 people cited for this offense over the last five years, 33 were black passengers, representing 60% of the citations. Nine of the stops were white passengers, seven were listed as Hispanic, five were categorized as “other” and one was unknown, according to the data, which was obtained by the San Francisco Examiner.Only 10% of Bart’s total riders are black. Ridership data, collected last year, showed that 35% of overall riders are white, 32% are Asian/Pacific Islander and 17% are Latino.Bart spokeswoman Alicia Trost said in an email that the data shows citations are “very rare” and are “handed out at stations across the system”.She said: “When an officer witnesses someone eating, they remind the rider that eating is not allowed and if the rider puts the food away no citation is necessary. It is a rare occurrence to need to issue a citation after reminding the rider not to eat.”John Burris, a civil rights lawyer representing Steve Foster, the man stopped in the recent video, said Tuesday that the data was not surprising and was evidence of racial profiling. “This is a form of biased policing, and it’s very harmful to African Americans. Other people eat sandwiches all the time, and they don’t get stopped.”The 15-minute video that received national attention showed a white Bart police officer stopping Foster at the station in Pleasant Hill, north-east of Oakland. The footage showed the officer holding on to Foster’s backpack and telling him he was not free to go until he identified himself and that he was resisting arrest. Backup officers arrived, and Foster was handcuffed and taken away in front of morning commuters.The citation he received required him to pay a $250 fine or do 48 hours of community service.“It was so insulting to him and disturbing,” said Burris. “He was humiliated in front of all the people on Bart.”The video sparked protests and widespread criticism, and Bart leaders eventually apologized and promised to investigate. Bob Powers, Bart’s general manager, said at the time he was “disappointed how the situation unfolded”.A citation or arrest for a minor infraction like eating can escalate to a significantly more serious conflict, said Cat Brooks, the co-founder of the Anti Police-Terror Project in Oakland.“Eating a sandwich is certainly not a reason to throw yet another black body into the criminal justice system,” she said. “We have to hold these cops accountable for racial profiling.”Bart police have long faced scrutiny for brutality and racial profiling, in particular following the 2009 killing of Oscar Grant, an unarmed 22-year-old shot dead on the Fruitvale station platform. There have since been a number of other killings and allegations of abuse by Bart police.Bart should not be citing anyone for eating in the first place, Brooks said.Burris said there should be better training to prevent biased policing, and that it was wrong to handcuff riders for eating.Trost, the Bart spokeswoman, said all officers receive training in “fair and impartial policing, bias-based policing … and de-escalation”.The Bart controversy comes as the Metropolitan Transportation Authority (MTA) in New York is facing intense backlash over a number of viral videos of police, including the arrest of a food vendor selling churros, and an incident in which officers pulled guns on a teenager accused of fare evasion. * This article was amended on 27 November 2019 to correct a mathematical error. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Mon, 25 Nov 2019 22:30:00 -0500 +China's H-20 Stealth Bomber Could Be the U.S. Military's Worst Nightmare +https://news.yahoo.com/chinas-h-20-stealth-bomber-033000620.html +>Be on notice. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 12:57:21 -0500 +71 Gifts That Give Good Vibes +https://news.yahoo.com/71-gifts-good-vibes-175721472.html +> +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 03:21:59 -0500 +Dubai court reduces sentence for editor who killed his wife +https://news.yahoo.com/dubai-court-reduces-sentence-editor-082159699.html +>A British newspaper editor convicted of killing his wife with a hammer had his sentence reduced by Dubai’s Court of Appeal on Wednesday. The court ordered that former Gulf News editor Francis Matthew must serve a seven-year sentence for manslaughter in the 2017 killing of his wife, Jane. Matthew had received as much as a 15-year sentence for the killing. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Wed, 27 Nov 2019 12:23:29 -0500 +U.S. rejects proposal for spy swap of ex-Marine held in Russia +https://news.yahoo.com/u-rejects-proposal-spy-swap-172329877.html +>The United States rejected on Wednesday a suggestion it seek a prisoner swap involving a former U.S. Marine jailed in Russia for nearly a year over spying allegations, and called for his immediate release. Paul Whelan, who holds U.S., British, Canadian and Irish passports, was detained by agents from Russia's Federal Security Service in a Moscow hotel room on Dec. 28 last year. After a U.S. diplomat visited him in jail on Wednesday, the U.S. embassy complained about Whelan's declining health and called Russia's treatment of him "shameful", saying Moscow had refused to allow the diplomat to bring him Thanksgiving dinner. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Mon, 25 Nov 2019 17:16:06 -0500 +Trump supporters say God chose him to be president +https://news.yahoo.com/trump-supporters-say-god-chose-him-to-be-president-221606696.html +>Energy Secretary Rick Perry and former U.S. Ambassador to the U.N. Nikki Haley see God’s hand in picking Donald Trump as president. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 20:25:30 -0500 +'Sleepwalking toward climate catastrophe:' World must slash emissions immediately, UN report says +https://news.yahoo.com/sleepwalking-toward-climate-catastrophe-world-182856896.html +>The world's nations must make steep cuts to greenhouse gas emissions immediately or risk missing the targets they’ve agreed on, a U.N. report says. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Mon, 25 Nov 2019 18:40:38 -0500 +Frenchman, actor kidnapped in Mexico freed: officials +https://news.yahoo.com/kidnappers-demand-ransom-frenchman-mexico-204627972.html +>A French citizen and a Mexican actor kidnapped in a national park in central Mexico were freed Monday, officials said. The two men, identified as Frederic Michel and Alejandro Sandi, were traveling in all-terrain vehicles in the park around the Nevado de Toluca volcano when they were ambushed and abducted on Sunday, witnesses said. A source with Mexico's anti-kidnapping unit told AFP both victims were unharmed. +['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] +Tue, 26 Nov 2019 01:09:55 -0500 +Jury hears 911 call from night engaged doctors were killed in penthouse +https://news.yahoo.com/jury-hears-911-call-night-060955562.html diff --git a/rssreader/rssreader.py b/rssreader/rssreader.py index 4e39de2..13a9302 100644 --- a/rssreader/rssreader.py +++ b/rssreader/rssreader.py @@ -16,7 +16,7 @@ def argsparsing(): parser.add_argument("--json", help="Print result as JSON in stdout", action="store_true") parser.add_argument("--verbose", help="Outputs verbose status messages", action="store_true") parser.add_argument("--limit", type=int, help="Limit news topics if this parameter provided") - parser.add_argument("--date",type=int,help="Read cashed news by date in next format YMD") + parser.add_argument("--date",type=int,help="Read cashed news by date in next format YYMMDD") return parser.parse_args() def making_log(operation, message, file='loglist.log'): @@ -40,12 +40,13 @@ def __init__(self): self.link=[] self.desc=[] self.links=[] - + self.datalist=[] def feed_find(self): soup = BeautifulSoup(urllib.request.urlopen(self.arguments.source), "xml") making_log(1, "Opened URL for news reading, URL: %s" % self.arguments.source) list = soup.find_all("item") + datafeed={} making_log(1, "Find all tags in feed.") making_log(1, "Limit is: (%s) " % (str(self.arguments.limit))) for cout, feed in enumerate(list): @@ -81,42 +82,69 @@ def print_news(self): print("\n\n\n") - #def date_convert(self): - + def date_convert(self): + if len(str(self.arguments.date))>8 or len(str(self.arguments.date))<8 : + print("Error in date input") + return False + + return True def filewrite(self): for index in range(len(self.title)): fp=open("feeddata.txt","a") - fp.write("Title: ") - fp.write(str(self.title[index])) - fp.write(" !\nDate: ") fp.write(str(self.pubDate[index])) - fp.write(" !\nLink: ") + fp.write(" \n") + fp.write(str(self.title[index])) + fp.write(" \n") fp.write(str(self.link[index])) - fp.write(" !\nFeed: ") + fp.write(" \n") fp.write(str(self.desc[index])) - fp.write(" !\nImages: ") + fp.write(" \n") fp.write(str(self.links)) - fp.write(' !\n\n\n') + fp.write(' \n') fp.close() def fileread(self): fp=open("feeddata.txt","r") + flag=True for line in fp: - print(line) + #monttdict={'Jan':'01','Feb':'02','Mar':'03','Apr':'04','May':'05','Jun':'06','Jul':'07','Aug':'08','Sep':'09','Oct':'10','Nov':'11','Dec':'12'} + day=line[(line.find(", ")+2):line.find(" ",line.find(", ")+2)] + month1=line[line.find(" ",line.find(", ")+2):line.find(" ",line.find(", ")+5)] + month1=month1[1:] + year=line[(line.rfind(month1)+4):(line.rfind(month1)+8)] + if month1=='Nov': month1='11' + elif month1=='Jan': month1='01' + cachedate=year+month1+day + if str(cachedate)==str(self.arguments.date): + flag=False + self.pubDate.append(line) + self.title.append(fp.readline()) + self.link.append(fp.readline()) + self.desc.append(fp.readline()) + self.links.append(fp.readline()) + if flag: print("No news on this date :(") fp.close() + + def main(): news=NewsRss() - news.feed_find() - news.print_news() - if news.arguments.verbose: - making_log(0,'') - #news.filewrite() - #news.fileread() + if news.arguments.date: + if news.date_convert(): + news.fileread() + news.print_news() + if news.arguments.verbose: + making_log(0,'') + else: + news.feed_find() + news.print_news() + news.filewrite() + if news.arguments.verbose: + making_log(0,'') if __name__=='__main__': From 83fa6983c56b7e7c7d39d044106b40c2b7298195 Mon Sep 17 00:00:00 2001 From: Shrek Date: Fri, 29 Nov 2019 01:29:24 +0300 Subject: [PATCH 08/10] Images link repaired, html convertation added --- .gitignore | 2 + README.md | 17 +- ...ctically everything else in governme.html" | 14 + ...342\200\231 with Mormon church backi.html" | 14 + ... bury first victims of UK truck trage.html | 14 + rssreader/feeddata.txt | 756 ++++++++++++------ rssreader/rssreader.py | 56 +- 7 files changed, 633 insertions(+), 240 deletions(-) create mode 100644 "rssreader/Kushner named Trump\342\200\231s border-wall czar \342\200\224 along with practically everything else in governme.html" create mode 100644 "rssreader/Utah banning \342\200\230conversion therapy\342\200\231 with Mormon church backi.html" create mode 100644 rssreader/Vietnamese families bury first victims of UK truck trage.html diff --git a/.gitignore b/.gitignore index 894a44c..5ae93fd 100644 --- a/.gitignore +++ b/.gitignore @@ -102,3 +102,5 @@ venv.bak/ # mypy .mypy_cache/ +.html + diff --git a/README.md b/README.md index 0a8444a..048c079 100644 --- a/README.md +++ b/README.md @@ -1 +1,16 @@ -Caching news write in file feeddata.txt and read by lines \ No newline at end of file +Caching news write in file feeddata.txt and read by lines + +html scheme: + + + Title + + +

TITLE

+

DATE

+

LINK

+

FEED

+

IMAGES LINKS

+ + + \ No newline at end of file diff --git "a/rssreader/Kushner named Trump\342\200\231s border-wall czar \342\200\224 along with practically everything else in governme.html" "b/rssreader/Kushner named Trump\342\200\231s border-wall czar \342\200\224 along with practically everything else in governme.html" new file mode 100644 index 0000000..9ecc365 --- /dev/null +++ "b/rssreader/Kushner named Trump\342\200\231s border-wall czar \342\200\224 along with practically everything else in governme.html" @@ -0,0 +1,14 @@ + + + + Kushner named Trump’s border-wall czar — along with practically everything else in government + + +

Title: Kushner named Trump’s border-wall czar — along with practically everything else in government

+

Date: Tue, 26 Nov 2019 17:33:14 -0500

+

Link: https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html

+

Feed: Kushner named Trump’s border-wall czar — along with practically everything else in governmen

+

+ + + \ No newline at end of file diff --git "a/rssreader/Utah banning \342\200\230conversion therapy\342\200\231 with Mormon church backi.html" "b/rssreader/Utah banning \342\200\230conversion therapy\342\200\231 with Mormon church backi.html" new file mode 100644 index 0000000..d4c60e8 --- /dev/null +++ "b/rssreader/Utah banning \342\200\230conversion therapy\342\200\231 with Mormon church backi.html" @@ -0,0 +1,14 @@ + + + + Utah banning ‘conversion therapy’ with Mormon church backing + + +

Title: Utah banning ‘conversion therapy’ with Mormon church backing

+

Date: Wed, 27 Nov 2019 10:58:44 -0500

+

Link: https://news.yahoo.com/utah-set-become-19th-state-155844890.html

+

Feed: Utah banning ‘conversion therapy’ with Mormon church backin

+

+ + + \ No newline at end of file diff --git a/rssreader/Vietnamese families bury first victims of UK truck trage.html b/rssreader/Vietnamese families bury first victims of UK truck trage.html new file mode 100644 index 0000000..18cb645 --- /dev/null +++ b/rssreader/Vietnamese families bury first victims of UK truck trage.html @@ -0,0 +1,14 @@ + + + + Vietnamese families bury first victims of UK truck tragedy + + +

Title: Vietnamese families bury first victims of UK truck tragedy

+

Date: Wed, 27 Nov 2019 19:27:12 -0500

+

Link: https://news.yahoo.com/vietnamese-families-bury-first-victims-uk-truck-tragedy-105302929.html

+

Feed: Vietnamese families bury first victims of UK truck traged

+

+ + + \ No newline at end of file diff --git a/rssreader/feeddata.txt b/rssreader/feeddata.txt index 88cab64..f2c7be0 100644 --- a/rssreader/feeddata.txt +++ b/rssreader/feeddata.txt @@ -1,226 +1,530 @@ -Tue, 26 Nov 2019 11:53:58 -0500 -Trump claims he'd 'love' for top aides to testify, but won't allow it -https://news.yahoo.com/trump-love-to-bolton-pompeo-mulvaney-testify-future-presidents-165358664.html ->“I would love to have Mike Pompeo, Rick Perry, Mick Mulvaney and many others testify,” the president tweeted after a federal judge ordered former White House counsel Don McGahn to appear before Congress. The Justice Department is appealing the ruling. -['url="http://l2.yimg.com/uu/api/res/1.2/TgVZglrCFTfAh0pGmt2a7w--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/32988370-1077-11ea-96fd-9ec776e1c97b"'] -Tue, 26 Nov 2019 13:58:47 -0500 -Then and now: Swiss glacier photos show impact of global warming -https://news.yahoo.com/then-and-now-new-photos-vs-old-in-comparisons-show-dramatic-swiss-glacier-retreat-185847495.html ->A collection of images — showing photos of modern-day mountain landscapes next to archive shots of the same scenes decades earlier — reveals the dramatic change. -['url="http://l2.yimg.com/uu/api/res/1.2/TgVZglrCFTfAh0pGmt2a7w--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/32988370-1077-11ea-96fd-9ec776e1c97b"'] -Tue, 26 Nov 2019 11:53:58 -0500 -Trump claims he'd 'love' for top aides to testify, but won't allow it -https://news.yahoo.com/trump-love-to-bolton-pompeo-mulvaney-testify-future-presidents-165358664.html ->“I would love to have Mike Pompeo, Rick Perry, Mick Mulvaney and many others testify,” the president tweeted after a federal judge ordered former White House counsel Don McGahn to appear before Congress. The Justice Department is appealing the ruling. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 13:58:47 -0500 -Then and now: Swiss glacier photos show impact of global warming -https://news.yahoo.com/then-and-now-new-photos-vs-old-in-comparisons-show-dramatic-swiss-glacier-retreat-185847495.html ->A collection of images — showing photos of modern-day mountain landscapes next to archive shots of the same scenes decades earlier — reveals the dramatic change. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 15:04:38 -0500 -A Chicago Student Ignored a Man's Late-Night Catcalls. Now He's Charged With Her Murder -https://news.yahoo.com/chicago-student-ignored-mans-night-162139462.html ->Prosecutors said the man was 'angry that he was being ignored' -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 07:49:24 -0500 -Woman kept husband’s body in freezer for up to 11 years -https://news.yahoo.com/woman-kept-husband-body-freezer-124300451.html ->The body of a man was found in the freezer of a deceased woman’s home and may have been kept there for over a decade, police say.The remains of both individuals were found during a welfare check on a 75-year old woman who had not been seen in about two weeks by a building maintenance worker. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 11:43:44 -0500 -Russia says it showed nuclear missile system to U.S. inspectors -https://news.yahoo.com/russia-says-showed-nuclear-missile-164344891.html ->Russia's Ministry of Defense said on Tuesday it had shown the country's new Avangard nuclear missile system to U.S. inspectors for the first time, a development that Moscow said showed a key arms control treaty was still effective. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 11:16:00 -0500 -Fox News guest: 'Why the hell does Tucker Carlson still have a job here' -https://news.yahoo.com/fox-news-guest-why-hell-161600239.html ->It's been a hectic few hours for Fox News' Tucker Carlson.First, Carlson on Monday evening said he was rooting for Russia in its conflict with Ukraine before walking it back. Then a Fox News guest, Democratic National Committee Vice Chair Michael Blake, was asked Tuesday by anchor Bill Hemmer to respond to Carlson's theory that former First Lady Michelle Obama might be the Democratic presidential nominee in 2020. Blake, though, didn't seem too interested in answering that question (for what it's worth, he did briefly say an Obama run is "not going to happen.")Instead, Blake wanted to figure out "why the hell" Carlson was still employed by the network, especially in light of Carlson calling white supremacy a hoax. Hemmer tried to steer Blake back toward the Obama conversation, but not before his guest repeated his assertion that Carlson should be out of a job. > Micheal Blake stuns Fox News anchor: "Why the hell does Tucker Carlson still have a job here?" https://t.co/XRVoPsI8GF pic.twitter.com/h3KTT6QPu1> > -- Media Matters (@mmfa) November 26, 2019More stories from theweek.com Trump, who is technically obese, tweets portrait of himself as muscular Rocky Balboa ICE has now arrested 250 foreign students who enrolled in its fake university Reddit users tear into anonymous Trump official in Ask Me Anything -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 10:41:58 -0500 -The Latest: Evacuations ended for California wildfire -https://news.yahoo.com/latest-rain-falls-southern-california-154158059.html ->All evacuation orders and warnings have been lifted for Southern California communities that were threatened by a mountain wildfire this week and then faced a risk of debris flows as a storm moved in. The Santa Barbara County Sheriff’s Office announced the end of the measures late Wednesday morning. Overnight, however, the county issued a warning for residents in and below the fire area to be ready to evacuate in case of debris-laden runoff from a storm that doused the fire. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 09:54:59 -0500 -‘She slipped': Grandfather speaks on 1-year-old’s fatal fall from Royal Caribbean cruise ship -https://news.yahoo.com/she-slipped-grandfather-speaks-1-135821260.html ->"I didn't realize there wasn't any glass until the absolutely that it was too late," Salvatore Anello told CBS news in a story that aired Tuesday. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 01:30:26 -0500 -UPDATE 4-Protester emerges to urge Hong Kong police not to enter university -https://news.yahoo.com/1-hong-kong-university-siege-063026300.html ->Hong Kong police said they would enter Polytechnic University on Thursday after a two-week siege drove most protesters out, but just before midnight, a masked man emerged and asked them to halt their plan. Earlier in the day, District Commander Ho Yun-sing said police planned to enter the campus to "process dangerous items and collect evidence" and that any remaining protesters would be given medical treatment. The university on Kowloon peninsula was turned into a battleground in mid-November, when protesters barricaded themselves in and clashed with riot police in a hail of petrol bombs, water cannon and tear gas. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 15:53:11 -0500 -Gillum sets sights on denying Trump victory in Florida in 2020 -https://news.yahoo.com/andrew-gillum-sets-sights-on-denying-trump-victory-in-florida-in-2020-205311950.html ->Andrew Gillum says he knows why President Trump left his lifelong home of New York to take up residence in Florida and doubts his “antics” for reelection will work.  -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 18:15:00 -0500 -24-Cylinder Monster Truck Big Rig Sells for $12 Million -https://news.yahoo.com/24-cylinder-monster-truck-big-231500405.html ->"Thor24" brought in big numbers this past weekend. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 03:34:55 -0500 -First bodies of UK truck victims arrive in Vietnam -https://news.yahoo.com/first-remains-uk-truck-victims-arrive-vietnam-234148399.html ->The first remains of the 39 people found dead in a truck in Britain last month arrived in Vietnam Wednesday where they were met by huge crowds of sobbing relatives who have been waiting weeks for their return. Sixteen bodies were flown from London to Hanoi, where they were quickly shuttled in ambulances to their hometowns in central Vietnam. Hundreds of people filled the compound of a church in rural Dien Chau district in central Nghe An province to greet two returned bodies, many carrying white flowers to offer the families of the dead. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 03:21:39 -0500 -One of Supreme Court's most important abortion cases has just begun -https://news.yahoo.com/one-supreme-courts-most-important-082139004.html ->A 63-page opening brief was filed late Monday night by the Center for Reproductive Rights (CRR) in the case -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 17:15:57 -0500 -Police cited 55 people for eating on San Francisco trains. Only nine were white -https://news.yahoo.com/police-cited-55-people-eating-221557904.html ->New data renews concerns about racial profiling, just weeks after viral video showed police detaining a black man who was eating a sandwichPassengers wait for a Bart train to depart the Fruitvale station in Oakland, California. Photograph: Ben Margot/APPolice officers for the San Francisco Bay Area commuter train system disproportionately target black riders with citations for eating and drinking, according to new data, renewing concerns about racial profiling.The Bay Area Rapid Transit (Bart) data was released following a viral video showing police handcuffing a 31-year-old black man who was cited for eating a breakfast sandwich on his way to work. The new records show that more than 81% of people stopped for eating and drinking on Bart since 2014 were people of color, and that the vast majority of them were black.Stops for eating and drinking on trains or platforms are infrequent within Bart, the train system that runs between San Francisco, Oakland and surrounding suburbs. Of 55 people cited for this offense over the last five years, 33 were black passengers, representing 60% of the citations. Nine of the stops were white passengers, seven were listed as Hispanic, five were categorized as “other” and one was unknown, according to the data, which was obtained by the San Francisco Examiner.Only 10% of Bart’s total riders are black. Ridership data, collected last year, showed that 35% of overall riders are white, 32% are Asian/Pacific Islander and 17% are Latino.Bart spokeswoman Alicia Trost said in an email that the data shows citations are “very rare” and are “handed out at stations across the system”.She said: “When an officer witnesses someone eating, they remind the rider that eating is not allowed and if the rider puts the food away no citation is necessary. It is a rare occurrence to need to issue a citation after reminding the rider not to eat.”John Burris, a civil rights lawyer representing Steve Foster, the man stopped in the recent video, said Tuesday that the data was not surprising and was evidence of racial profiling. “This is a form of biased policing, and it’s very harmful to African Americans. Other people eat sandwiches all the time, and they don’t get stopped.”The 15-minute video that received national attention showed a white Bart police officer stopping Foster at the station in Pleasant Hill, north-east of Oakland. The footage showed the officer holding on to Foster’s backpack and telling him he was not free to go until he identified himself and that he was resisting arrest. Backup officers arrived, and Foster was handcuffed and taken away in front of morning commuters.The citation he received required him to pay a $250 fine or do 48 hours of community service.“It was so insulting to him and disturbing,” said Burris. “He was humiliated in front of all the people on Bart.”The video sparked protests and widespread criticism, and Bart leaders eventually apologized and promised to investigate. Bob Powers, Bart’s general manager, said at the time he was “disappointed how the situation unfolded”.A citation or arrest for a minor infraction like eating can escalate to a significantly more serious conflict, said Cat Brooks, the co-founder of the Anti Police-Terror Project in Oakland.“Eating a sandwich is certainly not a reason to throw yet another black body into the criminal justice system,” she said. “We have to hold these cops accountable for racial profiling.”Bart police have long faced scrutiny for brutality and racial profiling, in particular following the 2009 killing of Oscar Grant, an unarmed 22-year-old shot dead on the Fruitvale station platform. There have since been a number of other killings and allegations of abuse by Bart police.Bart should not be citing anyone for eating in the first place, Brooks said.Burris said there should be better training to prevent biased policing, and that it was wrong to handcuff riders for eating.Trost, the Bart spokeswoman, said all officers receive training in “fair and impartial policing, bias-based policing … and de-escalation”.The Bart controversy comes as the Metropolitan Transportation Authority (MTA) in New York is facing intense backlash over a number of viral videos of police, including the arrest of a food vendor selling churros, and an incident in which officers pulled guns on a teenager accused of fare evasion. * This article was amended on 27 November 2019 to correct a mathematical error. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Mon, 25 Nov 2019 22:30:00 -0500 -China's H-20 Stealth Bomber Could Be the U.S. Military's Worst Nightmare -https://news.yahoo.com/chinas-h-20-stealth-bomber-033000620.html ->Be on notice. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 12:57:21 -0500 -71 Gifts That Give Good Vibes -https://news.yahoo.com/71-gifts-good-vibes-175721472.html -> -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 03:21:59 -0500 -Dubai court reduces sentence for editor who killed his wife -https://news.yahoo.com/dubai-court-reduces-sentence-editor-082159699.html ->A British newspaper editor convicted of killing his wife with a hammer had his sentence reduced by Dubai’s Court of Appeal on Wednesday. The court ordered that former Gulf News editor Francis Matthew must serve a seven-year sentence for manslaughter in the 2017 killing of his wife, Jane. Matthew had received as much as a 15-year sentence for the killing. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 12:23:29 -0500 -U.S. rejects proposal for spy swap of ex-Marine held in Russia -https://news.yahoo.com/u-rejects-proposal-spy-swap-172329877.html ->The United States rejected on Wednesday a suggestion it seek a prisoner swap involving a former U.S. Marine jailed in Russia for nearly a year over spying allegations, and called for his immediate release. Paul Whelan, who holds U.S., British, Canadian and Irish passports, was detained by agents from Russia's Federal Security Service in a Moscow hotel room on Dec. 28 last year. After a U.S. diplomat visited him in jail on Wednesday, the U.S. embassy complained about Whelan's declining health and called Russia's treatment of him "shameful", saying Moscow had refused to allow the diplomat to bring him Thanksgiving dinner. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Mon, 25 Nov 2019 17:16:06 -0500 -Trump supporters say God chose him to be president -https://news.yahoo.com/trump-supporters-say-god-chose-him-to-be-president-221606696.html ->Energy Secretary Rick Perry and former U.S. Ambassador to the U.N. Nikki Haley see God’s hand in picking Donald Trump as president. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 20:25:30 -0500 -'Sleepwalking toward climate catastrophe:' World must slash emissions immediately, UN report says -https://news.yahoo.com/sleepwalking-toward-climate-catastrophe-world-182856896.html ->The world's nations must make steep cuts to greenhouse gas emissions immediately or risk missing the targets they’ve agreed on, a U.N. report says. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Mon, 25 Nov 2019 18:40:38 -0500 -Frenchman, actor kidnapped in Mexico freed: officials -https://news.yahoo.com/kidnappers-demand-ransom-frenchman-mexico-204627972.html ->A French citizen and a Mexican actor kidnapped in a national park in central Mexico were freed Monday, officials said. The two men, identified as Frederic Michel and Alejandro Sandi, were traveling in all-terrain vehicles in the park around the Nevado de Toluca volcano when they were ambushed and abducted on Sunday, witnesses said. A source with Mexico's anti-kidnapping unit told AFP both victims were unharmed. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 01:09:55 -0500 -Jury hears 911 call from night engaged doctors were killed in penthouse -https://news.yahoo.com/jury-hears-911-call-night-060955562.html -Tue, 26 Nov 2019 11:53:58 -0500 -Trump claims he'd 'love' for top aides to testify, but won't allow it -https://news.yahoo.com/trump-love-to-bolton-pompeo-mulvaney-testify-future-presidents-165358664.html ->“I would love to have Mike Pompeo, Rick Perry, Mick Mulvaney and many others testify,” the president tweeted after a federal judge ordered former White House counsel Don McGahn to appear before Congress. The Justice Department is appealing the ruling. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 13:58:47 -0500 -Then and now: Swiss glacier photos show impact of global warming -https://news.yahoo.com/then-and-now-new-photos-vs-old-in-comparisons-show-dramatic-swiss-glacier-retreat-185847495.html ->A collection of images — showing photos of modern-day mountain landscapes next to archive shots of the same scenes decades earlier — reveals the dramatic change. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 15:04:38 -0500 -A Chicago Student Ignored a Man's Late-Night Catcalls. Now He's Charged With Her Murder -https://news.yahoo.com/chicago-student-ignored-mans-night-162139462.html ->Prosecutors said the man was 'angry that he was being ignored' -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 07:49:24 -0500 -Woman kept husband’s body in freezer for up to 11 years -https://news.yahoo.com/woman-kept-husband-body-freezer-124300451.html ->The body of a man was found in the freezer of a deceased woman’s home and may have been kept there for over a decade, police say.The remains of both individuals were found during a welfare check on a 75-year old woman who had not been seen in about two weeks by a building maintenance worker. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 11:43:44 -0500 -Russia says it showed nuclear missile system to U.S. inspectors -https://news.yahoo.com/russia-says-showed-nuclear-missile-164344891.html ->Russia's Ministry of Defense said on Tuesday it had shown the country's new Avangard nuclear missile system to U.S. inspectors for the first time, a development that Moscow said showed a key arms control treaty was still effective. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 11:16:00 -0500 -Fox News guest: 'Why the hell does Tucker Carlson still have a job here' -https://news.yahoo.com/fox-news-guest-why-hell-161600239.html ->It's been a hectic few hours for Fox News' Tucker Carlson.First, Carlson on Monday evening said he was rooting for Russia in its conflict with Ukraine before walking it back. Then a Fox News guest, Democratic National Committee Vice Chair Michael Blake, was asked Tuesday by anchor Bill Hemmer to respond to Carlson's theory that former First Lady Michelle Obama might be the Democratic presidential nominee in 2020. Blake, though, didn't seem too interested in answering that question (for what it's worth, he did briefly say an Obama run is "not going to happen.")Instead, Blake wanted to figure out "why the hell" Carlson was still employed by the network, especially in light of Carlson calling white supremacy a hoax. Hemmer tried to steer Blake back toward the Obama conversation, but not before his guest repeated his assertion that Carlson should be out of a job. > Micheal Blake stuns Fox News anchor: "Why the hell does Tucker Carlson still have a job here?" https://t.co/XRVoPsI8GF pic.twitter.com/h3KTT6QPu1> > -- Media Matters (@mmfa) November 26, 2019More stories from theweek.com Trump, who is technically obese, tweets portrait of himself as muscular Rocky Balboa ICE has now arrested 250 foreign students who enrolled in its fake university Reddit users tear into anonymous Trump official in Ask Me Anything -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 10:41:58 -0500 -The Latest: Evacuations ended for California wildfire -https://news.yahoo.com/latest-rain-falls-southern-california-154158059.html ->All evacuation orders and warnings have been lifted for Southern California communities that were threatened by a mountain wildfire this week and then faced a risk of debris flows as a storm moved in. The Santa Barbara County Sheriff’s Office announced the end of the measures late Wednesday morning. Overnight, however, the county issued a warning for residents in and below the fire area to be ready to evacuate in case of debris-laden runoff from a storm that doused the fire. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 09:54:59 -0500 -‘She slipped': Grandfather speaks on 1-year-old’s fatal fall from Royal Caribbean cruise ship -https://news.yahoo.com/she-slipped-grandfather-speaks-1-135821260.html ->"I didn't realize there wasn't any glass until the absolutely that it was too late," Salvatore Anello told CBS news in a story that aired Tuesday. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 01:30:26 -0500 -UPDATE 4-Protester emerges to urge Hong Kong police not to enter university -https://news.yahoo.com/1-hong-kong-university-siege-063026300.html ->Hong Kong police said they would enter Polytechnic University on Thursday after a two-week siege drove most protesters out, but just before midnight, a masked man emerged and asked them to halt their plan. Earlier in the day, District Commander Ho Yun-sing said police planned to enter the campus to "process dangerous items and collect evidence" and that any remaining protesters would be given medical treatment. The university on Kowloon peninsula was turned into a battleground in mid-November, when protesters barricaded themselves in and clashed with riot police in a hail of petrol bombs, water cannon and tear gas. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 15:53:11 -0500 -Gillum sets sights on denying Trump victory in Florida in 2020 -https://news.yahoo.com/andrew-gillum-sets-sights-on-denying-trump-victory-in-florida-in-2020-205311950.html ->Andrew Gillum says he knows why President Trump left his lifelong home of New York to take up residence in Florida and doubts his “antics” for reelection will work.  -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 18:15:00 -0500 -24-Cylinder Monster Truck Big Rig Sells for $12 Million -https://news.yahoo.com/24-cylinder-monster-truck-big-231500405.html ->"Thor24" brought in big numbers this past weekend. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 03:34:55 -0500 -First bodies of UK truck victims arrive in Vietnam -https://news.yahoo.com/first-remains-uk-truck-victims-arrive-vietnam-234148399.html ->The first remains of the 39 people found dead in a truck in Britain last month arrived in Vietnam Wednesday where they were met by huge crowds of sobbing relatives who have been waiting weeks for their return. Sixteen bodies were flown from London to Hanoi, where they were quickly shuttled in ambulances to their hometowns in central Vietnam. Hundreds of people filled the compound of a church in rural Dien Chau district in central Nghe An province to greet two returned bodies, many carrying white flowers to offer the families of the dead. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 03:21:39 -0500 -One of Supreme Court's most important abortion cases has just begun -https://news.yahoo.com/one-supreme-courts-most-important-082139004.html ->A 63-page opening brief was filed late Monday night by the Center for Reproductive Rights (CRR) in the case -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 17:15:57 -0500 -Police cited 55 people for eating on San Francisco trains. Only nine were white -https://news.yahoo.com/police-cited-55-people-eating-221557904.html ->New data renews concerns about racial profiling, just weeks after viral video showed police detaining a black man who was eating a sandwichPassengers wait for a Bart train to depart the Fruitvale station in Oakland, California. Photograph: Ben Margot/APPolice officers for the San Francisco Bay Area commuter train system disproportionately target black riders with citations for eating and drinking, according to new data, renewing concerns about racial profiling.The Bay Area Rapid Transit (Bart) data was released following a viral video showing police handcuffing a 31-year-old black man who was cited for eating a breakfast sandwich on his way to work. The new records show that more than 81% of people stopped for eating and drinking on Bart since 2014 were people of color, and that the vast majority of them were black.Stops for eating and drinking on trains or platforms are infrequent within Bart, the train system that runs between San Francisco, Oakland and surrounding suburbs. Of 55 people cited for this offense over the last five years, 33 were black passengers, representing 60% of the citations. Nine of the stops were white passengers, seven were listed as Hispanic, five were categorized as “other” and one was unknown, according to the data, which was obtained by the San Francisco Examiner.Only 10% of Bart’s total riders are black. Ridership data, collected last year, showed that 35% of overall riders are white, 32% are Asian/Pacific Islander and 17% are Latino.Bart spokeswoman Alicia Trost said in an email that the data shows citations are “very rare” and are “handed out at stations across the system”.She said: “When an officer witnesses someone eating, they remind the rider that eating is not allowed and if the rider puts the food away no citation is necessary. It is a rare occurrence to need to issue a citation after reminding the rider not to eat.”John Burris, a civil rights lawyer representing Steve Foster, the man stopped in the recent video, said Tuesday that the data was not surprising and was evidence of racial profiling. “This is a form of biased policing, and it’s very harmful to African Americans. Other people eat sandwiches all the time, and they don’t get stopped.”The 15-minute video that received national attention showed a white Bart police officer stopping Foster at the station in Pleasant Hill, north-east of Oakland. The footage showed the officer holding on to Foster’s backpack and telling him he was not free to go until he identified himself and that he was resisting arrest. Backup officers arrived, and Foster was handcuffed and taken away in front of morning commuters.The citation he received required him to pay a $250 fine or do 48 hours of community service.“It was so insulting to him and disturbing,” said Burris. “He was humiliated in front of all the people on Bart.”The video sparked protests and widespread criticism, and Bart leaders eventually apologized and promised to investigate. Bob Powers, Bart’s general manager, said at the time he was “disappointed how the situation unfolded”.A citation or arrest for a minor infraction like eating can escalate to a significantly more serious conflict, said Cat Brooks, the co-founder of the Anti Police-Terror Project in Oakland.“Eating a sandwich is certainly not a reason to throw yet another black body into the criminal justice system,” she said. “We have to hold these cops accountable for racial profiling.”Bart police have long faced scrutiny for brutality and racial profiling, in particular following the 2009 killing of Oscar Grant, an unarmed 22-year-old shot dead on the Fruitvale station platform. There have since been a number of other killings and allegations of abuse by Bart police.Bart should not be citing anyone for eating in the first place, Brooks said.Burris said there should be better training to prevent biased policing, and that it was wrong to handcuff riders for eating.Trost, the Bart spokeswoman, said all officers receive training in “fair and impartial policing, bias-based policing … and de-escalation”.The Bart controversy comes as the Metropolitan Transportation Authority (MTA) in New York is facing intense backlash over a number of viral videos of police, including the arrest of a food vendor selling churros, and an incident in which officers pulled guns on a teenager accused of fare evasion. * This article was amended on 27 November 2019 to correct a mathematical error. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Mon, 25 Nov 2019 22:30:00 -0500 -China's H-20 Stealth Bomber Could Be the U.S. Military's Worst Nightmare -https://news.yahoo.com/chinas-h-20-stealth-bomber-033000620.html ->Be on notice. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 12:57:21 -0500 -71 Gifts That Give Good Vibes -https://news.yahoo.com/71-gifts-good-vibes-175721472.html -> -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 03:21:59 -0500 -Dubai court reduces sentence for editor who killed his wife -https://news.yahoo.com/dubai-court-reduces-sentence-editor-082159699.html ->A British newspaper editor convicted of killing his wife with a hammer had his sentence reduced by Dubai’s Court of Appeal on Wednesday. The court ordered that former Gulf News editor Francis Matthew must serve a seven-year sentence for manslaughter in the 2017 killing of his wife, Jane. Matthew had received as much as a 15-year sentence for the killing. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Wed, 27 Nov 2019 12:23:29 -0500 -U.S. rejects proposal for spy swap of ex-Marine held in Russia -https://news.yahoo.com/u-rejects-proposal-spy-swap-172329877.html ->The United States rejected on Wednesday a suggestion it seek a prisoner swap involving a former U.S. Marine jailed in Russia for nearly a year over spying allegations, and called for his immediate release. Paul Whelan, who holds U.S., British, Canadian and Irish passports, was detained by agents from Russia's Federal Security Service in a Moscow hotel room on Dec. 28 last year. After a U.S. diplomat visited him in jail on Wednesday, the U.S. embassy complained about Whelan's declining health and called Russia's treatment of him "shameful", saying Moscow had refused to allow the diplomat to bring him Thanksgiving dinner. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Mon, 25 Nov 2019 17:16:06 -0500 -Trump supporters say God chose him to be president -https://news.yahoo.com/trump-supporters-say-god-chose-him-to-be-president-221606696.html ->Energy Secretary Rick Perry and former U.S. Ambassador to the U.N. Nikki Haley see God’s hand in picking Donald Trump as president. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 20:25:30 -0500 -'Sleepwalking toward climate catastrophe:' World must slash emissions immediately, UN report says -https://news.yahoo.com/sleepwalking-toward-climate-catastrophe-world-182856896.html ->The world's nations must make steep cuts to greenhouse gas emissions immediately or risk missing the targets they’ve agreed on, a U.N. report says. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Mon, 25 Nov 2019 18:40:38 -0500 -Frenchman, actor kidnapped in Mexico freed: officials -https://news.yahoo.com/kidnappers-demand-ransom-frenchman-mexico-204627972.html ->A French citizen and a Mexican actor kidnapped in a national park in central Mexico were freed Monday, officials said. The two men, identified as Frederic Michel and Alejandro Sandi, were traveling in all-terrain vehicles in the park around the Nevado de Toluca volcano when they were ambushed and abducted on Sunday, witnesses said. A source with Mexico's anti-kidnapping unit told AFP both victims were unharmed. -['url="http://l.yimg.com/uu/api/res/1.2/oCTF_RJtQtJ7pFKHTkU.2Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/47cf57975889d37c214fc90bc359a9413545987c.jpg"'] -Tue, 26 Nov 2019 01:09:55 -0500 -Jury hears 911 call from night engaged doctors were killed in penthouse -https://news.yahoo.com/jury-hears-911-call-night-060955562.html +Tue, 26 Nov 2019 17:33:14 -0500 +Kushner named Trump’s border-wall czar — along with practically everything else in government +https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html +Kushner named Trump’s border-wall czar — along with practically everything else in governmen +['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] +Wed, 27 Nov 2019 19:27:12 -0500 +Vietnamese families bury first victims of UK truck tragedy +https://news.yahoo.com/vietnamese-families-bury-first-victims-uk-truck-tragedy-105302929.html +Vietnamese families bury first victims of UK truck traged +['http://l2.yimg.com/uu/api/res/1.2/qx.E6Xyd2DZbErP1aiaMzA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/37e750f1e4112a8ba660fbc023969316936598f9.jpg'] +Wed, 27 Nov 2019 12:02:24 -0500 +ICE arrested an estimated 250 people who enrolled in a fake university set up by federal authorities as part of an immigration sting operation +https://news.yahoo.com/ice-arrested-estimated-250-people-170224856.html +ICE arrested an estimated 250 people who enrolled in a fake university set up by federal authorities as part of an immigration sting operatio +['http://l2.yimg.com/uu/api/res/1.2/F7lCfV0OutQHv0lsuGsqWw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/business_insider_articles_888/94f720b83ad1ea3115e61bf49b5d9166'] +Wed, 27 Nov 2019 12:07:37 -0500 +Beijing accuses developing countries, the U.S. of not doing enough to curb global warming +https://news.yahoo.com/beijing-accuses-developing-countries-u-170737011.html +Beijing accuses developing countries, the U.S. of not doing enough to curb global warmin +['http://l2.yimg.com/uu/api/res/1.2/1_XWXXFs9sJmXd0lQqA7IA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319541-1574874305771.jpg'] +Wed, 27 Nov 2019 10:58:44 -0500 +Utah banning ‘conversion therapy’ with Mormon church backing +https://news.yahoo.com/utah-set-become-19th-state-155844890.html +Utah banning ‘conversion therapy’ with Mormon church backin +['http://l1.yimg.com/uu/api/res/1.2/aOXfPo3.xVs0.es81u45Gg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/190131daff22e56a411b1166ff0ff54d'] +Thu, 28 Nov 2019 04:15:29 -0500 +Port Neches explosion: 60,000 evacuated from homes after Texas chemical plant blast +https://news.yahoo.com/port-neches-explosion-60-000-091529530.html +Port Neches explosion: 60,000 evacuated from homes after Texas chemical plant blas +['http://l1.yimg.com/uu/api/res/1.2/Ib..z54ktM3An1tiAaPJGw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_independent_635/4faa2f315aac50d9a810ca52edfcc59c'] +Wed, 27 Nov 2019 23:18:57 -0500 +Forty years on, New Zealand apologizes for Antarctic plane disaster +https://news.yahoo.com/forty-years-zealand-apologizes-antarctic-041857054.html +Forty years on, New Zealand apologizes for Antarctic plane disaste +['http://l2.yimg.com/uu/api/res/1.2/a3gzX7xmR2lTuyrR_Rvj5A--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/reuters.com/ef9af54a201cbc9d7d5fd1158533e2d0'] +Thu, 28 Nov 2019 00:00:00 -0500 +New Intelligence Report Shows That Iran's Missiles Are Serious Business +https://news.yahoo.com/intelligence-report-shows-irans-missiles-050000832.html +New Intelligence Report Shows That Iran's Missiles Are Serious Busines +['http://l2.yimg.com/uu/api/res/1.2/gfvof1WTorxi131eiSzxaQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/b7e382f443398cc705675166176fa9ac'] +Wed, 27 Nov 2019 23:38:20 -0500 +Customs agents seize $95M in counterfeit goods along with thousands of fake IDs +https://news.yahoo.com/customs-agents-seize-95m-counterfeit-043536989.html +Customs agents seize $95M in counterfeit goods along with thousands of fake ID +['http://l.yimg.com/uu/api/res/1.2/GUAcgvHCvkxchXkfclySPw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/fd5168a564823af891bcf5f84c93747d'] +Thu, 28 Nov 2019 08:00:00 -0500 +21 of the Most Beautiful Sacred Sites That Every Traveler Must Visit +https://news.yahoo.com/19-most-beautiful-sacred-sites-120000553.html +21 of the Most Beautiful Sacred Sites That Every Traveler Must Visi +[''] +Wed, 27 Nov 2019 12:18:59 -0500 +Trump peddles 'war on Thanksgiving' that he probably heard about on Fox News +https://news.yahoo.com/war-on-thanksgiving-trump-fox-news-171859219.html +Trump peddles 'war on Thanksgiving' that he probably heard about on Fox New +['http://l.yimg.com/uu/api/res/1.2/zPfyGgvY7DaLB.m4Qk6wvQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/9a7c9c80-1138-11ea-b7eb-d469fa2cbbc0'] +Thu, 28 Nov 2019 03:38:08 -0500 +Detective: "Payback" written on wall where doctors found dead +https://news.yahoo.com/detective-payback-written-wall-where-082702400.html +Detective: "Payback" written on wall where doctors found dea +['http://l.yimg.com/uu/api/res/1.2/K0XpjePi3Ind76fHVhh5gw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/cbs_news_897/ebc9f1ea323a951186a8e808c48b5f7d'] +Wed, 27 Nov 2019 08:25:53 -0500 +Gabbard Continues to Slam Clinton for Russian ‘Grooming’ Remarks +https://news.yahoo.com/gabbard-continues-slam-clinton-russian-132553226.html +Gabbard Continues to Slam Clinton for Russian ‘Grooming’ Remark +['http://l2.yimg.com/uu/api/res/1.2/_MN3mi98BqT5FxU5pmO2sQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/the_national_review_738/45598ed423daaaeadaa387e57e85a545'] +Wed, 27 Nov 2019 11:25:38 -0500 +Saudi crown prince visits UAE amid push to end Yemen war +https://news.yahoo.com/saudi-crown-prince-visits-uae-amid-push-end-162406093.html +Saudi crown prince visits UAE amid push to end Yemen wa +['http://l1.yimg.com/uu/api/res/1.2/VPmJWZffwqwmzMHdPacocA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/6e804cc70794e179de56e0cce3021e684cc1ebc5.jpg'] +Wed, 27 Nov 2019 08:15:45 -0500 +TikTok Blocks Teen Who Posted About China's Detention Camps +https://news.yahoo.com/tiktok-blocks-teen-posted-chinas-131531289.html +TikTok Blocks Teen Who Posted About China's Detention Camp +['http://l.yimg.com/uu/api/res/1.2/rqddHLypOuTQEIdBfc8Fhw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/2cb5e5a0-1122-11ea-b5e9-76f35f5dfc71'] +Thu, 28 Nov 2019 04:52:39 -0500 +Israel says envoy's 'GOOD LUCK' to Myanmar for genocide case was a mistake +https://news.yahoo.com/israel-says-envoys-good-luck-095239169.html +Israel says envoy's 'GOOD LUCK' to Myanmar for genocide case was a mistak +[''] +Tue, 26 Nov 2019 18:15:00 -0500 +24-Cylinder Monster Truck Big Rig Sells for $12 Million +https://news.yahoo.com/24-cylinder-monster-truck-big-231500405.html +24-Cylinder Monster Truck Big Rig Sells for $12 Millio +['http://l.yimg.com/uu/api/res/1.2/Tr7eAle4MM4lVMuiyBf1xg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/popular_mechanics_642/9b47cb9e609b428029f841d3b62a7531'] +Wed, 27 Nov 2019 03:21:59 -0500 +Dubai court reduces sentence for editor who killed his wife +https://news.yahoo.com/dubai-court-reduces-sentence-editor-082159699.html +Dubai court reduces sentence for editor who killed his wif +['http://l1.yimg.com/uu/api/res/1.2/9IT9pTau_elBL7JSC6A1Rg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/c10cafef8d005660a42ac07fce47542a'] +Wed, 27 Nov 2019 05:37:00 -0500 +Why NATO Is Stronger Than Ever +https://news.yahoo.com/why-nato-stronger-ever-103700849.html +Why NATO Is Stronger Than Eve +['http://l2.yimg.com/uu/api/res/1.2/6bHhB7.z72eEUkkD2FqUEA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/8c7858eddb617490a8fbfa213d5449bc'] +Wed, 27 Nov 2019 13:29:36 -0500 +GOP's closed-door conspiracy theory led to Hill's public rebuke +https://news.yahoo.com/go-ps-closeddoor-conspiracy-theory-led-to-hills-public-rebuke-182936711.html +GOP's closed-door conspiracy theory led to Hill's public rebuk +['http://l2.yimg.com/uu/api/res/1.2/GzpRNCme587d0k1pQm..Ng--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4d02ccf0-114b-11ea-9e3d-ae76734e36d4'] +Tue, 26 Nov 2019 23:06:34 -0500 +Police chief blasted over handling of aide's alleged racism +https://news.yahoo.com/police-chief-blasted-over-handling-040634553.html +Police chief blasted over handling of aide's alleged racis +['http://l2.yimg.com/uu/api/res/1.2/KMOmqwbxk.K3JxV23Kyg5A--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/cbs_news_897/96c07a5613f42397410e3e512bf1616a'] +Wed, 27 Nov 2019 21:07:19 -0500 +Texas cities evacuated after second explosion at chemical plant; three injured in first blast +https://news.yahoo.com/3-injured-texas-plant-blast-120259456.html +Texas cities evacuated after second explosion at chemical plant; three injured in first blas +['http://l.yimg.com/uu/api/res/1.2/M4D7aPBy_AXdyHZ9fc.AFw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/31e1e05acc282c8ba3c22457f59c0f6c'] +Thu, 28 Nov 2019 08:54:20 -0500 +Hong Kong police enter ransacked campus after protest siege +https://news.yahoo.com/hong-kong-police-enter-ransacked-campus-protest-siege-070938084.html +Hong Kong police enter ransacked campus after protest sieg +['http://l1.yimg.com/uu/api/res/1.2/dPYJtzVkgdLJdXlNlFxZ3g--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/8ed5e25f111e92bf166687f4f8c7c9c5047694e2.jpg'] +Wed, 27 Nov 2019 14:32:11 -0500 +'A cruel and unnecessary scam': US immigration set up fake university to lure foreign students +https://news.yahoo.com/cruel-unnecessary-scam-us-immigration-193211889.html +'A cruel and unnecessary scam': US immigration set up fake university to lure foreign student +['http://l2.yimg.com/uu/api/res/1.2/772unpOUN0dpQ9zV5NKs8w--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_independent_635/46aa37044051bc2250c81cbea7c2f44f'] +Wed, 27 Nov 2019 11:43:44 -0500 +Russia says it showed nuclear missile system to U.S. inspectors +https://news.yahoo.com/russia-says-showed-nuclear-missile-164344891.html +Russia says it showed nuclear missile system to U.S. inspector +['http://l1.yimg.com/uu/api/res/1.2/tkNGwaBSnvNFWHKdhy2Ukg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319525-1574872794846.jpg'] +Wed, 27 Nov 2019 13:29:12 -0500 +No excuse for silence on China's camps for Uighurs: exiled leader +https://news.yahoo.com/no-excuse-silence-chinas-camps-182912608.html +No excuse for silence on China's camps for Uighurs: exiled leade +['http://l2.yimg.com/uu/api/res/1.2/59KvCVD16MYB95rQGO78fg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/reuters.com/2902ce186e360cca9dd736a21fddef36'] +Tue, 26 Nov 2019 17:07:48 -0500 +Bloomberg: US would benefit from more, not fewer, immigrants +https://news.yahoo.com/bloomberg-us-benefit-more-not-220748034.html +Bloomberg: US would benefit from more, not fewer, immigrant +['http://l2.yimg.com/uu/api/res/1.2/HzcNAux26squCPVvmOSkqw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/e4ba711833eaa8a15b03934618721ba3'] +Tue, 26 Nov 2019 17:15:57 -0500 +Police cited 55 people for eating on San Francisco trains. Only nine were white +https://news.yahoo.com/police-cited-55-people-eating-221557904.html +Police cited 55 people for eating on San Francisco trains. Only nine were whit +['http://l2.yimg.com/uu/api/res/1.2/f1nrQljmXaPdI8xDhaieNA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-GB/the_guardian_765/642b004777a0e7fa678e251f229dc7a5'] +Tue, 26 Nov 2019 15:53:11 -0500 +Gillum sets sights on denying Trump victory in Florida in 2020 +https://news.yahoo.com/andrew-gillum-sets-sights-on-denying-trump-victory-in-florida-in-2020-205311950.html +Gillum sets sights on denying Trump victory in Florida in 202 +['http://l2.yimg.com/uu/api/res/1.2/9195YI_bt.1HOAB6bW1MEg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/42636ee0-108c-11ea-afad-7001eeab5701'] +Thu, 28 Nov 2019 09:56:24 -0500 +UPS workers allegedly trafficked 1,000s of pounds of drugs and fake vape pens across the country +https://news.yahoo.com/ups-workers-allegedly-trafficked-1-145624647.html +UPS workers allegedly trafficked 1,000s of pounds of drugs and fake vape pens across the countr +['http://l1.yimg.com/uu/api/res/1.2/wq.P07Cc_cz_CvWY7HJjmQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/EN/business_insider_articles_888/a598e704069fe2404b195cba407854b2'] +Thu, 28 Nov 2019 08:00:00 -0500 +30 Clever-Approved Sofas That Won't Blow Your Budget +https://news.yahoo.com/30-clever-approved-sofas-wont-130000795.html +30 Clever-Approved Sofas That Won't Blow Your Budge +[''] +Wed, 27 Nov 2019 22:33:57 -0500 +New retrial ordered for South Korea ex-leader Park +https://news.yahoo.com/retrial-ordered-south-korea-ex-leader-park-033357138.html +New retrial ordered for South Korea ex-leader Par +['http://l1.yimg.com/uu/api/res/1.2/i.8TIxOmFXSbbaGw1mcvGA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/11a9c87ddc9ff36603221d596f5e6af0036b04d5.jpg'] +Thu, 28 Nov 2019 08:00:00 -0500 +The Top 5 Russian Aircraft That Threaten Europe +https://news.yahoo.com/top-5-russian-aircraft-threaten-130000893.html +The Top 5 Russian Aircraft That Threaten Europ +['http://l.yimg.com/uu/api/res/1.2/jG8Ske5bcEj3wTm8XaSCqg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/3e130a25745f0a9090d7cce70223ced8'] +Thu, 28 Nov 2019 05:30:16 -0500 +Private investigators focused on frat party in Cornell University freshman’s death +https://news.yahoo.com/private-investigators-focused-frat-party-103016004.html +Private investigators focused on frat party in Cornell University freshman’s deat +['http://l2.yimg.com/uu/api/res/1.2/4RBy9TXx0SVYHCiP4Kgrpg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/f9cc0ce7d3b2ff3c2fe81f4ea07809b3'] +Thu, 28 Nov 2019 01:00:00 -0500 +EXCLUSIVE-Facing U.S. sanctions, Venezuela offers suppliers payment in Chinese yuan -sources +https://news.yahoo.com/exclusive-facing-u-sanctions-venezuela-060000222.html +EXCLUSIVE-Facing U.S. sanctions, Venezuela offers suppliers payment in Chinese yuan -source +[''] +Wed, 27 Nov 2019 06:32:03 -0500 +‘Anti-Islam’ Europe Is No Place for Azerbaijan, President Says +https://news.yahoo.com/anti-islam-europe-no-place-113203389.html +‘Anti-Islam’ Europe Is No Place for Azerbaijan, President Say +['http://l.yimg.com/uu/api/res/1.2/XuF8wwrJT6yHW2QGWcUCug--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/bloomberg_politics_602/2cc352339afc47f382fd8fd856d2cc6c'] +Wed, 27 Nov 2019 07:09:17 -0500 +The Latest: Highway lanes from California to Oregon reopen +https://news.yahoo.com/latest-12-inches-snow-projected-120917359.html +The Latest: Highway lanes from California to Oregon reope +['http://l2.yimg.com/uu/api/res/1.2/maDhM1BhAWBcQYINDFOezA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/b5b25ea112d15d8b7e69b9841e290ba0'] +Wed, 27 Nov 2019 18:21:56 -0500 +Bloomberg Campaign Manager Says Impeachment Probe Is Making Trump’s Reelection ‘More Likely’ +https://news.yahoo.com/bloomberg-campaign-manager-says-impeachment-232156320.html +Bloomberg Campaign Manager Says Impeachment Probe Is Making Trump’s Reelection ‘More Likely +['http://l1.yimg.com/uu/api/res/1.2/TEbMrF1Pgr2lwWyAYHI7Sg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/the_national_review_738/0cb725239fd8c68f032d13d9a3cca46d'] +Tue, 26 Nov 2019 17:04:35 -0500 +Couple convicted of grisly 1980s murders get surprise release from prison before being deported +https://news.yahoo.com/couple-convicted-grisly-1980s-murders-181331694.html +Couple convicted of grisly 1980s murders get surprise release from prison before being deporte +['http://l1.yimg.com/uu/api/res/1.2/RTIO3A_01SKdptU_PejABA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_independent_635/f4852ef5ab88555eff93a4932f8fb453'] +Wed, 27 Nov 2019 14:53:00 -0500 +Lego Drags Tesla's Cybertruck on Twitter +https://news.yahoo.com/lego-drags-teslas-cybertruck-twitter-195300291.html +Lego Drags Tesla's Cybertruck on Twitte +['http://l1.yimg.com/uu/api/res/1.2/FKb8C9ku_uhixmEnRAhsGg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/popular_mechanics_642/14309d20779d54b37bcac1043952f935'] +Wed, 27 Nov 2019 13:05:56 -0500 +Spain 'narco-sub' carried 100 mn euros of cocaine: officials +https://news.yahoo.com/spain-narco-sub-carried-100-mn-euros-cocaine-180556082.html +Spain 'narco-sub' carried 100 mn euros of cocaine: official +['http://l1.yimg.com/uu/api/res/1.2/55WNU0YMf_QgkQngWlskNA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/e2faff67704f3fb3ad2632186cc87194e15e35a6.jpg'] +Tue, 26 Nov 2019 18:00:00 -0500 +Back to the Future: China is Putting Hypersonic Missiles on a 1950s Bomber +https://news.yahoo.com/back-future-china-putting-hypersonic-230000531.html +Back to the Future: China is Putting Hypersonic Missiles on a 1950s Bombe +['http://l1.yimg.com/uu/api/res/1.2/SE4chdMIS0Uog2ly_p77bQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/2b5b28a6595f7399b7c89afb282fe364'] +Wed, 27 Nov 2019 10:54:31 -0500 +New toll road cuts Moscow-Saint Petersburg drive in half +https://news.yahoo.com/toll-road-cuts-moscow-saint-petersburg-drive-half-155431129.html +New toll road cuts Moscow-Saint Petersburg drive in hal +['http://l1.yimg.com/uu/api/res/1.2/PTtG5_I1PvBORN7fnvTDUw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_US/News/US-AFPRelax/000_1mm3wk.cafda154658.original.jpg'] +Wed, 27 Nov 2019 06:01:02 -0500 +PREVIEW-Bronx man, battling own legal woes, brings gun rights case to U.S. Supreme Court +https://news.yahoo.com/preview-bronx-man-battling-own-110000215.html +PREVIEW-Bronx man, battling own legal woes, brings gun rights case to U.S. Supreme Cour +[''] +Wed, 27 Nov 2019 08:40:05 -0500 +Daughters of late Rep. Elijah Cummings endorse father's aide, not widow, in race to fill his seat +https://news.yahoo.com/daughters-rep-elijah-cummings-endorse-132731165.html +Daughters of late Rep. Elijah Cummings endorse father's aide, not widow, in race to fill his sea +['http://l2.yimg.com/uu/api/res/1.2/U1rsaPYOzhLz.Si9p3p_5w--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/6fa896d8e3c86a1ab2ce838ef72d60a8'] +Wed, 27 Nov 2019 19:34:04 -0500 +Georgia Gov. Brian Kemp fumes at 'attacks' over Senate appointment +https://news.yahoo.com/georgia-gov-brian-kemp-fumes-003404252.html +Georgia Gov. Brian Kemp fumes at 'attacks' over Senate appointmen +['http://l.yimg.com/uu/api/res/1.2/tvqe7sTiCJOCvI9zuUgCuA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319644-1574901012675.jpg'] +Wed, 27 Nov 2019 00:19:31 -0500 +Impeachment fight leaves voters cold in contested Wisconsin +https://news.yahoo.com/impeachment-fight-leaves-voters-cold-010532864.html +Impeachment fight leaves voters cold in contested Wisconsi +['http://l2.yimg.com/uu/api/res/1.2/KGjz_0MYfPsJ8f9I_rZqWw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/07c6dcf2fb8217dca0d0b51d51949fb1'] +Wed, 27 Nov 2019 15:04:38 -0500 +A Chicago Student Ignored a Man's Late-Night Catcalls. Now He's Charged With Her Murder +https://news.yahoo.com/chicago-student-ignored-mans-night-162139462.html +A Chicago Student Ignored a Man's Late-Night Catcalls. Now He's Charged With Her Murde +['http://l2.yimg.com/uu/api/res/1.2/3Syr36w77LNcTrxqdQ5RRQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/time_72/a467e43170b50fe5ffbfb47742e65815'] +Wed, 27 Nov 2019 12:45:00 -0500 +7 Amazing Facts About the Speedy Cheetah +https://news.yahoo.com/7-amazing-facts-speedy-cheetah-174500272.html +7 Amazing Facts About the Speedy Cheeta +[''] +Thu, 28 Nov 2019 02:26:45 -0500 +Japan beer exports to S.Korea dry up amid hiccup in ties +https://news.yahoo.com/japan-beer-exports-korea-dry-amid-hiccup-ties-072645612--finance.html +Japan beer exports to S.Korea dry up amid hiccup in tie +['http://l1.yimg.com/uu/api/res/1.2/6plT22sYmEBYHb4OB4907g--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/fb11e4282368b9ef0723843e928a4157f4e3ca94.jpg'] +Tue, 26 Nov 2019 17:33:14 -0500 +Kushner named Trump’s border-wall czar — along with practically everything else in government +https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html +Kushner named Trump’s border-wall czar — along with practically everything else in governmen +['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] +Wed, 27 Nov 2019 19:27:12 -0500 +Vietnamese families bury first victims of UK truck tragedy +https://news.yahoo.com/vietnamese-families-bury-first-victims-uk-truck-tragedy-105302929.html +Vietnamese families bury first victims of UK truck traged +['http://l2.yimg.com/uu/api/res/1.2/qx.E6Xyd2DZbErP1aiaMzA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/37e750f1e4112a8ba660fbc023969316936598f9.jpg'] +Wed, 27 Nov 2019 10:58:44 -0500 +Utah banning ‘conversion therapy’ with Mormon church backing +https://news.yahoo.com/utah-set-become-19th-state-155844890.html +Utah banning ‘conversion therapy’ with Mormon church backin +['http://l1.yimg.com/uu/api/res/1.2/aOXfPo3.xVs0.es81u45Gg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/190131daff22e56a411b1166ff0ff54d'] +Wed, 27 Nov 2019 21:07:19 -0500 +Texas cities evacuated after second explosion at chemical plant; three injured in first blast +https://news.yahoo.com/3-injured-texas-plant-blast-120259456.html +Texas cities evacuated after second explosion at chemical plant; three injured in first blas +['http://l.yimg.com/uu/api/res/1.2/M4D7aPBy_AXdyHZ9fc.AFw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/31e1e05acc282c8ba3c22457f59c0f6c'] +Wed, 27 Nov 2019 12:02:24 -0500 +ICE arrested an estimated 250 people who enrolled in a fake university set up by federal authorities as part of an immigration sting operation +https://news.yahoo.com/ice-arrested-estimated-250-people-170224856.html +ICE arrested an estimated 250 people who enrolled in a fake university set up by federal authorities as part of an immigration sting operatio +['http://l2.yimg.com/uu/api/res/1.2/F7lCfV0OutQHv0lsuGsqWw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/business_insider_articles_888/94f720b83ad1ea3115e61bf49b5d9166'] +Wed, 27 Nov 2019 12:07:37 -0500 +Beijing accuses developing countries, the U.S. of not doing enough to curb global warming +https://news.yahoo.com/beijing-accuses-developing-countries-u-170737011.html +Beijing accuses developing countries, the U.S. of not doing enough to curb global warmin +['http://l2.yimg.com/uu/api/res/1.2/1_XWXXFs9sJmXd0lQqA7IA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319541-1574874305771.jpg'] +Wed, 27 Nov 2019 23:18:57 -0500 +Forty years on, New Zealand apologizes for Antarctic plane disaster +https://news.yahoo.com/forty-years-zealand-apologizes-antarctic-041857054.html +Forty years on, New Zealand apologizes for Antarctic plane disaste +['http://l2.yimg.com/uu/api/res/1.2/a3gzX7xmR2lTuyrR_Rvj5A--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/reuters.com/ef9af54a201cbc9d7d5fd1158533e2d0'] +Thu, 28 Nov 2019 00:00:00 -0500 +New Intelligence Report Shows That Iran's Missiles Are Serious Business +https://news.yahoo.com/intelligence-report-shows-irans-missiles-050000832.html +New Intelligence Report Shows That Iran's Missiles Are Serious Busines +['http://l2.yimg.com/uu/api/res/1.2/gfvof1WTorxi131eiSzxaQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/b7e382f443398cc705675166176fa9ac'] +Wed, 27 Nov 2019 08:15:45 -0500 +TikTok Blocks Teen Who Posted About China's Detention Camps +https://news.yahoo.com/tiktok-blocks-teen-posted-chinas-131531289.html +TikTok Blocks Teen Who Posted About China's Detention Camp +['http://l.yimg.com/uu/api/res/1.2/rqddHLypOuTQEIdBfc8Fhw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/2cb5e5a0-1122-11ea-b5e9-76f35f5dfc71'] +Wed, 27 Nov 2019 13:29:36 -0500 +GOP's closed-door conspiracy theory led to Hill's public rebuke +https://news.yahoo.com/go-ps-closeddoor-conspiracy-theory-led-to-hills-public-rebuke-182936711.html +GOP's closed-door conspiracy theory led to Hill's public rebuk +['http://l2.yimg.com/uu/api/res/1.2/GzpRNCme587d0k1pQm..Ng--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4d02ccf0-114b-11ea-9e3d-ae76734e36d4'] +Thu, 28 Nov 2019 03:38:08 -0500 +Detective: "Payback" written on wall where doctors found dead +https://news.yahoo.com/detective-payback-written-wall-where-082702400.html +Detective: "Payback" written on wall where doctors found dea +['http://l.yimg.com/uu/api/res/1.2/K0XpjePi3Ind76fHVhh5gw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/cbs_news_897/ebc9f1ea323a951186a8e808c48b5f7d'] +Thu, 28 Nov 2019 08:54:20 -0500 +Hong Kong police enter ransacked campus after protest siege +https://news.yahoo.com/hong-kong-police-enter-ransacked-campus-protest-siege-070938084.html +Hong Kong police enter ransacked campus after protest sieg +['http://l1.yimg.com/uu/api/res/1.2/dPYJtzVkgdLJdXlNlFxZ3g--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/8ed5e25f111e92bf166687f4f8c7c9c5047694e2.jpg'] +Wed, 27 Nov 2019 23:38:20 -0500 +Customs agents seize $95M in counterfeit goods along with thousands of fake IDs +https://news.yahoo.com/customs-agents-seize-95m-counterfeit-043536989.html +Customs agents seize $95M in counterfeit goods along with thousands of fake ID +['http://l.yimg.com/uu/api/res/1.2/GUAcgvHCvkxchXkfclySPw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/fd5168a564823af891bcf5f84c93747d'] +Thu, 28 Nov 2019 08:00:00 -0500 +21 of the Most Beautiful Sacred Sites That Every Traveler Must Visit +https://news.yahoo.com/19-most-beautiful-sacred-sites-120000553.html +21 of the Most Beautiful Sacred Sites That Every Traveler Must Visi +[''] +Tue, 26 Nov 2019 18:15:00 -0500 +24-Cylinder Monster Truck Big Rig Sells for $12 Million +https://news.yahoo.com/24-cylinder-monster-truck-big-231500405.html +24-Cylinder Monster Truck Big Rig Sells for $12 Millio +['http://l.yimg.com/uu/api/res/1.2/Tr7eAle4MM4lVMuiyBf1xg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/popular_mechanics_642/9b47cb9e609b428029f841d3b62a7531'] +Wed, 27 Nov 2019 02:08:00 -0500 +7 People Sentenced to Death for Bangladesh’s Worst Terrorist Attack +https://news.yahoo.com/7-people-sentenced-death-bangladesh-070800565.html +7 People Sentenced to Death for Bangladesh’s Worst Terrorist Attac +['http://l2.yimg.com/uu/api/res/1.2/bbmLh0BbeKK2qiRzkrb5OQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/bloomberg_politics_602/a3bbd32cad6dd2da6a78f371cc5a5df5'] +Wed, 27 Nov 2019 06:01:02 -0500 +PREVIEW-Bronx man, battling own legal woes, brings gun rights case to U.S. Supreme Court +https://news.yahoo.com/preview-bronx-man-battling-own-110000215.html +PREVIEW-Bronx man, battling own legal woes, brings gun rights case to U.S. Supreme Cour +[''] +Tue, 26 Nov 2019 18:00:00 -0500 +Back to the Future: China is Putting Hypersonic Missiles on a 1950s Bomber +https://news.yahoo.com/back-future-china-putting-hypersonic-230000531.html +Back to the Future: China is Putting Hypersonic Missiles on a 1950s Bombe +['http://l1.yimg.com/uu/api/res/1.2/SE4chdMIS0Uog2ly_p77bQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/2b5b28a6595f7399b7c89afb282fe364'] +Tue, 26 Nov 2019 15:53:11 -0500 +Gillum sets sights on denying Trump victory in Florida in 2020 +https://news.yahoo.com/andrew-gillum-sets-sights-on-denying-trump-victory-in-florida-in-2020-205311950.html +Gillum sets sights on denying Trump victory in Florida in 202 +['http://l2.yimg.com/uu/api/res/1.2/9195YI_bt.1HOAB6bW1MEg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/42636ee0-108c-11ea-afad-7001eeab5701'] +Thu, 28 Nov 2019 05:51:09 -0500 +Native Americans Have Little to Celebrate on Thanksgiving +https://news.yahoo.com/native-americans-little-celebrate-thanksgiving-105109385.html +Native Americans Have Little to Celebrate on Thanksgivin +['http://l.yimg.com/uu/api/res/1.2/OBOJOnNR54mzRpnDDn_bWA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/thedailybeast.com/6794f107f4b91dbdaf8bc04da9a8ac1a'] +Wed, 27 Nov 2019 11:25:38 -0500 +Saudi crown prince visits UAE amid push to end Yemen war +https://news.yahoo.com/saudi-crown-prince-visits-uae-amid-push-end-162406093.html +Saudi crown prince visits UAE amid push to end Yemen wa +['http://l1.yimg.com/uu/api/res/1.2/VPmJWZffwqwmzMHdPacocA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/6e804cc70794e179de56e0cce3021e684cc1ebc5.jpg'] +Wed, 27 Nov 2019 06:22:04 -0500 +An 'unprecedented' bomb cyclone will bring 100-mph winds to the West Coast +https://news.yahoo.com/bombogenesis-unprecedented-bomb-cyclone-blast-202940745.html +An 'unprecedented' bomb cyclone will bring 100-mph winds to the West Coas +['http://l1.yimg.com/uu/api/res/1.2/2YDFbf9qBNwaLuFoa.7xgA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://d.yimg.com/hd/cp-video-transcode/1009217/32dab175-338d-4b71-ae4b-cae52209a8c3/66193c96-8746-5102-a0ec-cb9cc6f24663/data_3_0.jpg?s=ec6c3d0d2ecab5ba8a64baf5b0259e18&c=9d015366550beaee6877e51104b7a6ab&a=tripleplay4us&mr=0'] +Wed, 27 Nov 2019 03:21:59 -0500 +Dubai court reduces sentence for editor who killed his wife +https://news.yahoo.com/dubai-court-reduces-sentence-editor-082159699.html +Dubai court reduces sentence for editor who killed his wif +['http://l1.yimg.com/uu/api/res/1.2/9IT9pTau_elBL7JSC6A1Rg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/c10cafef8d005660a42ac07fce47542a'] +Wed, 27 Nov 2019 04:00:32 -0500 +World's best sushi restaurant dropped from Michelin Guide after refusing to serve public +https://news.yahoo.com/worlds-best-sushi-restaurant-dropped-202231098.html +World's best sushi restaurant dropped from Michelin Guide after refusing to serve publi +['http://l1.yimg.com/uu/api/res/1.2/WS8pe4KWI1cNMRKAx39Ffg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-GB/the_telegraph_258/71d8d2fff0ef50ab0eb207273165cdc6'] +Wed, 27 Nov 2019 11:43:44 -0500 +Russia says it showed nuclear missile system to U.S. inspectors +https://news.yahoo.com/russia-says-showed-nuclear-missile-164344891.html +Russia says it showed nuclear missile system to U.S. inspector +['http://l1.yimg.com/uu/api/res/1.2/tkNGwaBSnvNFWHKdhy2Ukg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319525-1574872794846.jpg'] +Thu, 28 Nov 2019 09:35:54 -0500 +Turkey dismisses Macron's Syria criticism, says he sponsors terrorism +https://news.yahoo.com/turkey-dismisses-macrons-syria-criticism-143554611.html +Turkey dismisses Macron's Syria criticism, says he sponsors terroris +['http://l.yimg.com/uu/api/res/1.2/3gGIt0A4dCy4FiiAP3Z2Rg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/reuters.com/7177079c2481b361af5a55a0f80ace72'] +Thu, 28 Nov 2019 03:30:00 -0500 +The Secret of China's Aircraft Carriers +https://news.yahoo.com/secret-chinas-aircraft-carriers-083000750.html +The Secret of China's Aircraft Carrier +['http://l1.yimg.com/uu/api/res/1.2/mX2yiXTnaW2w2U3L733bzw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/9e8a1fa20480cbfeb4af7f69c203fa25'] +Thu, 28 Nov 2019 08:00:00 -0500 +30 Clever-Approved Sofas That Won't Blow Your Budget +https://news.yahoo.com/30-clever-approved-sofas-wont-130000795.html +30 Clever-Approved Sofas That Won't Blow Your Budge +[''] +Wed, 27 Nov 2019 15:13:05 -0500 +Rudy Giuliani was angling for a 6-figure business deal with a corrupt Ukrainian prosecutor while pushing him to get political dirt on the Bidens +https://news.yahoo.com/rudy-giuliani-angling-6-figure-201305142.html +Rudy Giuliani was angling for a 6-figure business deal with a corrupt Ukrainian prosecutor while pushing him to get political dirt on the Biden +['http://l1.yimg.com/uu/api/res/1.2/D5s6_HZ.QHHvPckfscX84Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/business_insider_articles_888/1b0caa2dbdfe1f3d1508924e1516afa2'] +Wed, 27 Nov 2019 22:33:57 -0500 +New retrial ordered for South Korea ex-leader Park +https://news.yahoo.com/retrial-ordered-south-korea-ex-leader-park-033357138.html +New retrial ordered for South Korea ex-leader Par +['http://l1.yimg.com/uu/api/res/1.2/i.8TIxOmFXSbbaGw1mcvGA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/11a9c87ddc9ff36603221d596f5e6af0036b04d5.jpg'] +Tue, 26 Nov 2019 23:06:34 -0500 +Police chief blasted over handling of aide's alleged racism +https://news.yahoo.com/police-chief-blasted-over-handling-040634553.html +Police chief blasted over handling of aide's alleged racis +['http://l2.yimg.com/uu/api/res/1.2/KMOmqwbxk.K3JxV23Kyg5A--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/cbs_news_897/96c07a5613f42397410e3e512bf1616a'] +Wed, 27 Nov 2019 17:29:55 -0500 +Kamala Harris aide bolts to Bloomberg campaign +https://www.politico.com/news/2019/11/27/kamala-harris-aide-bloomberg-campaign-074243 +Kamala Harris aide bolts to Bloomberg campaig +['http://l1.yimg.com/uu/api/res/1.2/PrxyEfgxzvQ2bEucS109UA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/politico_453/34ea96ec98edfe2007262837378c37a7'] +Tue, 26 Nov 2019 17:15:57 -0500 +Police cited 55 people for eating on San Francisco trains. Only nine were white +https://news.yahoo.com/police-cited-55-people-eating-221557904.html +Police cited 55 people for eating on San Francisco trains. Only nine were whit +['http://l2.yimg.com/uu/api/res/1.2/f1nrQljmXaPdI8xDhaieNA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-GB/the_guardian_765/642b004777a0e7fa678e251f229dc7a5'] +Wed, 27 Nov 2019 08:25:53 -0500 +Gabbard Continues to Slam Clinton for Russian ‘Grooming’ Remarks +https://news.yahoo.com/gabbard-continues-slam-clinton-russian-132553226.html +Gabbard Continues to Slam Clinton for Russian ‘Grooming’ Remark +['http://l2.yimg.com/uu/api/res/1.2/_MN3mi98BqT5FxU5pmO2sQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/the_national_review_738/45598ed423daaaeadaa387e57e85a545'] +Thu, 28 Nov 2019 01:00:00 -0500 +EXCLUSIVE-Facing U.S. sanctions, Venezuela offers suppliers payment in Chinese yuan -sources +https://news.yahoo.com/exclusive-facing-u-sanctions-venezuela-060000222.html +EXCLUSIVE-Facing U.S. sanctions, Venezuela offers suppliers payment in Chinese yuan -source +[''] +Wed, 27 Nov 2019 05:37:00 -0500 +Why NATO Is Stronger Than Ever +https://news.yahoo.com/why-nato-stronger-ever-103700849.html +Why NATO Is Stronger Than Eve +['http://l2.yimg.com/uu/api/res/1.2/6bHhB7.z72eEUkkD2FqUEA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/8c7858eddb617490a8fbfa213d5449bc'] +Thu, 28 Nov 2019 05:30:16 -0500 +Private investigators focused on frat party in Cornell University freshman’s death +https://news.yahoo.com/private-investigators-focused-frat-party-103016004.html +Private investigators focused on frat party in Cornell University freshman’s deat +['http://l2.yimg.com/uu/api/res/1.2/4RBy9TXx0SVYHCiP4Kgrpg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/f9cc0ce7d3b2ff3c2fe81f4ea07809b3'] +Thu, 28 Nov 2019 05:55:58 -0500 +Trump Signs Hong Kong Bill Backing Protesters, Angering China +https://news.yahoo.com/trump-signs-hong-kong-bill-230350928.html +Trump Signs Hong Kong Bill Backing Protesters, Angering Chin +['http://l1.yimg.com/uu/api/res/1.2/NAIL9_lhviQ10UsARNF2pg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/bloomberg_politics_602/91ba19eb94808192e175b32d26ec55f9'] +Wed, 27 Nov 2019 13:05:56 -0500 +Spain 'narco-sub' carried 100 mn euros of cocaine: officials +https://news.yahoo.com/spain-narco-sub-carried-100-mn-euros-cocaine-180556082.html +Spain 'narco-sub' carried 100 mn euros of cocaine: official +['http://l1.yimg.com/uu/api/res/1.2/55WNU0YMf_QgkQngWlskNA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/e2faff67704f3fb3ad2632186cc87194e15e35a6.jpg'] +Thu, 28 Nov 2019 04:19:50 -0500 +Cruise ship captain charged in deadly Danube River collision +https://news.yahoo.com/cruise-ship-captain-charged-deadly-091950212.html +Cruise ship captain charged in deadly Danube River collisio +['http://l2.yimg.com/uu/api/res/1.2/39m4J7vUY.BKxLaXszOkTw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/d4a541ef2d17cf51196a082788a8d009'] +Wed, 27 Nov 2019 10:54:31 -0500 +New toll road cuts Moscow-Saint Petersburg drive in half +https://news.yahoo.com/toll-road-cuts-moscow-saint-petersburg-drive-half-155431129.html +New toll road cuts Moscow-Saint Petersburg drive in hal +['http://l1.yimg.com/uu/api/res/1.2/PTtG5_I1PvBORN7fnvTDUw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_US/News/US-AFPRelax/000_1mm3wk.cafda154658.original.jpg'] +Wed, 27 Nov 2019 19:34:04 -0500 +Georgia Gov. Brian Kemp fumes at 'attacks' over Senate appointment +https://news.yahoo.com/georgia-gov-brian-kemp-fumes-003404252.html +Georgia Gov. Brian Kemp fumes at 'attacks' over Senate appointmen +['http://l.yimg.com/uu/api/res/1.2/tvqe7sTiCJOCvI9zuUgCuA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319644-1574901012675.jpg'] +Wed, 27 Nov 2019 14:53:00 -0500 +Lego Drags Tesla's Cybertruck on Twitter +https://news.yahoo.com/lego-drags-teslas-cybertruck-twitter-195300291.html +Lego Drags Tesla's Cybertruck on Twitte +['http://l1.yimg.com/uu/api/res/1.2/FKb8C9ku_uhixmEnRAhsGg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/popular_mechanics_642/14309d20779d54b37bcac1043952f935'] +Thu, 28 Nov 2019 09:30:18 -0500 +Europeans fear climate change more than terrorism, unemployment or migration +https://news.yahoo.com/europeans-fear-climate-change-more-143018663.html +Europeans fear climate change more than terrorism, unemployment or migratio +[''] +Wed, 27 Nov 2019 23:48:00 -0500 +Founders wanted a powerful president +https://news.yahoo.com/founders-wanted-powerful-president-044800514.html +Founders wanted a powerful presiden +['http://l1.yimg.com/uu/api/res/1.2/MT7XggdvrpTcRlTMnMRuaA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_opinion_532/1baf2c8af1bcb9a693984683d84801c2'] +Wed, 27 Nov 2019 06:40:36 -0500 +Pete Buttigieg surges to second, Joe Biden regains national lead in new poll +https://news.yahoo.com/joe-biden-regains-national-lead-010405443.html +Pete Buttigieg surges to second, Joe Biden regains national lead in new pol +['http://l1.yimg.com/uu/api/res/1.2/oBpWlutRdG29wXlKaKeGrw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/365e2f46bb80d56836dc7e5c44163b2e'] +Wed, 27 Nov 2019 08:00:00 -0500 +20 of the World's Most Stunning Public Staircases +https://news.yahoo.com/12-world-apos-most-stunning-183035056.html +20 of the World's Most Stunning Public Staircase +[''] +Wed, 27 Nov 2019 01:31:58 -0500 +Trump told to put up or shut up as judiciary committee invites President to attend  impeachment hearing +https://news.yahoo.com/trump-told-put-shut-judiciary-063158650.html +Trump told to put up or shut up as judiciary committee invites President to attend  impeachment hearin +['http://l.yimg.com/uu/api/res/1.2/SZ_wDtFmBPYJPomt_K0UxQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-GB/the_telegraph_258/cad84bfe5079de4dbd35f8df487ec556'] +Tue, 26 Nov 2019 19:11:46 -0500 +Yazidi still hears brothers before IS kills them in Iraq +https://news.yahoo.com/yazidi-still-hears-brothers-kills-001146802.html +Yazidi still hears brothers before IS kills them in Ira +['http://l.yimg.com/uu/api/res/1.2/qlOI0UEijEmMZgColp1Vig--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/4696aa65a16ade30dcbae8e5459c3733'] +Wed, 27 Nov 2019 16:00:00 -0500 +No F-35, But a Real Killer: Don't Underestimate China's J-20 Stealth Fighter +https://news.yahoo.com/no-f-35-real-killer-210000219.html +No F-35, But a Real Killer: Don't Underestimate China's J-20 Stealth Fighte +['http://l.yimg.com/uu/api/res/1.2/iN78F752lvwqaLB5eQehbA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/0362705ecf97771ab7aae1b3861fa65f'] +Tue, 26 Nov 2019 17:33:14 -0500 +Kushner named Trump’s border-wall czar — along with practically everything else in government +https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html +Kushner named Trump’s border-wall czar — along with practically everything else in governmen +['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] +Tue, 26 Nov 2019 17:33:14 -0500 +Kushner named Trump’s border-wall czar — along with practically everything else in government +https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html +Kushner named Trump’s border-wall czar — along with practically everything else in governmen +['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] +Tue, 26 Nov 2019 17:33:14 -0500 +Kushner named Trump’s border-wall czar — along with practically everything else in government +https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html +Kushner named Trump’s border-wall czar — along with practically everything else in governmen +['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] +Tue, 26 Nov 2019 17:33:14 -0500 +Kushner named Trump’s border-wall czar — along with practically everything else in government +https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html +Kushner named Trump’s border-wall czar — along with practically everything else in governmen +['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] +Wed, 27 Nov 2019 19:27:12 -0500 +Vietnamese families bury first victims of UK truck tragedy +https://news.yahoo.com/vietnamese-families-bury-first-victims-uk-truck-tragedy-105302929.html +Vietnamese families bury first victims of UK truck traged +['http://l2.yimg.com/uu/api/res/1.2/qx.E6Xyd2DZbErP1aiaMzA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/37e750f1e4112a8ba660fbc023969316936598f9.jpg'] +Wed, 27 Nov 2019 10:58:44 -0500 +Utah banning ‘conversion therapy’ with Mormon church backing +https://news.yahoo.com/utah-set-become-19th-state-155844890.html +Utah banning ‘conversion therapy’ with Mormon church backin +['http://l1.yimg.com/uu/api/res/1.2/aOXfPo3.xVs0.es81u45Gg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/190131daff22e56a411b1166ff0ff54d'] diff --git a/rssreader/rssreader.py b/rssreader/rssreader.py index 13a9302..b152329 100644 --- a/rssreader/rssreader.py +++ b/rssreader/rssreader.py @@ -7,6 +7,7 @@ import sys import json import datetime +from fpdf import FPDF def argsparsing(): @@ -17,6 +18,7 @@ def argsparsing(): parser.add_argument("--verbose", help="Outputs verbose status messages", action="store_true") parser.add_argument("--limit", type=int, help="Limit news topics if this parameter provided") parser.add_argument("--date",type=int,help="Read cashed news by date in next format YYMMDD") + parser.add_argument("--to-html", help="Convert news to html and save in .html file",action="store_true") return parser.parse_args() def making_log(operation, message, file='loglist.log'): @@ -46,7 +48,6 @@ def feed_find(self): soup = BeautifulSoup(urllib.request.urlopen(self.arguments.source), "xml") making_log(1, "Opened URL for news reading, URL: %s" % self.arguments.source) list = soup.find_all("item") - datafeed={} making_log(1, "Find all tags in feed.") making_log(1, "Limit is: (%s) " % (str(self.arguments.limit))) for cout, feed in enumerate(list): @@ -54,23 +55,49 @@ def feed_find(self): making_log(1, "Opened feed on %s link." % feed.link.text) strmedia = str(feed.find_all("media:content")) ded = feed.description.text - self.links=[] + llinks=[] for i in range(strmedia.count('url="')): - self.links.append(strmedia[strmedia.find('url="'): (strmedia.find('"', (strmedia.find('url="')+5))+1)]) + llinks.append(strmedia[(strmedia.find('url="')+5): (strmedia.find('"', (strmedia.find('url="')+5)))]) + self.links.append(str(llinks)) self.link.append(feed.link.text) - self.title.append(feed.title.text) + ded=str(feed.title.text).replace("'","'") + ded.replace(""","'") + self.title.append(ded) self.pubDate.append(feed.pubDate.text) self.desc.append(ded[(ded.find('a>') + 1):ded.find('

+ + %s + + +

Title: %s

+

Date: %s

+

Link: %s

+

Feed: %s

+

+ + + """%(str(self.title[index]), str(self.title[index]),str(self.pubDate[index]),str(self.link[index]),str(self.desc[index]),image) + fp=open(filename,"w") + fp.write(htmltext) def print_news(self): arg=self.arguments.json for index in range(len(self.title)): if arg: - print(json.dumps({"item":{"link":self.link[index],"body":{"title":self.title[index],"date": self.pubDate[index],"images": self.links,"feed":self.desc[index]}}},indent=4)) + print(json.dumps({"item":{"link":self.link[index],"body":{"title":self.title[index],"date": self.pubDate[index],"images": self.links[index],"feed":self.desc[index]}}},indent=4)) print("\n\n\n") else: print("Title: " + self.title[index], @@ -78,7 +105,7 @@ def print_news(self): "\nLink: " + self.link[index]) print("Feed: " + self.desc[index]) if self.links != []: - print("Images: \n" + str(self.links)) + print("Images: \n" + self.links[index]) print("\n\n\n") @@ -94,15 +121,15 @@ def filewrite(self): for index in range(len(self.title)): fp=open("feeddata.txt","a") fp.write(str(self.pubDate[index])) - fp.write(" \n") + fp.write("\n") fp.write(str(self.title[index])) - fp.write(" \n") + fp.write("\n") fp.write(str(self.link[index])) - fp.write(" \n") + fp.write("\n") fp.write(str(self.desc[index])) - fp.write(" \n") - fp.write(str(self.links)) - fp.write(' \n') + fp.write("\n") + fp.write(str(self.links[index])) + fp.write("\n") fp.close() @@ -125,7 +152,7 @@ def fileread(self): self.link.append(fp.readline()) self.desc.append(fp.readline()) self.links.append(fp.readline()) - if flag: print("No news on this date :(") + if flag: print("No news on this date (") fp.close() @@ -137,12 +164,15 @@ def main(): if news.date_convert(): news.fileread() news.print_news() + #if news.arguments.to-html: + news.convert_to_html() if news.arguments.verbose: making_log(0,'') else: news.feed_find() news.print_news() news.filewrite() + news.convert_to_html() if news.arguments.verbose: making_log(0,'') From 89b3ffc8c6b29227307da77df2beba03d0aa8ded Mon Sep 17 00:00:00 2001 From: Shrek Date: Sun, 1 Dec 2019 18:52:06 +0300 Subject: [PATCH 09/10] 4 iteration ended. All work good. Installing good. reqier.txt added. read README for understanding. Good luck :))) --- .gitignore | 7 +- README.md | 17 +- requirements.txt | 7 + ...ctically everything else in governme.html" | 14 - ...342\200\231 with Mormon church backi.html" | 14 - ... bury first victims of UK truck trage.html | 14 - rssreader/feeddata.txt | 530 ------------------ rssreader/rssreader.py | 312 +++++++---- setup.py | 6 +- 9 files changed, 235 insertions(+), 686 deletions(-) create mode 100644 requirements.txt delete mode 100644 "rssreader/Kushner named Trump\342\200\231s border-wall czar \342\200\224 along with practically everything else in governme.html" delete mode 100644 "rssreader/Utah banning \342\200\230conversion therapy\342\200\231 with Mormon church backi.html" delete mode 100644 rssreader/Vietnamese families bury first victims of UK truck trage.html delete mode 100644 rssreader/feeddata.txt diff --git a/.gitignore b/.gitignore index 5ae93fd..903c535 100644 --- a/.gitignore +++ b/.gitignore @@ -102,5 +102,8 @@ venv.bak/ # mypy .mypy_cache/ -.html - +*.html +data/ +*.pdf +*.jpg +loglist.txt \ No newline at end of file diff --git a/README.md b/README.md index 048c079..ef18989 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Caching news write in file feeddata.txt and read by lines +Caching news write in file data\feeddata.txt and read by lines html scheme: @@ -13,4 +13,17 @@ html scheme:

IMAGES LINKS

- \ No newline at end of file + + + + +##PDF convert: +can't convert cirilics symbols +can't convert symbols from "bad" fonts +can't print img in "bad" formats +if you want to convert feed with these exceptions, reader simple don't write THESE feed. + + +#about parser +checked on yahoo, NASA, BBC. +Work goog on all rss with 2.0 version, but RSS 1.0 has "bad" format for these reader. diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..328d144 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,7 @@ +beautifulsoup4==4.8.1 +bs4==0.0.1 +fpdf==1.7.2 +logger==1.4 +lxml==4.4.1 +urlib3==1.25.7 +argparser==1.4.0 \ No newline at end of file diff --git "a/rssreader/Kushner named Trump\342\200\231s border-wall czar \342\200\224 along with practically everything else in governme.html" "b/rssreader/Kushner named Trump\342\200\231s border-wall czar \342\200\224 along with practically everything else in governme.html" deleted file mode 100644 index 9ecc365..0000000 --- "a/rssreader/Kushner named Trump\342\200\231s border-wall czar \342\200\224 along with practically everything else in governme.html" +++ /dev/null @@ -1,14 +0,0 @@ - - - - Kushner named Trump’s border-wall czar — along with practically everything else in government - - -

Title: Kushner named Trump’s border-wall czar — along with practically everything else in government

-

Date: Tue, 26 Nov 2019 17:33:14 -0500

-

Link: https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html

-

Feed: Kushner named Trump’s border-wall czar — along with practically everything else in governmen

-

- - - \ No newline at end of file diff --git "a/rssreader/Utah banning \342\200\230conversion therapy\342\200\231 with Mormon church backi.html" "b/rssreader/Utah banning \342\200\230conversion therapy\342\200\231 with Mormon church backi.html" deleted file mode 100644 index d4c60e8..0000000 --- "a/rssreader/Utah banning \342\200\230conversion therapy\342\200\231 with Mormon church backi.html" +++ /dev/null @@ -1,14 +0,0 @@ - - - - Utah banning ‘conversion therapy’ with Mormon church backing - - -

Title: Utah banning ‘conversion therapy’ with Mormon church backing

-

Date: Wed, 27 Nov 2019 10:58:44 -0500

-

Link: https://news.yahoo.com/utah-set-become-19th-state-155844890.html

-

Feed: Utah banning ‘conversion therapy’ with Mormon church backin

-

- - - \ No newline at end of file diff --git a/rssreader/Vietnamese families bury first victims of UK truck trage.html b/rssreader/Vietnamese families bury first victims of UK truck trage.html deleted file mode 100644 index 18cb645..0000000 --- a/rssreader/Vietnamese families bury first victims of UK truck trage.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - Vietnamese families bury first victims of UK truck tragedy - - -

Title: Vietnamese families bury first victims of UK truck tragedy

-

Date: Wed, 27 Nov 2019 19:27:12 -0500

-

Link: https://news.yahoo.com/vietnamese-families-bury-first-victims-uk-truck-tragedy-105302929.html

-

Feed: Vietnamese families bury first victims of UK truck traged

-

- - - \ No newline at end of file diff --git a/rssreader/feeddata.txt b/rssreader/feeddata.txt deleted file mode 100644 index f2c7be0..0000000 --- a/rssreader/feeddata.txt +++ /dev/null @@ -1,530 +0,0 @@ -Tue, 26 Nov 2019 17:33:14 -0500 -Kushner named Trump’s border-wall czar — along with practically everything else in government -https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html -Kushner named Trump’s border-wall czar — along with practically everything else in governmen -['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] -Wed, 27 Nov 2019 19:27:12 -0500 -Vietnamese families bury first victims of UK truck tragedy -https://news.yahoo.com/vietnamese-families-bury-first-victims-uk-truck-tragedy-105302929.html -Vietnamese families bury first victims of UK truck traged -['http://l2.yimg.com/uu/api/res/1.2/qx.E6Xyd2DZbErP1aiaMzA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/37e750f1e4112a8ba660fbc023969316936598f9.jpg'] -Wed, 27 Nov 2019 12:02:24 -0500 -ICE arrested an estimated 250 people who enrolled in a fake university set up by federal authorities as part of an immigration sting operation -https://news.yahoo.com/ice-arrested-estimated-250-people-170224856.html -ICE arrested an estimated 250 people who enrolled in a fake university set up by federal authorities as part of an immigration sting operatio -['http://l2.yimg.com/uu/api/res/1.2/F7lCfV0OutQHv0lsuGsqWw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/business_insider_articles_888/94f720b83ad1ea3115e61bf49b5d9166'] -Wed, 27 Nov 2019 12:07:37 -0500 -Beijing accuses developing countries, the U.S. of not doing enough to curb global warming -https://news.yahoo.com/beijing-accuses-developing-countries-u-170737011.html -Beijing accuses developing countries, the U.S. of not doing enough to curb global warmin -['http://l2.yimg.com/uu/api/res/1.2/1_XWXXFs9sJmXd0lQqA7IA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319541-1574874305771.jpg'] -Wed, 27 Nov 2019 10:58:44 -0500 -Utah banning ‘conversion therapy’ with Mormon church backing -https://news.yahoo.com/utah-set-become-19th-state-155844890.html -Utah banning ‘conversion therapy’ with Mormon church backin -['http://l1.yimg.com/uu/api/res/1.2/aOXfPo3.xVs0.es81u45Gg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/190131daff22e56a411b1166ff0ff54d'] -Thu, 28 Nov 2019 04:15:29 -0500 -Port Neches explosion: 60,000 evacuated from homes after Texas chemical plant blast -https://news.yahoo.com/port-neches-explosion-60-000-091529530.html -Port Neches explosion: 60,000 evacuated from homes after Texas chemical plant blas -['http://l1.yimg.com/uu/api/res/1.2/Ib..z54ktM3An1tiAaPJGw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_independent_635/4faa2f315aac50d9a810ca52edfcc59c'] -Wed, 27 Nov 2019 23:18:57 -0500 -Forty years on, New Zealand apologizes for Antarctic plane disaster -https://news.yahoo.com/forty-years-zealand-apologizes-antarctic-041857054.html -Forty years on, New Zealand apologizes for Antarctic plane disaste -['http://l2.yimg.com/uu/api/res/1.2/a3gzX7xmR2lTuyrR_Rvj5A--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/reuters.com/ef9af54a201cbc9d7d5fd1158533e2d0'] -Thu, 28 Nov 2019 00:00:00 -0500 -New Intelligence Report Shows That Iran's Missiles Are Serious Business -https://news.yahoo.com/intelligence-report-shows-irans-missiles-050000832.html -New Intelligence Report Shows That Iran's Missiles Are Serious Busines -['http://l2.yimg.com/uu/api/res/1.2/gfvof1WTorxi131eiSzxaQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/b7e382f443398cc705675166176fa9ac'] -Wed, 27 Nov 2019 23:38:20 -0500 -Customs agents seize $95M in counterfeit goods along with thousands of fake IDs -https://news.yahoo.com/customs-agents-seize-95m-counterfeit-043536989.html -Customs agents seize $95M in counterfeit goods along with thousands of fake ID -['http://l.yimg.com/uu/api/res/1.2/GUAcgvHCvkxchXkfclySPw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/fd5168a564823af891bcf5f84c93747d'] -Thu, 28 Nov 2019 08:00:00 -0500 -21 of the Most Beautiful Sacred Sites That Every Traveler Must Visit -https://news.yahoo.com/19-most-beautiful-sacred-sites-120000553.html -21 of the Most Beautiful Sacred Sites That Every Traveler Must Visi -[''] -Wed, 27 Nov 2019 12:18:59 -0500 -Trump peddles 'war on Thanksgiving' that he probably heard about on Fox News -https://news.yahoo.com/war-on-thanksgiving-trump-fox-news-171859219.html -Trump peddles 'war on Thanksgiving' that he probably heard about on Fox New -['http://l.yimg.com/uu/api/res/1.2/zPfyGgvY7DaLB.m4Qk6wvQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/9a7c9c80-1138-11ea-b7eb-d469fa2cbbc0'] -Thu, 28 Nov 2019 03:38:08 -0500 -Detective: "Payback" written on wall where doctors found dead -https://news.yahoo.com/detective-payback-written-wall-where-082702400.html -Detective: "Payback" written on wall where doctors found dea -['http://l.yimg.com/uu/api/res/1.2/K0XpjePi3Ind76fHVhh5gw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/cbs_news_897/ebc9f1ea323a951186a8e808c48b5f7d'] -Wed, 27 Nov 2019 08:25:53 -0500 -Gabbard Continues to Slam Clinton for Russian ‘Grooming’ Remarks -https://news.yahoo.com/gabbard-continues-slam-clinton-russian-132553226.html -Gabbard Continues to Slam Clinton for Russian ‘Grooming’ Remark -['http://l2.yimg.com/uu/api/res/1.2/_MN3mi98BqT5FxU5pmO2sQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/the_national_review_738/45598ed423daaaeadaa387e57e85a545'] -Wed, 27 Nov 2019 11:25:38 -0500 -Saudi crown prince visits UAE amid push to end Yemen war -https://news.yahoo.com/saudi-crown-prince-visits-uae-amid-push-end-162406093.html -Saudi crown prince visits UAE amid push to end Yemen wa -['http://l1.yimg.com/uu/api/res/1.2/VPmJWZffwqwmzMHdPacocA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/6e804cc70794e179de56e0cce3021e684cc1ebc5.jpg'] -Wed, 27 Nov 2019 08:15:45 -0500 -TikTok Blocks Teen Who Posted About China's Detention Camps -https://news.yahoo.com/tiktok-blocks-teen-posted-chinas-131531289.html -TikTok Blocks Teen Who Posted About China's Detention Camp -['http://l.yimg.com/uu/api/res/1.2/rqddHLypOuTQEIdBfc8Fhw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/2cb5e5a0-1122-11ea-b5e9-76f35f5dfc71'] -Thu, 28 Nov 2019 04:52:39 -0500 -Israel says envoy's 'GOOD LUCK' to Myanmar for genocide case was a mistake -https://news.yahoo.com/israel-says-envoys-good-luck-095239169.html -Israel says envoy's 'GOOD LUCK' to Myanmar for genocide case was a mistak -[''] -Tue, 26 Nov 2019 18:15:00 -0500 -24-Cylinder Monster Truck Big Rig Sells for $12 Million -https://news.yahoo.com/24-cylinder-monster-truck-big-231500405.html -24-Cylinder Monster Truck Big Rig Sells for $12 Millio -['http://l.yimg.com/uu/api/res/1.2/Tr7eAle4MM4lVMuiyBf1xg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/popular_mechanics_642/9b47cb9e609b428029f841d3b62a7531'] -Wed, 27 Nov 2019 03:21:59 -0500 -Dubai court reduces sentence for editor who killed his wife -https://news.yahoo.com/dubai-court-reduces-sentence-editor-082159699.html -Dubai court reduces sentence for editor who killed his wif -['http://l1.yimg.com/uu/api/res/1.2/9IT9pTau_elBL7JSC6A1Rg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/c10cafef8d005660a42ac07fce47542a'] -Wed, 27 Nov 2019 05:37:00 -0500 -Why NATO Is Stronger Than Ever -https://news.yahoo.com/why-nato-stronger-ever-103700849.html -Why NATO Is Stronger Than Eve -['http://l2.yimg.com/uu/api/res/1.2/6bHhB7.z72eEUkkD2FqUEA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/8c7858eddb617490a8fbfa213d5449bc'] -Wed, 27 Nov 2019 13:29:36 -0500 -GOP's closed-door conspiracy theory led to Hill's public rebuke -https://news.yahoo.com/go-ps-closeddoor-conspiracy-theory-led-to-hills-public-rebuke-182936711.html -GOP's closed-door conspiracy theory led to Hill's public rebuk -['http://l2.yimg.com/uu/api/res/1.2/GzpRNCme587d0k1pQm..Ng--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4d02ccf0-114b-11ea-9e3d-ae76734e36d4'] -Tue, 26 Nov 2019 23:06:34 -0500 -Police chief blasted over handling of aide's alleged racism -https://news.yahoo.com/police-chief-blasted-over-handling-040634553.html -Police chief blasted over handling of aide's alleged racis -['http://l2.yimg.com/uu/api/res/1.2/KMOmqwbxk.K3JxV23Kyg5A--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/cbs_news_897/96c07a5613f42397410e3e512bf1616a'] -Wed, 27 Nov 2019 21:07:19 -0500 -Texas cities evacuated after second explosion at chemical plant; three injured in first blast -https://news.yahoo.com/3-injured-texas-plant-blast-120259456.html -Texas cities evacuated after second explosion at chemical plant; three injured in first blas -['http://l.yimg.com/uu/api/res/1.2/M4D7aPBy_AXdyHZ9fc.AFw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/31e1e05acc282c8ba3c22457f59c0f6c'] -Thu, 28 Nov 2019 08:54:20 -0500 -Hong Kong police enter ransacked campus after protest siege -https://news.yahoo.com/hong-kong-police-enter-ransacked-campus-protest-siege-070938084.html -Hong Kong police enter ransacked campus after protest sieg -['http://l1.yimg.com/uu/api/res/1.2/dPYJtzVkgdLJdXlNlFxZ3g--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/8ed5e25f111e92bf166687f4f8c7c9c5047694e2.jpg'] -Wed, 27 Nov 2019 14:32:11 -0500 -'A cruel and unnecessary scam': US immigration set up fake university to lure foreign students -https://news.yahoo.com/cruel-unnecessary-scam-us-immigration-193211889.html -'A cruel and unnecessary scam': US immigration set up fake university to lure foreign student -['http://l2.yimg.com/uu/api/res/1.2/772unpOUN0dpQ9zV5NKs8w--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_independent_635/46aa37044051bc2250c81cbea7c2f44f'] -Wed, 27 Nov 2019 11:43:44 -0500 -Russia says it showed nuclear missile system to U.S. inspectors -https://news.yahoo.com/russia-says-showed-nuclear-missile-164344891.html -Russia says it showed nuclear missile system to U.S. inspector -['http://l1.yimg.com/uu/api/res/1.2/tkNGwaBSnvNFWHKdhy2Ukg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319525-1574872794846.jpg'] -Wed, 27 Nov 2019 13:29:12 -0500 -No excuse for silence on China's camps for Uighurs: exiled leader -https://news.yahoo.com/no-excuse-silence-chinas-camps-182912608.html -No excuse for silence on China's camps for Uighurs: exiled leade -['http://l2.yimg.com/uu/api/res/1.2/59KvCVD16MYB95rQGO78fg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/reuters.com/2902ce186e360cca9dd736a21fddef36'] -Tue, 26 Nov 2019 17:07:48 -0500 -Bloomberg: US would benefit from more, not fewer, immigrants -https://news.yahoo.com/bloomberg-us-benefit-more-not-220748034.html -Bloomberg: US would benefit from more, not fewer, immigrant -['http://l2.yimg.com/uu/api/res/1.2/HzcNAux26squCPVvmOSkqw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/e4ba711833eaa8a15b03934618721ba3'] -Tue, 26 Nov 2019 17:15:57 -0500 -Police cited 55 people for eating on San Francisco trains. Only nine were white -https://news.yahoo.com/police-cited-55-people-eating-221557904.html -Police cited 55 people for eating on San Francisco trains. Only nine were whit -['http://l2.yimg.com/uu/api/res/1.2/f1nrQljmXaPdI8xDhaieNA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-GB/the_guardian_765/642b004777a0e7fa678e251f229dc7a5'] -Tue, 26 Nov 2019 15:53:11 -0500 -Gillum sets sights on denying Trump victory in Florida in 2020 -https://news.yahoo.com/andrew-gillum-sets-sights-on-denying-trump-victory-in-florida-in-2020-205311950.html -Gillum sets sights on denying Trump victory in Florida in 202 -['http://l2.yimg.com/uu/api/res/1.2/9195YI_bt.1HOAB6bW1MEg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/42636ee0-108c-11ea-afad-7001eeab5701'] -Thu, 28 Nov 2019 09:56:24 -0500 -UPS workers allegedly trafficked 1,000s of pounds of drugs and fake vape pens across the country -https://news.yahoo.com/ups-workers-allegedly-trafficked-1-145624647.html -UPS workers allegedly trafficked 1,000s of pounds of drugs and fake vape pens across the countr -['http://l1.yimg.com/uu/api/res/1.2/wq.P07Cc_cz_CvWY7HJjmQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/EN/business_insider_articles_888/a598e704069fe2404b195cba407854b2'] -Thu, 28 Nov 2019 08:00:00 -0500 -30 Clever-Approved Sofas That Won't Blow Your Budget -https://news.yahoo.com/30-clever-approved-sofas-wont-130000795.html -30 Clever-Approved Sofas That Won't Blow Your Budge -[''] -Wed, 27 Nov 2019 22:33:57 -0500 -New retrial ordered for South Korea ex-leader Park -https://news.yahoo.com/retrial-ordered-south-korea-ex-leader-park-033357138.html -New retrial ordered for South Korea ex-leader Par -['http://l1.yimg.com/uu/api/res/1.2/i.8TIxOmFXSbbaGw1mcvGA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/11a9c87ddc9ff36603221d596f5e6af0036b04d5.jpg'] -Thu, 28 Nov 2019 08:00:00 -0500 -The Top 5 Russian Aircraft That Threaten Europe -https://news.yahoo.com/top-5-russian-aircraft-threaten-130000893.html -The Top 5 Russian Aircraft That Threaten Europ -['http://l.yimg.com/uu/api/res/1.2/jG8Ske5bcEj3wTm8XaSCqg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/3e130a25745f0a9090d7cce70223ced8'] -Thu, 28 Nov 2019 05:30:16 -0500 -Private investigators focused on frat party in Cornell University freshman’s death -https://news.yahoo.com/private-investigators-focused-frat-party-103016004.html -Private investigators focused on frat party in Cornell University freshman’s deat -['http://l2.yimg.com/uu/api/res/1.2/4RBy9TXx0SVYHCiP4Kgrpg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/f9cc0ce7d3b2ff3c2fe81f4ea07809b3'] -Thu, 28 Nov 2019 01:00:00 -0500 -EXCLUSIVE-Facing U.S. sanctions, Venezuela offers suppliers payment in Chinese yuan -sources -https://news.yahoo.com/exclusive-facing-u-sanctions-venezuela-060000222.html -EXCLUSIVE-Facing U.S. sanctions, Venezuela offers suppliers payment in Chinese yuan -source -[''] -Wed, 27 Nov 2019 06:32:03 -0500 -‘Anti-Islam’ Europe Is No Place for Azerbaijan, President Says -https://news.yahoo.com/anti-islam-europe-no-place-113203389.html -‘Anti-Islam’ Europe Is No Place for Azerbaijan, President Say -['http://l.yimg.com/uu/api/res/1.2/XuF8wwrJT6yHW2QGWcUCug--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/bloomberg_politics_602/2cc352339afc47f382fd8fd856d2cc6c'] -Wed, 27 Nov 2019 07:09:17 -0500 -The Latest: Highway lanes from California to Oregon reopen -https://news.yahoo.com/latest-12-inches-snow-projected-120917359.html -The Latest: Highway lanes from California to Oregon reope -['http://l2.yimg.com/uu/api/res/1.2/maDhM1BhAWBcQYINDFOezA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/b5b25ea112d15d8b7e69b9841e290ba0'] -Wed, 27 Nov 2019 18:21:56 -0500 -Bloomberg Campaign Manager Says Impeachment Probe Is Making Trump’s Reelection ‘More Likely’ -https://news.yahoo.com/bloomberg-campaign-manager-says-impeachment-232156320.html -Bloomberg Campaign Manager Says Impeachment Probe Is Making Trump’s Reelection ‘More Likely -['http://l1.yimg.com/uu/api/res/1.2/TEbMrF1Pgr2lwWyAYHI7Sg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/the_national_review_738/0cb725239fd8c68f032d13d9a3cca46d'] -Tue, 26 Nov 2019 17:04:35 -0500 -Couple convicted of grisly 1980s murders get surprise release from prison before being deported -https://news.yahoo.com/couple-convicted-grisly-1980s-murders-181331694.html -Couple convicted of grisly 1980s murders get surprise release from prison before being deporte -['http://l1.yimg.com/uu/api/res/1.2/RTIO3A_01SKdptU_PejABA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_independent_635/f4852ef5ab88555eff93a4932f8fb453'] -Wed, 27 Nov 2019 14:53:00 -0500 -Lego Drags Tesla's Cybertruck on Twitter -https://news.yahoo.com/lego-drags-teslas-cybertruck-twitter-195300291.html -Lego Drags Tesla's Cybertruck on Twitte -['http://l1.yimg.com/uu/api/res/1.2/FKb8C9ku_uhixmEnRAhsGg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/popular_mechanics_642/14309d20779d54b37bcac1043952f935'] -Wed, 27 Nov 2019 13:05:56 -0500 -Spain 'narco-sub' carried 100 mn euros of cocaine: officials -https://news.yahoo.com/spain-narco-sub-carried-100-mn-euros-cocaine-180556082.html -Spain 'narco-sub' carried 100 mn euros of cocaine: official -['http://l1.yimg.com/uu/api/res/1.2/55WNU0YMf_QgkQngWlskNA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/e2faff67704f3fb3ad2632186cc87194e15e35a6.jpg'] -Tue, 26 Nov 2019 18:00:00 -0500 -Back to the Future: China is Putting Hypersonic Missiles on a 1950s Bomber -https://news.yahoo.com/back-future-china-putting-hypersonic-230000531.html -Back to the Future: China is Putting Hypersonic Missiles on a 1950s Bombe -['http://l1.yimg.com/uu/api/res/1.2/SE4chdMIS0Uog2ly_p77bQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/2b5b28a6595f7399b7c89afb282fe364'] -Wed, 27 Nov 2019 10:54:31 -0500 -New toll road cuts Moscow-Saint Petersburg drive in half -https://news.yahoo.com/toll-road-cuts-moscow-saint-petersburg-drive-half-155431129.html -New toll road cuts Moscow-Saint Petersburg drive in hal -['http://l1.yimg.com/uu/api/res/1.2/PTtG5_I1PvBORN7fnvTDUw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_US/News/US-AFPRelax/000_1mm3wk.cafda154658.original.jpg'] -Wed, 27 Nov 2019 06:01:02 -0500 -PREVIEW-Bronx man, battling own legal woes, brings gun rights case to U.S. Supreme Court -https://news.yahoo.com/preview-bronx-man-battling-own-110000215.html -PREVIEW-Bronx man, battling own legal woes, brings gun rights case to U.S. Supreme Cour -[''] -Wed, 27 Nov 2019 08:40:05 -0500 -Daughters of late Rep. Elijah Cummings endorse father's aide, not widow, in race to fill his seat -https://news.yahoo.com/daughters-rep-elijah-cummings-endorse-132731165.html -Daughters of late Rep. Elijah Cummings endorse father's aide, not widow, in race to fill his sea -['http://l2.yimg.com/uu/api/res/1.2/U1rsaPYOzhLz.Si9p3p_5w--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/6fa896d8e3c86a1ab2ce838ef72d60a8'] -Wed, 27 Nov 2019 19:34:04 -0500 -Georgia Gov. Brian Kemp fumes at 'attacks' over Senate appointment -https://news.yahoo.com/georgia-gov-brian-kemp-fumes-003404252.html -Georgia Gov. Brian Kemp fumes at 'attacks' over Senate appointmen -['http://l.yimg.com/uu/api/res/1.2/tvqe7sTiCJOCvI9zuUgCuA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319644-1574901012675.jpg'] -Wed, 27 Nov 2019 00:19:31 -0500 -Impeachment fight leaves voters cold in contested Wisconsin -https://news.yahoo.com/impeachment-fight-leaves-voters-cold-010532864.html -Impeachment fight leaves voters cold in contested Wisconsi -['http://l2.yimg.com/uu/api/res/1.2/KGjz_0MYfPsJ8f9I_rZqWw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/07c6dcf2fb8217dca0d0b51d51949fb1'] -Wed, 27 Nov 2019 15:04:38 -0500 -A Chicago Student Ignored a Man's Late-Night Catcalls. Now He's Charged With Her Murder -https://news.yahoo.com/chicago-student-ignored-mans-night-162139462.html -A Chicago Student Ignored a Man's Late-Night Catcalls. Now He's Charged With Her Murde -['http://l2.yimg.com/uu/api/res/1.2/3Syr36w77LNcTrxqdQ5RRQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/time_72/a467e43170b50fe5ffbfb47742e65815'] -Wed, 27 Nov 2019 12:45:00 -0500 -7 Amazing Facts About the Speedy Cheetah -https://news.yahoo.com/7-amazing-facts-speedy-cheetah-174500272.html -7 Amazing Facts About the Speedy Cheeta -[''] -Thu, 28 Nov 2019 02:26:45 -0500 -Japan beer exports to S.Korea dry up amid hiccup in ties -https://news.yahoo.com/japan-beer-exports-korea-dry-amid-hiccup-ties-072645612--finance.html -Japan beer exports to S.Korea dry up amid hiccup in tie -['http://l1.yimg.com/uu/api/res/1.2/6plT22sYmEBYHb4OB4907g--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/fb11e4282368b9ef0723843e928a4157f4e3ca94.jpg'] -Tue, 26 Nov 2019 17:33:14 -0500 -Kushner named Trump’s border-wall czar — along with practically everything else in government -https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html -Kushner named Trump’s border-wall czar — along with practically everything else in governmen -['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] -Wed, 27 Nov 2019 19:27:12 -0500 -Vietnamese families bury first victims of UK truck tragedy -https://news.yahoo.com/vietnamese-families-bury-first-victims-uk-truck-tragedy-105302929.html -Vietnamese families bury first victims of UK truck traged -['http://l2.yimg.com/uu/api/res/1.2/qx.E6Xyd2DZbErP1aiaMzA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/37e750f1e4112a8ba660fbc023969316936598f9.jpg'] -Wed, 27 Nov 2019 10:58:44 -0500 -Utah banning ‘conversion therapy’ with Mormon church backing -https://news.yahoo.com/utah-set-become-19th-state-155844890.html -Utah banning ‘conversion therapy’ with Mormon church backin -['http://l1.yimg.com/uu/api/res/1.2/aOXfPo3.xVs0.es81u45Gg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/190131daff22e56a411b1166ff0ff54d'] -Wed, 27 Nov 2019 21:07:19 -0500 -Texas cities evacuated after second explosion at chemical plant; three injured in first blast -https://news.yahoo.com/3-injured-texas-plant-blast-120259456.html -Texas cities evacuated after second explosion at chemical plant; three injured in first blas -['http://l.yimg.com/uu/api/res/1.2/M4D7aPBy_AXdyHZ9fc.AFw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/31e1e05acc282c8ba3c22457f59c0f6c'] -Wed, 27 Nov 2019 12:02:24 -0500 -ICE arrested an estimated 250 people who enrolled in a fake university set up by federal authorities as part of an immigration sting operation -https://news.yahoo.com/ice-arrested-estimated-250-people-170224856.html -ICE arrested an estimated 250 people who enrolled in a fake university set up by federal authorities as part of an immigration sting operatio -['http://l2.yimg.com/uu/api/res/1.2/F7lCfV0OutQHv0lsuGsqWw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/business_insider_articles_888/94f720b83ad1ea3115e61bf49b5d9166'] -Wed, 27 Nov 2019 12:07:37 -0500 -Beijing accuses developing countries, the U.S. of not doing enough to curb global warming -https://news.yahoo.com/beijing-accuses-developing-countries-u-170737011.html -Beijing accuses developing countries, the U.S. of not doing enough to curb global warmin -['http://l2.yimg.com/uu/api/res/1.2/1_XWXXFs9sJmXd0lQqA7IA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319541-1574874305771.jpg'] -Wed, 27 Nov 2019 23:18:57 -0500 -Forty years on, New Zealand apologizes for Antarctic plane disaster -https://news.yahoo.com/forty-years-zealand-apologizes-antarctic-041857054.html -Forty years on, New Zealand apologizes for Antarctic plane disaste -['http://l2.yimg.com/uu/api/res/1.2/a3gzX7xmR2lTuyrR_Rvj5A--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/reuters.com/ef9af54a201cbc9d7d5fd1158533e2d0'] -Thu, 28 Nov 2019 00:00:00 -0500 -New Intelligence Report Shows That Iran's Missiles Are Serious Business -https://news.yahoo.com/intelligence-report-shows-irans-missiles-050000832.html -New Intelligence Report Shows That Iran's Missiles Are Serious Busines -['http://l2.yimg.com/uu/api/res/1.2/gfvof1WTorxi131eiSzxaQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/b7e382f443398cc705675166176fa9ac'] -Wed, 27 Nov 2019 08:15:45 -0500 -TikTok Blocks Teen Who Posted About China's Detention Camps -https://news.yahoo.com/tiktok-blocks-teen-posted-chinas-131531289.html -TikTok Blocks Teen Who Posted About China's Detention Camp -['http://l.yimg.com/uu/api/res/1.2/rqddHLypOuTQEIdBfc8Fhw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/2cb5e5a0-1122-11ea-b5e9-76f35f5dfc71'] -Wed, 27 Nov 2019 13:29:36 -0500 -GOP's closed-door conspiracy theory led to Hill's public rebuke -https://news.yahoo.com/go-ps-closeddoor-conspiracy-theory-led-to-hills-public-rebuke-182936711.html -GOP's closed-door conspiracy theory led to Hill's public rebuk -['http://l2.yimg.com/uu/api/res/1.2/GzpRNCme587d0k1pQm..Ng--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4d02ccf0-114b-11ea-9e3d-ae76734e36d4'] -Thu, 28 Nov 2019 03:38:08 -0500 -Detective: "Payback" written on wall where doctors found dead -https://news.yahoo.com/detective-payback-written-wall-where-082702400.html -Detective: "Payback" written on wall where doctors found dea -['http://l.yimg.com/uu/api/res/1.2/K0XpjePi3Ind76fHVhh5gw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/cbs_news_897/ebc9f1ea323a951186a8e808c48b5f7d'] -Thu, 28 Nov 2019 08:54:20 -0500 -Hong Kong police enter ransacked campus after protest siege -https://news.yahoo.com/hong-kong-police-enter-ransacked-campus-protest-siege-070938084.html -Hong Kong police enter ransacked campus after protest sieg -['http://l1.yimg.com/uu/api/res/1.2/dPYJtzVkgdLJdXlNlFxZ3g--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/8ed5e25f111e92bf166687f4f8c7c9c5047694e2.jpg'] -Wed, 27 Nov 2019 23:38:20 -0500 -Customs agents seize $95M in counterfeit goods along with thousands of fake IDs -https://news.yahoo.com/customs-agents-seize-95m-counterfeit-043536989.html -Customs agents seize $95M in counterfeit goods along with thousands of fake ID -['http://l.yimg.com/uu/api/res/1.2/GUAcgvHCvkxchXkfclySPw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/fd5168a564823af891bcf5f84c93747d'] -Thu, 28 Nov 2019 08:00:00 -0500 -21 of the Most Beautiful Sacred Sites That Every Traveler Must Visit -https://news.yahoo.com/19-most-beautiful-sacred-sites-120000553.html -21 of the Most Beautiful Sacred Sites That Every Traveler Must Visi -[''] -Tue, 26 Nov 2019 18:15:00 -0500 -24-Cylinder Monster Truck Big Rig Sells for $12 Million -https://news.yahoo.com/24-cylinder-monster-truck-big-231500405.html -24-Cylinder Monster Truck Big Rig Sells for $12 Millio -['http://l.yimg.com/uu/api/res/1.2/Tr7eAle4MM4lVMuiyBf1xg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/popular_mechanics_642/9b47cb9e609b428029f841d3b62a7531'] -Wed, 27 Nov 2019 02:08:00 -0500 -7 People Sentenced to Death for Bangladesh’s Worst Terrorist Attack -https://news.yahoo.com/7-people-sentenced-death-bangladesh-070800565.html -7 People Sentenced to Death for Bangladesh’s Worst Terrorist Attac -['http://l2.yimg.com/uu/api/res/1.2/bbmLh0BbeKK2qiRzkrb5OQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/bloomberg_politics_602/a3bbd32cad6dd2da6a78f371cc5a5df5'] -Wed, 27 Nov 2019 06:01:02 -0500 -PREVIEW-Bronx man, battling own legal woes, brings gun rights case to U.S. Supreme Court -https://news.yahoo.com/preview-bronx-man-battling-own-110000215.html -PREVIEW-Bronx man, battling own legal woes, brings gun rights case to U.S. Supreme Cour -[''] -Tue, 26 Nov 2019 18:00:00 -0500 -Back to the Future: China is Putting Hypersonic Missiles on a 1950s Bomber -https://news.yahoo.com/back-future-china-putting-hypersonic-230000531.html -Back to the Future: China is Putting Hypersonic Missiles on a 1950s Bombe -['http://l1.yimg.com/uu/api/res/1.2/SE4chdMIS0Uog2ly_p77bQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/2b5b28a6595f7399b7c89afb282fe364'] -Tue, 26 Nov 2019 15:53:11 -0500 -Gillum sets sights on denying Trump victory in Florida in 2020 -https://news.yahoo.com/andrew-gillum-sets-sights-on-denying-trump-victory-in-florida-in-2020-205311950.html -Gillum sets sights on denying Trump victory in Florida in 202 -['http://l2.yimg.com/uu/api/res/1.2/9195YI_bt.1HOAB6bW1MEg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/42636ee0-108c-11ea-afad-7001eeab5701'] -Thu, 28 Nov 2019 05:51:09 -0500 -Native Americans Have Little to Celebrate on Thanksgiving -https://news.yahoo.com/native-americans-little-celebrate-thanksgiving-105109385.html -Native Americans Have Little to Celebrate on Thanksgivin -['http://l.yimg.com/uu/api/res/1.2/OBOJOnNR54mzRpnDDn_bWA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/thedailybeast.com/6794f107f4b91dbdaf8bc04da9a8ac1a'] -Wed, 27 Nov 2019 11:25:38 -0500 -Saudi crown prince visits UAE amid push to end Yemen war -https://news.yahoo.com/saudi-crown-prince-visits-uae-amid-push-end-162406093.html -Saudi crown prince visits UAE amid push to end Yemen wa -['http://l1.yimg.com/uu/api/res/1.2/VPmJWZffwqwmzMHdPacocA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/6e804cc70794e179de56e0cce3021e684cc1ebc5.jpg'] -Wed, 27 Nov 2019 06:22:04 -0500 -An 'unprecedented' bomb cyclone will bring 100-mph winds to the West Coast -https://news.yahoo.com/bombogenesis-unprecedented-bomb-cyclone-blast-202940745.html -An 'unprecedented' bomb cyclone will bring 100-mph winds to the West Coas -['http://l1.yimg.com/uu/api/res/1.2/2YDFbf9qBNwaLuFoa.7xgA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://d.yimg.com/hd/cp-video-transcode/1009217/32dab175-338d-4b71-ae4b-cae52209a8c3/66193c96-8746-5102-a0ec-cb9cc6f24663/data_3_0.jpg?s=ec6c3d0d2ecab5ba8a64baf5b0259e18&c=9d015366550beaee6877e51104b7a6ab&a=tripleplay4us&mr=0'] -Wed, 27 Nov 2019 03:21:59 -0500 -Dubai court reduces sentence for editor who killed his wife -https://news.yahoo.com/dubai-court-reduces-sentence-editor-082159699.html -Dubai court reduces sentence for editor who killed his wif -['http://l1.yimg.com/uu/api/res/1.2/9IT9pTau_elBL7JSC6A1Rg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/c10cafef8d005660a42ac07fce47542a'] -Wed, 27 Nov 2019 04:00:32 -0500 -World's best sushi restaurant dropped from Michelin Guide after refusing to serve public -https://news.yahoo.com/worlds-best-sushi-restaurant-dropped-202231098.html -World's best sushi restaurant dropped from Michelin Guide after refusing to serve publi -['http://l1.yimg.com/uu/api/res/1.2/WS8pe4KWI1cNMRKAx39Ffg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-GB/the_telegraph_258/71d8d2fff0ef50ab0eb207273165cdc6'] -Wed, 27 Nov 2019 11:43:44 -0500 -Russia says it showed nuclear missile system to U.S. inspectors -https://news.yahoo.com/russia-says-showed-nuclear-missile-164344891.html -Russia says it showed nuclear missile system to U.S. inspector -['http://l1.yimg.com/uu/api/res/1.2/tkNGwaBSnvNFWHKdhy2Ukg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319525-1574872794846.jpg'] -Thu, 28 Nov 2019 09:35:54 -0500 -Turkey dismisses Macron's Syria criticism, says he sponsors terrorism -https://news.yahoo.com/turkey-dismisses-macrons-syria-criticism-143554611.html -Turkey dismisses Macron's Syria criticism, says he sponsors terroris -['http://l.yimg.com/uu/api/res/1.2/3gGIt0A4dCy4FiiAP3Z2Rg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/reuters.com/7177079c2481b361af5a55a0f80ace72'] -Thu, 28 Nov 2019 03:30:00 -0500 -The Secret of China's Aircraft Carriers -https://news.yahoo.com/secret-chinas-aircraft-carriers-083000750.html -The Secret of China's Aircraft Carrier -['http://l1.yimg.com/uu/api/res/1.2/mX2yiXTnaW2w2U3L733bzw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/9e8a1fa20480cbfeb4af7f69c203fa25'] -Thu, 28 Nov 2019 08:00:00 -0500 -30 Clever-Approved Sofas That Won't Blow Your Budget -https://news.yahoo.com/30-clever-approved-sofas-wont-130000795.html -30 Clever-Approved Sofas That Won't Blow Your Budge -[''] -Wed, 27 Nov 2019 15:13:05 -0500 -Rudy Giuliani was angling for a 6-figure business deal with a corrupt Ukrainian prosecutor while pushing him to get political dirt on the Bidens -https://news.yahoo.com/rudy-giuliani-angling-6-figure-201305142.html -Rudy Giuliani was angling for a 6-figure business deal with a corrupt Ukrainian prosecutor while pushing him to get political dirt on the Biden -['http://l1.yimg.com/uu/api/res/1.2/D5s6_HZ.QHHvPckfscX84Q--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/business_insider_articles_888/1b0caa2dbdfe1f3d1508924e1516afa2'] -Wed, 27 Nov 2019 22:33:57 -0500 -New retrial ordered for South Korea ex-leader Park -https://news.yahoo.com/retrial-ordered-south-korea-ex-leader-park-033357138.html -New retrial ordered for South Korea ex-leader Par -['http://l1.yimg.com/uu/api/res/1.2/i.8TIxOmFXSbbaGw1mcvGA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/11a9c87ddc9ff36603221d596f5e6af0036b04d5.jpg'] -Tue, 26 Nov 2019 23:06:34 -0500 -Police chief blasted over handling of aide's alleged racism -https://news.yahoo.com/police-chief-blasted-over-handling-040634553.html -Police chief blasted over handling of aide's alleged racis -['http://l2.yimg.com/uu/api/res/1.2/KMOmqwbxk.K3JxV23Kyg5A--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/cbs_news_897/96c07a5613f42397410e3e512bf1616a'] -Wed, 27 Nov 2019 17:29:55 -0500 -Kamala Harris aide bolts to Bloomberg campaign -https://www.politico.com/news/2019/11/27/kamala-harris-aide-bloomberg-campaign-074243 -Kamala Harris aide bolts to Bloomberg campaig -['http://l1.yimg.com/uu/api/res/1.2/PrxyEfgxzvQ2bEucS109UA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/politico_453/34ea96ec98edfe2007262837378c37a7'] -Tue, 26 Nov 2019 17:15:57 -0500 -Police cited 55 people for eating on San Francisco trains. Only nine were white -https://news.yahoo.com/police-cited-55-people-eating-221557904.html -Police cited 55 people for eating on San Francisco trains. Only nine were whit -['http://l2.yimg.com/uu/api/res/1.2/f1nrQljmXaPdI8xDhaieNA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-GB/the_guardian_765/642b004777a0e7fa678e251f229dc7a5'] -Wed, 27 Nov 2019 08:25:53 -0500 -Gabbard Continues to Slam Clinton for Russian ‘Grooming’ Remarks -https://news.yahoo.com/gabbard-continues-slam-clinton-russian-132553226.html -Gabbard Continues to Slam Clinton for Russian ‘Grooming’ Remark -['http://l2.yimg.com/uu/api/res/1.2/_MN3mi98BqT5FxU5pmO2sQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-US/the_national_review_738/45598ed423daaaeadaa387e57e85a545'] -Thu, 28 Nov 2019 01:00:00 -0500 -EXCLUSIVE-Facing U.S. sanctions, Venezuela offers suppliers payment in Chinese yuan -sources -https://news.yahoo.com/exclusive-facing-u-sanctions-venezuela-060000222.html -EXCLUSIVE-Facing U.S. sanctions, Venezuela offers suppliers payment in Chinese yuan -source -[''] -Wed, 27 Nov 2019 05:37:00 -0500 -Why NATO Is Stronger Than Ever -https://news.yahoo.com/why-nato-stronger-ever-103700849.html -Why NATO Is Stronger Than Eve -['http://l2.yimg.com/uu/api/res/1.2/6bHhB7.z72eEUkkD2FqUEA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/8c7858eddb617490a8fbfa213d5449bc'] -Thu, 28 Nov 2019 05:30:16 -0500 -Private investigators focused on frat party in Cornell University freshman’s death -https://news.yahoo.com/private-investigators-focused-frat-party-103016004.html -Private investigators focused on frat party in Cornell University freshman’s deat -['http://l2.yimg.com/uu/api/res/1.2/4RBy9TXx0SVYHCiP4Kgrpg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/f9cc0ce7d3b2ff3c2fe81f4ea07809b3'] -Thu, 28 Nov 2019 05:55:58 -0500 -Trump Signs Hong Kong Bill Backing Protesters, Angering China -https://news.yahoo.com/trump-signs-hong-kong-bill-230350928.html -Trump Signs Hong Kong Bill Backing Protesters, Angering Chin -['http://l1.yimg.com/uu/api/res/1.2/NAIL9_lhviQ10UsARNF2pg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/bloomberg_politics_602/91ba19eb94808192e175b32d26ec55f9'] -Wed, 27 Nov 2019 13:05:56 -0500 -Spain 'narco-sub' carried 100 mn euros of cocaine: officials -https://news.yahoo.com/spain-narco-sub-carried-100-mn-euros-cocaine-180556082.html -Spain 'narco-sub' carried 100 mn euros of cocaine: official -['http://l1.yimg.com/uu/api/res/1.2/55WNU0YMf_QgkQngWlskNA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/e2faff67704f3fb3ad2632186cc87194e15e35a6.jpg'] -Thu, 28 Nov 2019 04:19:50 -0500 -Cruise ship captain charged in deadly Danube River collision -https://news.yahoo.com/cruise-ship-captain-charged-deadly-091950212.html -Cruise ship captain charged in deadly Danube River collisio -['http://l2.yimg.com/uu/api/res/1.2/39m4J7vUY.BKxLaXszOkTw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/d4a541ef2d17cf51196a082788a8d009'] -Wed, 27 Nov 2019 10:54:31 -0500 -New toll road cuts Moscow-Saint Petersburg drive in half -https://news.yahoo.com/toll-road-cuts-moscow-saint-petersburg-drive-half-155431129.html -New toll road cuts Moscow-Saint Petersburg drive in hal -['http://l1.yimg.com/uu/api/res/1.2/PTtG5_I1PvBORN7fnvTDUw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_US/News/US-AFPRelax/000_1mm3wk.cafda154658.original.jpg'] -Wed, 27 Nov 2019 19:34:04 -0500 -Georgia Gov. Brian Kemp fumes at 'attacks' over Senate appointment -https://news.yahoo.com/georgia-gov-brian-kemp-fumes-003404252.html -Georgia Gov. Brian Kemp fumes at 'attacks' over Senate appointmen -['http://l.yimg.com/uu/api/res/1.2/tvqe7sTiCJOCvI9zuUgCuA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://slick-prod.s3-us-west-2.amazonaws.com/slick_thumb/yahooNews-319644-1574901012675.jpg'] -Wed, 27 Nov 2019 14:53:00 -0500 -Lego Drags Tesla's Cybertruck on Twitter -https://news.yahoo.com/lego-drags-teslas-cybertruck-twitter-195300291.html -Lego Drags Tesla's Cybertruck on Twitte -['http://l1.yimg.com/uu/api/res/1.2/FKb8C9ku_uhixmEnRAhsGg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/popular_mechanics_642/14309d20779d54b37bcac1043952f935'] -Thu, 28 Nov 2019 09:30:18 -0500 -Europeans fear climate change more than terrorism, unemployment or migration -https://news.yahoo.com/europeans-fear-climate-change-more-143018663.html -Europeans fear climate change more than terrorism, unemployment or migratio -[''] -Wed, 27 Nov 2019 23:48:00 -0500 -Founders wanted a powerful president -https://news.yahoo.com/founders-wanted-powerful-president-044800514.html -Founders wanted a powerful presiden -['http://l1.yimg.com/uu/api/res/1.2/MT7XggdvrpTcRlTMnMRuaA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_opinion_532/1baf2c8af1bcb9a693984683d84801c2'] -Wed, 27 Nov 2019 06:40:36 -0500 -Pete Buttigieg surges to second, Joe Biden regains national lead in new poll -https://news.yahoo.com/joe-biden-regains-national-lead-010405443.html -Pete Buttigieg surges to second, Joe Biden regains national lead in new pol -['http://l1.yimg.com/uu/api/res/1.2/oBpWlutRdG29wXlKaKeGrw--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-us/usa_today_news_641/365e2f46bb80d56836dc7e5c44163b2e'] -Wed, 27 Nov 2019 08:00:00 -0500 -20 of the World's Most Stunning Public Staircases -https://news.yahoo.com/12-world-apos-most-stunning-183035056.html -20 of the World's Most Stunning Public Staircase -[''] -Wed, 27 Nov 2019 01:31:58 -0500 -Trump told to put up or shut up as judiciary committee invites President to attend  impeachment hearing -https://news.yahoo.com/trump-told-put-shut-judiciary-063158650.html -Trump told to put up or shut up as judiciary committee invites President to attend  impeachment hearin -['http://l.yimg.com/uu/api/res/1.2/SZ_wDtFmBPYJPomt_K0UxQ--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en-GB/the_telegraph_258/cad84bfe5079de4dbd35f8df487ec556'] -Tue, 26 Nov 2019 19:11:46 -0500 -Yazidi still hears brothers before IS kills them in Iraq -https://news.yahoo.com/yazidi-still-hears-brothers-kills-001146802.html -Yazidi still hears brothers before IS kills them in Ira -['http://l.yimg.com/uu/api/res/1.2/qlOI0UEijEmMZgColp1Vig--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/4696aa65a16ade30dcbae8e5459c3733'] -Wed, 27 Nov 2019 16:00:00 -0500 -No F-35, But a Real Killer: Don't Underestimate China's J-20 Stealth Fighter -https://news.yahoo.com/no-f-35-real-killer-210000219.html -No F-35, But a Real Killer: Don't Underestimate China's J-20 Stealth Fighte -['http://l.yimg.com/uu/api/res/1.2/iN78F752lvwqaLB5eQehbA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/the_national_interest_705/0362705ecf97771ab7aae1b3861fa65f'] -Tue, 26 Nov 2019 17:33:14 -0500 -Kushner named Trump’s border-wall czar — along with practically everything else in government -https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html -Kushner named Trump’s border-wall czar — along with practically everything else in governmen -['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] -Tue, 26 Nov 2019 17:33:14 -0500 -Kushner named Trump’s border-wall czar — along with practically everything else in government -https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html -Kushner named Trump’s border-wall czar — along with practically everything else in governmen -['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] -Tue, 26 Nov 2019 17:33:14 -0500 -Kushner named Trump’s border-wall czar — along with practically everything else in government -https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html -Kushner named Trump’s border-wall czar — along with practically everything else in governmen -['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] -Tue, 26 Nov 2019 17:33:14 -0500 -Kushner named Trump’s border-wall czar — along with practically everything else in government -https://news.yahoo.com/jared-kushner-named-trumps-borderwall-czar-along-with-practically-everything-else-in-government-223314837.html -Kushner named Trump’s border-wall czar — along with practically everything else in governmen -['http://l1.yimg.com/uu/api/res/1.2/fMT13OuI5ObhyHXNY_JiDg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media-mbst-pub-ue1.s3.amazonaws.com/creatr-uploaded-images/2019-11/4ad2e4f0-1098-11ea-9d2f-910efc8aa66e'] -Wed, 27 Nov 2019 19:27:12 -0500 -Vietnamese families bury first victims of UK truck tragedy -https://news.yahoo.com/vietnamese-families-bury-first-victims-uk-truck-tragedy-105302929.html -Vietnamese families bury first victims of UK truck traged -['http://l2.yimg.com/uu/api/res/1.2/qx.E6Xyd2DZbErP1aiaMzA--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/http://media.zenfs.com/en_us/News/afp.com/37e750f1e4112a8ba660fbc023969316936598f9.jpg'] -Wed, 27 Nov 2019 10:58:44 -0500 -Utah banning ‘conversion therapy’ with Mormon church backing -https://news.yahoo.com/utah-set-become-19th-state-155844890.html -Utah banning ‘conversion therapy’ with Mormon church backin -['http://l1.yimg.com/uu/api/res/1.2/aOXfPo3.xVs0.es81u45Gg--/YXBwaWQ9eXRhY2h5b247aD04Njt3PTEzMDs-/https://media.zenfs.com/en/ap.org/190131daff22e56a411b1166ff0ff54d'] diff --git a/rssreader/rssreader.py b/rssreader/rssreader.py index b152329..0f7664e 100644 --- a/rssreader/rssreader.py +++ b/rssreader/rssreader.py @@ -2,25 +2,26 @@ import logging import urllib3 from bs4 import BeautifulSoup -import feedparser import urllib.request import sys import json -import datetime from fpdf import FPDF +import os def argsparsing(): parser = argparse.ArgumentParser() parser.add_argument("source", help="RSS URL", type=str) - parser.add_argument("--version", action='version', version='%(prog)s ' + 'v 1.2', help="Print version info", ) + parser.add_argument("--version", action='version', version='%(prog)s ' + 'v 2.0', help="Print version info", ) parser.add_argument("--json", help="Print result as JSON in stdout", action="store_true") parser.add_argument("--verbose", help="Outputs verbose status messages", action="store_true") parser.add_argument("--limit", type=int, help="Limit news topics if this parameter provided") - parser.add_argument("--date",type=int,help="Read cashed news by date in next format YYMMDD") - parser.add_argument("--to-html", help="Convert news to html and save in .html file",action="store_true") + parser.add_argument("--date", type=int, help="Read cashed news by date in next format YYMMDD") + parser.add_argument('--html', type=str, help="Convert news to html and save in .html file.Path in format smth\\") + parser.add_argument('--pdf', type=str, help="Convert news to pdf and save in .pdf file.Path in format smth\\") return parser.parse_args() + def making_log(operation, message, file='loglist.log'): """func can do 2 ops, if 1 to write if 0 to read""" if bool(operation): @@ -31,154 +32,249 @@ def making_log(operation, message, file='loglist.log'): print(open(file, 'r').read()) -class NewsRss: - """Class with all parts of rss news and methods to work with its.""" +def spliting_items(lst, index1, tag): + try: + line_list = '' + split_list = [] + split_list = str(tag+str(lst)).split(" ") + for index in range(len(split_list)): + if len(str(line_list)) < 120: + line_list = line_list + " %s" % str(split_list[index]) + else: + index1.cell(250, 10, line_list, ln=1, align="C") + line_list = '' + index1.cell(250, 10, line_list, ln=1, align="pos") + except: + making_log(1, "Cant't save feed with index=%d to index") + print("Can't save news as index ;(") +class NewsRss: + """Class with all parts of rss news and methods to work with its.""" def __init__(self): - self.arguments=argsparsing() - self.title=[] - self.pubDate=[] - self.link=[] - self.desc=[] - self.links=[] - self.datalist=[] + self.arguments = argsparsing() + self.title = [] + self.pubDate = [] + self.link = [] + self.desc = [] + self.links = [] + self.datalist = [] def feed_find(self): + try: + urllib.request.urlopen(self.arguments.source) + except: + print("Error.URL is incorrect") + exit(1) soup = BeautifulSoup(urllib.request.urlopen(self.arguments.source), "xml") making_log(1, "Opened URL for news reading, URL: %s" % self.arguments.source) - list = soup.find_all("item") + try: + list = soup.find_all("item") + except: + print("Error. Can't find tag in URL. Try to use another URL for RSS parsing. ") + exit(1) making_log(1, "Find all tags in feed.") making_log(1, "Limit is: (%s) " % (str(self.arguments.limit))) for cout, feed in enumerate(list): if cout != self.arguments.limit: making_log(1, "Opened feed on %s link." % feed.link.text) strmedia = str(feed.find_all("media:content")) - ded = feed.description.text - llinks=[] + tempstring = feed.description.text + llink = [] for i in range(strmedia.count('url="')): - llinks.append(strmedia[(strmedia.find('url="')+5): (strmedia.find('"', (strmedia.find('url="')+5)))]) - self.links.append(str(llinks)) + llink.append(strmedia[(strmedia.find('url="')+5): (strmedia.find('"', (strmedia.find('url="')+5)))]) + self.links.append(str(llink)) self.link.append(feed.link.text) - ded=str(feed.title.text).replace("'","'") - ded.replace(""","'") - self.title.append(ded) + tempstring = str(feed.description.text).replace("'", "'").replace(""", "'") + tempstring.replace("\", "\\") + self.title.append(str(feed.title.text).replace("'", "'").replace(""", "'")) self.pubDate.append(feed.pubDate.text) - self.desc.append(ded[(ded.find('a>') + 1):ded.find('

') + 1):tempstring.find('

- - %s - - -

Title: %s

-

Date: %s

-

Link: %s

-

Feed: %s

-

- - - """%(str(self.title[index]), str(self.title[index]),str(self.pubDate[index]),str(self.link[index]),str(self.desc[index]),image) - fp=open(filename,"w") - fp.write(htmltext) + making_log(1, "Convertation to html opened.") + try: + for index in range(len(self.title)): + image = str(self.links[index]) + image = image[2:-2] + string = str(self.title[index])[:-2].replace("?", " ") + string = string.replace(":", " ") + filename = "%s%s.html" % (str(self.arguments.html), string) + htmltext = """ + + + %s + + +

Title: %s

+

Date: %s

+

Link: %s

+

Feed: %s

+

+ + + """ % (str(self.title[index]), str(self.title[index]), str(self.pubDate[index]), str(self.link[index]), str(self.desc[index]), image) + with open(filename, "w") as fp: + fp.write(htmltext) + except: + making_log(1, "Error. Some news not converted to html.") + else: making_log(1, "All news converted to html.(all_goods)") + def convert_to_pdf(self): + for index in range(len(self.title)): + try: + string = str(self.title[index])[:-2].replace("?", " ") + string = string.replace(":", " ") + filename = "%s%s.pdf"%(str(self.arguments.pdf), string) + http = urllib3.PoolManager() + index1 = index + index1 = FPDF(orientation="L") + index1.add_page() + index1.set_font("Arial", size=12) + spliting_items(self.title[index], index1, "Title: ") + spliting_items(self.pubDate[index], index1, "Date: ") + spliting_items(self.link[index], index1, "Link: ") + spliting_items(self.desc[index], index1, "Feed: ") + image = str(self.links[index]) + image = image[2:-2] + r = http.request('GET', image) + fileimage = "%s%s.jpg"%(str(self.arguments.pdf), string) + fp = open(fileimage, "w+b") + fp.write(r.data) + try: + index1.image(fileimage, w=50) + except: making_log(1, "Feed with index %s has a bad img format." % index) + index1.output(filename) + except: making_log(1, "Feed with index %s can't convert to pdf." % index) def print_news(self): - arg=self.arguments.json - for index in range(len(self.title)): - if arg: - print(json.dumps({"item":{"link":self.link[index],"body":{"title":self.title[index],"date": self.pubDate[index],"images": self.links[index],"feed":self.desc[index]}}},indent=4)) - print("\n\n\n") - else: - print("Title: " + self.title[index], - "\nDate: " + self.pubDate[index], - "\nLink: " + self.link[index]) - print("Feed: " + self.desc[index]) - if self.links != []: - print("Images: \n" + self.links[index]) - print("\n\n\n") + making_log(1, "Print news in stdout opened.") + try: + for index in range(len(self.title)): + if self.arguments.json: + print(json.dumps({"item": {"link":self.link[index], "body": {"title": self.title[index], "date": self.pubDate[index], "images": self.links[index], "feed": self.desc[index]}}}, indent=4)) + print("\n\n\n") + else: + print("Title: " + self.title[index], + "\nDate: " + self.pubDate[index], + "\nLink: " + self.link[index]) + print("Feed: " + self.desc[index]) + if self.links != []: + print("Images: \n" + self.links[index]) + print("\n\n\n") + except: + print("Error. Can't print news. Smth go bad ;(") + making_log(1, "Error. Can't print news. Smth go bad ;(") + else: making_log(1, "All news were printed.(all_goods)") - - def date_convert(self): - if len(str(self.arguments.date))>8 or len(str(self.arguments.date))<8 : + def date_check(self): + if len(str(self.arguments.date)) > 8 or len(str(self.arguments.date)) < 8 : print("Error in date input") return False - return True - def filewrite(self): + making_log(1, "Writing news in file opened. News saved in datafeed.txt") for index in range(len(self.title)): - fp=open("feeddata.txt","a") - fp.write(str(self.pubDate[index])) - fp.write("\n") - fp.write(str(self.title[index])) - fp.write("\n") - fp.write(str(self.link[index])) - fp.write("\n") - fp.write(str(self.desc[index])) - fp.write("\n") - fp.write(str(self.links[index])) - fp.write("\n") - fp.close() - + with open("data\datafeed.txt", "a") as fp: + try: + fp.write(str(self.pubDate[index])) + fp.write("\n") + fp.write(str(self.title[index])) + fp.write("\n") + fp.write(str(self.link[index])) + fp.write("\n") + fp.write(str(self.desc[index])) + fp.write("\n") + fp.write(str(self.links[index])) + fp.write("\n") + except: + making_log(1, "Error. Can't write feed with index=%s on file." % index) + else: making_log(1, "Feed wited in file.(all_goods)") def fileread(self): - fp=open("feeddata.txt","r") - flag=True - for line in fp: - #monttdict={'Jan':'01','Feb':'02','Mar':'03','Apr':'04','May':'05','Jun':'06','Jul':'07','Aug':'08','Sep':'09','Oct':'10','Nov':'11','Dec':'12'} - day=line[(line.find(", ")+2):line.find(" ",line.find(", ")+2)] - month1=line[line.find(" ",line.find(", ")+2):line.find(" ",line.find(", ")+5)] - month1=month1[1:] - year=line[(line.rfind(month1)+4):(line.rfind(month1)+8)] - if month1=='Nov': month1='11' - elif month1=='Jan': month1='01' - cachedate=year+month1+day - if str(cachedate)==str(self.arguments.date): - flag=False - self.pubDate.append(line) - self.title.append(fp.readline()) - self.link.append(fp.readline()) - self.desc.append(fp.readline()) - self.links.append(fp.readline()) - if flag: print("No news on this date (") - fp.close() - - + with open("data\datafeed.txt", "r") as fp: + flag = True + check = 0 + for line in fp: + day = line[(line.find(", ")+2): line.find(" ", line.find(", ")+2)] + month1 = line[line.find(" ", line.find(", ")+2): line.find(" ", line.find(", ")+5)] + month1 = month1[1:] + year = line[(line.rfind(month1)+4): (line.rfind(month1)+8)] + if month1 == 'Nov': month1 = '11' + elif month1 == 'Jan': month1 = '01' + elif month1 == 'Feb': month1 = '02' + elif month1 == 'Mar': month1 = '03' + elif month1 == 'Apr': month1 = '04' + elif month1 == 'May': month1 = '05' + elif month1 == 'Jun': month1 = '06' + elif month1 == 'Jul': month1 = '07' + elif month1 == 'Aug': month1 = '08' + elif month1 == 'Sep': month1 = '09' + elif month1 == 'Oct': month1 = '10' + elif month1 == 'Dec': month1 = '12' + cachedate = year + month1+day + if str(cachedate) == str(self.arguments.date): + linefortitlecheck = line + self.pubDate.append(linefortitlecheck) + checkline = fp.readline() + control = False + for cout in range(len(self.title)): + if checkline == self.title[cout]: + control = True + self.pubDate.remove(linefortitlecheck) + break + if not control: + flag = False + self.title.append(checkline) + self.link.append(fp.readline()) + self.desc.append(fp.readline()) + self.links.append(fp.readline()) + check = check+5 + if flag: print("No news on this date (") + + def create_dir(self): + if self.arguments.pdf: + if not os.path.exists(self.arguments.pdf): + os.mkdir(self.arguments.pdf) + if self.arguments.html: + if not os.path.exists(self.arguments.html): + os.mkdir(self.arguments.html) + if not os.path.exists("data"): + os.mkdir("data") def main(): - news=NewsRss() + if not os.path.exists("data"): + os.mkdir("data") + news = NewsRss() if news.arguments.date: - if news.date_convert(): + if news.date_check(): news.fileread() news.print_news() - #if news.arguments.to-html: - news.convert_to_html() + if news.arguments.html: + news.convert_to_html() + if news.arguments.pdf: + news.create_dir() + news.convert_to_pdf() if news.arguments.verbose: - making_log(0,'') + making_log(0, '') else: news.feed_find() news.print_news() news.filewrite() - news.convert_to_html() + if news.arguments.pdf: + news.create_dir() + news.convert_to_pdf() + if news.arguments.html: + news.create_dir() + news.convert_to_html() if news.arguments.verbose: - making_log(0,'') + making_log(0, '') -if __name__=='__main__': +if __name__ == '__main__': main() - - - diff --git a/setup.py b/setup.py index 889ce2e..104ca43 100644 --- a/setup.py +++ b/setup.py @@ -4,7 +4,7 @@ setup( name="rssreader", version=1.3, - description="CLI utility to process RSS", + description="Utility to read rss", long_description="CLI utility for rss reading", author="Vladislav Bakhmat", author_email="uservice589@gmail.com", @@ -14,7 +14,9 @@ "bs4==0.0.1", "urllib3==1.25.7", "logger==1.4", - "feedparser==5.2.1" + "feedparser==5.2.1", + "fpdf==1.7.2" + "lxml==4.4.1" ], python_requires='>=3.7', entry_points={ From ada802ddc1ca0fb64bc9a1d3f2ee8477dfafb67b Mon Sep 17 00:00:00 2001 From: Shrek Date: Sun, 1 Dec 2019 19:05:20 +0300 Subject: [PATCH 10/10] add dockstrings --- rssreader/rssreader.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/rssreader/rssreader.py b/rssreader/rssreader.py index 0f7664e..161d25d 100644 --- a/rssreader/rssreader.py +++ b/rssreader/rssreader.py @@ -10,6 +10,7 @@ def argsparsing(): + """arguments creating and control""" parser = argparse.ArgumentParser() parser.add_argument("source", help="RSS URL", type=str) parser.add_argument("--version", action='version', version='%(prog)s ' + 'v 2.0', help="Print version info", ) @@ -33,6 +34,7 @@ def making_log(operation, message, file='loglist.log'): def spliting_items(lst, index1, tag): + """help to create pdf files""" try: line_list = '' split_list = [] @@ -61,6 +63,7 @@ def __init__(self): self.datalist = [] def feed_find(self): + """find rss news by url and save it to memory""" try: urllib.request.urlopen(self.arguments.source) except: @@ -95,6 +98,7 @@ def feed_find(self): break def convert_to_html(self): + """convert news to html""" making_log(1, "Convertation to html opened.") try: for index in range(len(self.title)): @@ -124,6 +128,7 @@ def convert_to_html(self): else: making_log(1, "All news converted to html.(all_goods)") def convert_to_pdf(self): + """convert news to pdf""" for index in range(len(self.title)): try: string = str(self.title[index])[:-2].replace("?", " ") @@ -151,6 +156,7 @@ def convert_to_pdf(self): except: making_log(1, "Feed with index %s can't convert to pdf." % index) def print_news(self): + """print news to stdout""" making_log(1, "Print news in stdout opened.") try: for index in range(len(self.title)): @@ -171,12 +177,14 @@ def print_news(self): else: making_log(1, "All news were printed.(all_goods)") def date_check(self): + """check date arg by length""" if len(str(self.arguments.date)) > 8 or len(str(self.arguments.date)) < 8 : print("Error in date input") return False return True def filewrite(self): + """write news in .txt file""" making_log(1, "Writing news in file opened. News saved in datafeed.txt") for index in range(len(self.title)): with open("data\datafeed.txt", "a") as fp: @@ -195,7 +203,8 @@ def filewrite(self): making_log(1, "Error. Can't write feed with index=%s on file." % index) else: making_log(1, "Feed wited in file.(all_goods)") - def fileread(self): + def fileread(self): + """read news from .txt file""" with open("data\datafeed.txt", "r") as fp: flag = True check = 0 @@ -237,6 +246,7 @@ def fileread(self): if flag: print("No news on this date (") def create_dir(self): + """check if directory is created. If not-create dir""" if self.arguments.pdf: if not os.path.exists(self.arguments.pdf): os.mkdir(self.arguments.pdf) @@ -248,6 +258,7 @@ def create_dir(self): def main(): + """main func""" if not os.path.exists("data"): os.mkdir("data") news = NewsRss()