<jupyter_start><jupyter_text>Now You Code 4: Reddit News Sentiment AnalysisIn this assignment you're tasked with performing a sentiment analysis on top Reddit news articles. (`https://www.reddit.com/r/news/top.json`)You should perform the analysis on the titles only. Start by getting the Reddit API to work, and extracting a list of titles only. You'll have to research the Reddit API, and can do so here: https://www.reddit.com/dev/api/ The Reddit API requires a custom 'User-Agent' You must specify this in your headers, as explained here: https://github.com/reddit/reddit/wiki/API After you get Reddit working move on to sentiment analysis. Once again, we will use (`http://text-processing.com/api/sentiment/`) like we did in the in-class coding lab. Start by getting the sentiment analysis working for a single title. Then write your program to loop over each title runnning the sentiment analysis and printing both the sentiment and the title, like this:Example Run (Your output will vary as news stories change...)```neutral : FBI Chief Comey 'Rejects' Phone Tap Allegationpos : New Peeps-flavored Oreos reportedly turning people's poop pinkneutral : President Trump Signs Revised Travel Ban Executive Orderneutral : Police: Overdose survivors to be charged with misdemeanorneutral : Struggling students forced to wait 3-4 weeks as Utah's public colleges don't have enough mental health therapistsneutral : Army Veteran Faces Possible Deportation to Mexiconeutral : Rep. <NAME> called out at town hall for ‘blocking’ constituents on social medianeutral : GM to suspend third shift at Delta Township plant, layoff 1,100 workersneutral : American citizen <NAME> reportedly cancels trip to Canada after being warned his 'travel privileges are being reviewed'neg : Mars far more likely to have had life than we thought, researchers find after new water discoveryneutral : Bird Flu Found at U.S. Farm That Supplies Chickens to Tysonneutral : Investigation Reveals Huge Volume of Shark Fins Evading International Shipping Bansneg : Sikh man's shooting in Washington investigated as hate crime```<jupyter_code># Write your plan (todo list) here

#todo write code here.<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.056414922656960874, 'fraction_numerical': 0.0031847133757961785, 'mean_word_length': 5.125348189415042, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '96719', 'license': 'MIT', 'n_tokens_mistral': 566, 'n_tokens_neox': 517, 'n_words': 299, 'path': 'content/lessons/11/Now-You-Code/NYC4-Reddit-News-Sentiment.ipynb', 'repo_name': 'yajiao-su/istpytonproject', 'size': '2208'}